2018-05-04 01:44:29 +03:00
|
|
|
import("build/asar.gni")
|
|
|
|
import("build/npm.gni")
|
2018-10-01 23:00:53 +03:00
|
|
|
import("buildflags/buildflags.gni")
|
2018-07-18 01:34:19 +03:00
|
|
|
import("electron_paks.gni")
|
2018-09-09 04:15:32 +03:00
|
|
|
import("filenames.gni")
|
2018-09-06 00:00:37 +03:00
|
|
|
import("//build/config/locales.gni")
|
|
|
|
import("//build/config/win/manifest.gni")
|
|
|
|
import("//pdf/features.gni")
|
2018-07-31 01:46:04 +03:00
|
|
|
import("//third_party/ffmpeg/ffmpeg_options.gni")
|
2018-09-06 00:00:37 +03:00
|
|
|
import("//third_party/widevine/cdm/widevine.gni")
|
|
|
|
import("//tools/grit/repack.gni")
|
|
|
|
import("//tools/v8_context_snapshot/v8_context_snapshot.gni")
|
2018-09-25 04:48:49 +03:00
|
|
|
import("//v8/snapshot_toolchain.gni")
|
2018-05-04 01:44:29 +03:00
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
import("//build/config/mac/rules.gni")
|
|
|
|
import("//third_party/icu/config.gni")
|
|
|
|
import("//v8/gni/v8.gni")
|
|
|
|
}
|
|
|
|
|
2018-05-16 22:51:11 +03:00
|
|
|
if (is_linux) {
|
|
|
|
import("//build/config/linux/pkg_config.gni")
|
|
|
|
|
|
|
|
pkg_config("gio_unix") {
|
|
|
|
packages = [ "gio-unix-2.0" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-27 21:53:08 +03:00
|
|
|
branding = read_file("atom/app/BRANDING.json", "json")
|
|
|
|
electron_project_name = branding.project_name
|
|
|
|
electron_product_name = branding.product_name
|
|
|
|
electron_mac_bundle_id = branding.mac_bundle_id
|
2018-05-04 01:44:29 +03:00
|
|
|
|
2018-06-29 01:43:21 +03:00
|
|
|
if (is_mas_build) {
|
2018-07-31 01:55:41 +03:00
|
|
|
assert(is_mac,
|
|
|
|
"It doesn't make sense to build a MAS build on a non-mac platform")
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
config("branding") {
|
|
|
|
defines = [
|
|
|
|
"ATOM_PRODUCT_NAME=\"$electron_product_name\"",
|
|
|
|
"ATOM_PROJECT_NAME=\"$electron_project_name\"",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
npm_action("atom_browserify_sandbox") {
|
2018-07-31 01:55:41 +03:00
|
|
|
deps = [
|
|
|
|
":atom_js2c_copy",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
|
|
|
|
sandbox_args = [
|
|
|
|
"lib/sandboxed_renderer/init.js",
|
2018-07-31 01:55:41 +03:00
|
|
|
"-r",
|
|
|
|
"./lib/sandboxed_renderer/api/exports/electron.js:electron",
|
|
|
|
"-r",
|
|
|
|
"./lib/sandboxed_renderer/api/exports/fs.js:fs",
|
|
|
|
"-r",
|
|
|
|
"./lib/sandboxed_renderer/api/exports/os.js:os",
|
|
|
|
"-r",
|
|
|
|
"./lib/sandboxed_renderer/api/exports/path.js:path",
|
|
|
|
"-r",
|
|
|
|
"./lib/sandboxed_renderer/api/exports/child_process.js:child_process",
|
2018-09-20 06:43:26 +03:00
|
|
|
"-t",
|
2018-10-01 23:00:53 +03:00
|
|
|
"aliasify",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
inputs = [
|
|
|
|
"lib/sandboxed_renderer/init.js",
|
|
|
|
"lib/sandboxed_renderer/api/exports/electron.js",
|
|
|
|
"lib/sandboxed_renderer/api/exports/fs.js",
|
|
|
|
"lib/sandboxed_renderer/api/exports/os.js",
|
|
|
|
"lib/sandboxed_renderer/api/exports/path.js",
|
|
|
|
"lib/sandboxed_renderer/api/exports/child_process.js",
|
|
|
|
]
|
2018-07-31 01:55:41 +03:00
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/js2c/preload_bundle.js",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
|
|
|
|
script = "browserify"
|
|
|
|
args = sandbox_args + [
|
2018-07-31 01:55:41 +03:00
|
|
|
"-o",
|
|
|
|
rebase_path(outputs[0]),
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
npm_action("atom_browserify_isolated") {
|
2018-07-31 01:55:41 +03:00
|
|
|
deps = [
|
|
|
|
":atom_js2c_copy",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
|
2018-07-31 01:55:41 +03:00
|
|
|
inputs = [
|
|
|
|
"lib/isolated_renderer/init.js",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/js2c/isolated_bundle.js",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
|
|
|
|
script = "browserify"
|
|
|
|
args = inputs + [
|
2018-09-20 06:43:26 +03:00
|
|
|
"-t",
|
|
|
|
"aliasify",
|
2018-07-31 01:55:41 +03:00
|
|
|
"-o",
|
|
|
|
rebase_path(outputs[0]),
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
copy("atom_js2c_copy") {
|
|
|
|
sources = [
|
|
|
|
"lib/common/asar.js",
|
|
|
|
"lib/common/asar_init.js",
|
|
|
|
]
|
2018-07-31 01:55:41 +03:00
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/js2c/{{source_file_part}}",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
action("atom_js2c") {
|
|
|
|
deps = [
|
|
|
|
":atom_browserify_isolated",
|
2018-07-31 01:55:41 +03:00
|
|
|
":atom_browserify_sandbox",
|
|
|
|
":atom_js2c_copy",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
|
|
|
|
2018-09-09 04:15:32 +03:00
|
|
|
js2c_sources = filenames.js2c_sources
|
2018-05-04 01:44:29 +03:00
|
|
|
|
|
|
|
browserify_sources = [
|
|
|
|
"$target_gen_dir/js2c/isolated_bundle.js",
|
|
|
|
"$target_gen_dir/js2c/preload_bundle.js",
|
|
|
|
]
|
|
|
|
|
|
|
|
inputs = js2c_sources + browserify_sources
|
|
|
|
|
2018-07-31 01:55:41 +03:00
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/atom_natives.h",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
|
|
|
|
script = "tools/js2c.py"
|
2018-07-31 01:55:41 +03:00
|
|
|
args = [ rebase_path("//third_party/electron_node") ] +
|
|
|
|
rebase_path(outputs, root_build_dir) +
|
|
|
|
[ rebase_path("$target_gen_dir/js2c", root_build_dir) ]
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
asar("js2asar") {
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.js_sources
|
2018-06-20 22:50:43 +03:00
|
|
|
if (enable_desktop_capturer) {
|
|
|
|
sources += [
|
|
|
|
"lib/browser/desktop-capturer.js",
|
|
|
|
"lib/renderer/api/desktop-capturer.js",
|
|
|
|
]
|
|
|
|
}
|
2018-08-28 20:55:31 +03:00
|
|
|
if (enable_view_api) {
|
2018-09-06 00:00:37 +03:00
|
|
|
sources += [
|
2018-09-28 05:47:09 +03:00
|
|
|
"lib/browser/api/views/box-layout.js",
|
|
|
|
"lib/browser/api/views/button.js",
|
|
|
|
"lib/browser/api/views/label-button.js",
|
|
|
|
"lib/browser/api/views/layout-manager.js",
|
|
|
|
"lib/browser/api/views/text-field.js",
|
2018-09-06 00:00:37 +03:00
|
|
|
]
|
|
|
|
}
|
2018-07-31 01:55:41 +03:00
|
|
|
outputs = [
|
|
|
|
"$root_out_dir/resources/electron.asar",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
root = "lib"
|
|
|
|
}
|
|
|
|
|
|
|
|
asar("app2asar") {
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.default_app_sources
|
2018-07-31 01:55:41 +03:00
|
|
|
outputs = [
|
|
|
|
"$root_out_dir/resources/default_app.asar",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
root = "default_app"
|
|
|
|
}
|
|
|
|
|
|
|
|
static_library("electron_lib") {
|
2018-07-31 01:55:41 +03:00
|
|
|
configs += [ "//v8:external_startup_data" ]
|
2018-08-08 20:43:52 +03:00
|
|
|
configs += [ "//third_party/electron_node:node_internals" ]
|
2018-07-20 02:30:23 +03:00
|
|
|
|
2018-10-01 23:00:53 +03:00
|
|
|
public_configs = [ ":branding" ]
|
2018-07-20 02:30:23 +03:00
|
|
|
|
2018-05-04 01:44:29 +03:00
|
|
|
deps = [
|
2018-07-20 02:30:23 +03:00
|
|
|
":atom_js2c",
|
|
|
|
"brightray",
|
2018-10-01 23:00:53 +03:00
|
|
|
"buildflags",
|
2018-09-12 16:45:08 +03:00
|
|
|
"chromium_src:chrome",
|
2018-07-20 02:30:23 +03:00
|
|
|
"native_mate",
|
2018-07-26 18:30:37 +03:00
|
|
|
"//base",
|
|
|
|
"//base:i18n",
|
2018-05-04 01:44:29 +03:00
|
|
|
"//chrome/common:constants",
|
|
|
|
"//components/network_session_configurator/common",
|
|
|
|
"//components/prefs",
|
|
|
|
"//components/printing/common",
|
2018-06-20 22:50:43 +03:00
|
|
|
"//components/viz/service",
|
2018-07-11 21:32:17 +03:00
|
|
|
"//content/public/app:both",
|
|
|
|
"//content/public/child",
|
2018-05-04 01:44:29 +03:00
|
|
|
"//device/geolocation",
|
|
|
|
"//gin",
|
|
|
|
"//net:net_resources",
|
|
|
|
"//ppapi/host",
|
|
|
|
"//ppapi/proxy",
|
|
|
|
"//ppapi/shared_impl",
|
|
|
|
"//printing",
|
|
|
|
"//skia",
|
2018-07-20 19:08:18 +03:00
|
|
|
"//third_party/blink/public:blink",
|
2018-05-04 01:44:29 +03:00
|
|
|
"//third_party/boringssl",
|
2018-08-18 01:28:00 +03:00
|
|
|
"//third_party/electron_node:node_lib",
|
2018-05-04 01:44:29 +03:00
|
|
|
"//third_party/leveldatabase",
|
|
|
|
"//third_party/libyuv",
|
2018-07-25 01:43:42 +03:00
|
|
|
"//third_party/webrtc_overrides:init_webrtc",
|
2018-09-06 00:00:37 +03:00
|
|
|
"//third_party/widevine/cdm:headers",
|
2018-05-04 01:44:29 +03:00
|
|
|
"//ui/events:dom_keycode_converter",
|
2018-06-20 22:50:43 +03:00
|
|
|
"//ui/gl",
|
2018-05-04 01:44:29 +03:00
|
|
|
"//ui/views",
|
|
|
|
"//v8",
|
|
|
|
]
|
2018-07-20 02:30:23 +03:00
|
|
|
|
2018-08-15 00:49:35 +03:00
|
|
|
# TODO: this requires a visibility patch to chromium src. it would be better
|
|
|
|
# to use the publicly-available API, which I think is mojo-based. Once
|
|
|
|
# electron switches to using the public API, we can remove this from the deps
|
|
|
|
# list and remove the visibility patch from chromium.
|
|
|
|
deps += [ "//services/device/wake_lock/power_save_blocker" ]
|
|
|
|
|
2018-07-11 20:49:17 +03:00
|
|
|
include_dirs = [
|
|
|
|
"chromium_src",
|
|
|
|
".",
|
|
|
|
"$target_gen_dir",
|
2018-07-20 02:30:23 +03:00
|
|
|
|
2018-07-11 20:49:17 +03:00
|
|
|
# TODO(nornagon): replace usage of SchemeRegistry by an actually exported
|
2018-08-15 00:49:35 +03:00
|
|
|
# API of blink, then remove this from the include_dirs.
|
2018-07-20 19:08:18 +03:00
|
|
|
"//third_party/blink/renderer",
|
2018-07-11 20:49:17 +03:00
|
|
|
]
|
2018-07-20 02:30:23 +03:00
|
|
|
|
|
|
|
defines = []
|
2018-07-25 04:21:36 +03:00
|
|
|
libs = []
|
2018-07-20 02:30:23 +03:00
|
|
|
|
|
|
|
extra_source_filters = []
|
|
|
|
if (!is_linux) {
|
|
|
|
extra_source_filters += [
|
|
|
|
"*\bx/*",
|
|
|
|
"*_x11.h",
|
|
|
|
"*_x11.cc",
|
|
|
|
"*_gtk.h",
|
|
|
|
"*_gtk.cc",
|
|
|
|
"*\blibrary_loaders/*",
|
|
|
|
]
|
2018-06-29 00:58:43 +03:00
|
|
|
}
|
2018-07-20 02:30:23 +03:00
|
|
|
if (!is_win) {
|
|
|
|
extra_source_filters += [
|
|
|
|
"*\bwin_*.h",
|
|
|
|
"*\bwin_*.cc",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
if (is_mac) {
|
|
|
|
extra_source_filters += [
|
|
|
|
"*_views.cc",
|
|
|
|
"*_views.h",
|
|
|
|
"*\bviews/*",
|
|
|
|
"*/autofill_popup.cc",
|
|
|
|
"*/autofill_popup.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
set_sources_assignment_filter(
|
|
|
|
sources_assignment_filter + extra_source_filters)
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.lib_sources
|
2018-07-20 02:30:23 +03:00
|
|
|
set_sources_assignment_filter(sources_assignment_filter)
|
|
|
|
|
2018-09-09 04:15:32 +03:00
|
|
|
sources += [ "$target_gen_dir/atom_natives.h" ]
|
|
|
|
|
2018-07-20 02:30:23 +03:00
|
|
|
if (is_component_build) {
|
2018-08-29 11:39:47 +03:00
|
|
|
defines += [ "NODE_SHARED_MODE" ]
|
2018-06-29 00:58:43 +03:00
|
|
|
}
|
2018-07-20 02:30:23 +03:00
|
|
|
|
2018-08-23 18:51:46 +03:00
|
|
|
if (enable_fake_location_provider) {
|
2018-09-09 04:15:32 +03:00
|
|
|
sources += [
|
|
|
|
"atom/browser/fake_location_provider.cc",
|
|
|
|
"atom/browser/fake_location_provider.h",
|
|
|
|
]
|
2018-08-23 18:51:46 +03:00
|
|
|
}
|
|
|
|
|
2018-05-04 01:44:29 +03:00
|
|
|
if (is_mac) {
|
|
|
|
deps += [
|
2018-06-29 23:39:22 +03:00
|
|
|
"//third_party/crashpad/crashpad/client",
|
2018-07-20 02:30:23 +03:00
|
|
|
"//ui/accelerated_widget_mac",
|
2018-06-29 23:39:22 +03:00
|
|
|
]
|
|
|
|
include_dirs += [
|
|
|
|
# NOTE(nornagon): other chromium files use the full path to include
|
|
|
|
# crashpad; this is just here for compatibility between GN and GYP, so that
|
|
|
|
# the #includes can be agnostic about where crashpad is vendored.
|
|
|
|
"//third_party/crashpad",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
2018-07-20 02:30:23 +03:00
|
|
|
if (is_mas_build) {
|
|
|
|
deps -= [ "//third_party/crashpad/crashpad/client" ]
|
|
|
|
sources += [ "atom/browser/api/atom_api_app_mas.mm" ]
|
|
|
|
sources -= [
|
|
|
|
"atom/browser/auto_updater_mac.mm",
|
|
|
|
"atom/common/crash_reporter/crash_reporter_mac.h",
|
|
|
|
"atom/common/crash_reporter/crash_reporter_mac.mm",
|
|
|
|
]
|
|
|
|
defines += [ "MAS_BUILD" ]
|
|
|
|
} else {
|
2018-07-25 04:21:36 +03:00
|
|
|
libs += [
|
2018-07-20 02:30:23 +03:00
|
|
|
"Squirrel.framework",
|
|
|
|
"ReactiveCocoa.framework",
|
|
|
|
"Mantle.framework",
|
|
|
|
]
|
|
|
|
cflags_objcc = [
|
|
|
|
"-F",
|
|
|
|
rebase_path("external_binaries", root_build_dir),
|
|
|
|
]
|
|
|
|
|
|
|
|
# ReactiveCocoa which is used by Squirrel requires using __weak.
|
|
|
|
cflags_objcc += [ "-fobjc-weak" ]
|
|
|
|
}
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
2018-05-16 22:51:11 +03:00
|
|
|
if (is_linux) {
|
|
|
|
deps += [
|
2018-06-29 23:43:13 +03:00
|
|
|
"//build/config/linux/gtk",
|
2018-05-16 22:51:11 +03:00
|
|
|
"//chrome/browser/ui/libgtkui",
|
|
|
|
"//device/bluetooth",
|
|
|
|
"//ui/events/devices/x11",
|
|
|
|
"//ui/events/platform/x11",
|
|
|
|
"//ui/native_theme",
|
|
|
|
"//ui/views/controls/webview",
|
|
|
|
"//ui/wm",
|
|
|
|
]
|
|
|
|
configs += [ ":gio_unix" ]
|
2018-07-11 20:45:21 +03:00
|
|
|
defines += [
|
2018-07-20 02:30:23 +03:00
|
|
|
# Disable warnings for g_settings_list_schemas.
|
|
|
|
"GLIB_DISABLE_DEPRECATION_WARNINGS",
|
2018-07-11 20:45:21 +03:00
|
|
|
]
|
2018-09-09 04:15:32 +03:00
|
|
|
sources += filenames.lib_sources_linux
|
|
|
|
sources += filenames.lib_sources_nss
|
2018-07-20 02:30:23 +03:00
|
|
|
}
|
|
|
|
if (is_win) {
|
2018-09-09 04:15:32 +03:00
|
|
|
sources += filenames.lib_sources_win
|
2018-07-25 04:21:36 +03:00
|
|
|
libs += [ "dwmapi.lib" ]
|
2018-07-11 20:45:21 +03:00
|
|
|
}
|
2018-06-26 23:58:20 +03:00
|
|
|
if (is_linux || is_win) {
|
2018-06-29 23:39:22 +03:00
|
|
|
deps += [ "//third_party/breakpad:client" ]
|
2018-07-20 02:30:23 +03:00
|
|
|
include_dirs += [ "//third_party/breakpad" ]
|
2018-05-16 22:51:11 +03:00
|
|
|
}
|
2018-05-04 01:44:29 +03:00
|
|
|
|
2018-07-20 02:30:23 +03:00
|
|
|
if (enable_pdf) {
|
|
|
|
deps += [ "//pdf" ]
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
if (enable_run_as_node) {
|
|
|
|
sources += [
|
|
|
|
"atom/app/node_main.cc",
|
|
|
|
"atom/app/node_main.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (enable_osr) {
|
|
|
|
sources += [
|
|
|
|
"atom/browser/api/atom_api_web_contents_osr.cc",
|
|
|
|
"atom/browser/osr/osr_output_device.cc",
|
|
|
|
"atom/browser/osr/osr_output_device.h",
|
|
|
|
"atom/browser/osr/osr_render_widget_host_view.cc",
|
|
|
|
"atom/browser/osr/osr_render_widget_host_view.h",
|
|
|
|
"atom/browser/osr/osr_render_widget_host_view_mac.mm",
|
|
|
|
"atom/browser/osr/osr_view_proxy.cc",
|
|
|
|
"atom/browser/osr/osr_view_proxy.h",
|
|
|
|
"atom/browser/osr/osr_web_contents_view.cc",
|
|
|
|
"atom/browser/osr/osr_web_contents_view.h",
|
|
|
|
"atom/browser/osr/osr_web_contents_view_mac.mm",
|
|
|
|
]
|
|
|
|
deps += [
|
|
|
|
"//components/viz/service",
|
2018-08-29 01:54:45 +03:00
|
|
|
"//services/viz/public/interfaces",
|
2018-07-20 02:30:23 +03:00
|
|
|
"//ui/compositor",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-06-19 18:29:36 +03:00
|
|
|
if (enable_desktop_capturer) {
|
2018-08-27 18:17:23 +03:00
|
|
|
if (is_component_build && is_win) {
|
|
|
|
# On windows the implementation relies on unexported
|
|
|
|
# DxgiDuplicatorController class.
|
|
|
|
deps += [ "//third_party/webrtc/modules/desktop_capture" ]
|
|
|
|
}
|
2018-06-19 18:29:36 +03:00
|
|
|
sources += [
|
|
|
|
"atom/browser/api/atom_api_desktop_capturer.cc",
|
|
|
|
"atom/browser/api/atom_api_desktop_capturer.h",
|
|
|
|
]
|
|
|
|
}
|
2018-08-28 20:55:31 +03:00
|
|
|
|
|
|
|
if (enable_view_api) {
|
|
|
|
sources += [
|
2018-09-28 05:47:09 +03:00
|
|
|
"atom/browser/api/views/atom_api_box_layout.cc",
|
|
|
|
"atom/browser/api/views/atom_api_box_layout.h",
|
|
|
|
"atom/browser/api/views/atom_api_button.cc",
|
|
|
|
"atom/browser/api/views/atom_api_button.h",
|
|
|
|
"atom/browser/api/views/atom_api_label_button.cc",
|
|
|
|
"atom/browser/api/views/atom_api_label_button.h",
|
|
|
|
"atom/browser/api/views/atom_api_layout_manager.cc",
|
|
|
|
"atom/browser/api/views/atom_api_layout_manager.h",
|
|
|
|
"atom/browser/api/views/atom_api_text_field.cc",
|
|
|
|
"atom/browser/api/views/atom_api_text_field.h",
|
2018-08-28 20:55:31 +03:00
|
|
|
]
|
|
|
|
}
|
2018-08-29 11:39:47 +03:00
|
|
|
|
|
|
|
if (enable_pepper_flash) {
|
|
|
|
deps += [ "components/pepper_flash" ]
|
|
|
|
}
|
2018-09-06 00:00:37 +03:00
|
|
|
|
|
|
|
if (enable_widevine) {
|
|
|
|
sources += [
|
|
|
|
"//chrome/renderer/media/chrome_key_systems.cc",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems.h",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems_provider.cc",
|
|
|
|
"//chrome/renderer/media/chrome_key_systems_provider.h",
|
|
|
|
]
|
|
|
|
deps += [ "//components/cdm/renderer" ]
|
|
|
|
}
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
2018-07-18 01:34:19 +03:00
|
|
|
electron_paks("packed_resources") {
|
|
|
|
if (is_mac) {
|
2018-07-27 18:04:03 +03:00
|
|
|
output_dir = "$root_gen_dir/electron_repack"
|
2018-07-18 01:34:19 +03:00
|
|
|
copy_data_to_bundle = true
|
|
|
|
} else {
|
|
|
|
output_dir = root_out_dir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-04 01:44:29 +03:00
|
|
|
if (is_mac) {
|
2018-09-27 21:53:08 +03:00
|
|
|
electron_framework_name = "$electron_product_name Framework"
|
|
|
|
electron_helper_name = "$electron_product_name Helper"
|
|
|
|
electron_login_helper_name = "$electron_product_name Login Helper"
|
2018-05-04 01:44:29 +03:00
|
|
|
electron_framework_version = "A"
|
|
|
|
|
|
|
|
mac_xib_bundle_data("electron_xibs") {
|
2018-07-31 01:55:41 +03:00
|
|
|
sources = [
|
|
|
|
"atom/common/resources/mac/MainMenu.xib",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bundle_data("electron_framework_resources") {
|
|
|
|
public_deps = [
|
2018-07-18 01:34:19 +03:00
|
|
|
":packed_resources",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
2018-07-18 01:34:19 +03:00
|
|
|
sources = []
|
2018-05-04 01:44:29 +03:00
|
|
|
if (icu_use_data_file) {
|
|
|
|
sources += [ "$root_out_dir/icudtl.dat" ]
|
|
|
|
public_deps += [ "//third_party/icu:icudata" ]
|
|
|
|
}
|
|
|
|
if (v8_use_external_startup_data) {
|
2018-06-20 22:50:43 +03:00
|
|
|
sources += [ "$root_out_dir/natives_blob.bin" ]
|
2018-05-04 01:44:29 +03:00
|
|
|
public_deps += [ "//v8" ]
|
2018-06-20 22:50:43 +03:00
|
|
|
if (use_v8_context_snapshot) {
|
|
|
|
sources += [ "$root_out_dir/v8_context_snapshot.bin" ]
|
|
|
|
public_deps += [ "//tools/v8_context_snapshot" ]
|
|
|
|
} else {
|
|
|
|
sources += [ "$root_out_dir/snapshot_blob.bin" ]
|
|
|
|
}
|
2018-05-04 01:44:29 +03:00
|
|
|
}
|
|
|
|
outputs = [
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-09-20 01:42:42 +03:00
|
|
|
if (!is_component_build) {
|
2018-08-21 00:02:52 +03:00
|
|
|
bundle_data("electron_framework_libraries") {
|
2018-09-20 01:42:42 +03:00
|
|
|
sources = []
|
|
|
|
public_deps = []
|
|
|
|
if (is_component_ffmpeg) {
|
|
|
|
sources += [ "$root_out_dir/libffmpeg.dylib" ]
|
|
|
|
public_deps += [ "//third_party/ffmpeg:ffmpeg" ]
|
|
|
|
}
|
2018-08-21 00:02:52 +03:00
|
|
|
outputs = [
|
|
|
|
"{{bundle_contents_dir}}/Libraries/{{source_file_part}}",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
group("electron_framework_libraries") {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-29 01:43:21 +03:00
|
|
|
bundle_data("electron_crashpad_helper") {
|
2018-05-04 01:44:29 +03:00
|
|
|
sources = [
|
|
|
|
"$root_out_dir/crashpad_handler",
|
|
|
|
]
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
"//third_party/crashpad/crashpad/handler:crashpad_handler",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
mac_framework_bundle("electron_framework") {
|
|
|
|
output_name = electron_framework_name
|
|
|
|
framework_version = electron_framework_version
|
2018-10-01 23:00:53 +03:00
|
|
|
framework_contents = [
|
|
|
|
"Resources",
|
|
|
|
"Libraries",
|
|
|
|
]
|
2018-07-31 01:55:41 +03:00
|
|
|
public_deps = [
|
|
|
|
":electron_lib",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
deps = [
|
2018-08-21 00:02:52 +03:00
|
|
|
":electron_framework_libraries",
|
2018-08-29 11:39:47 +03:00
|
|
|
":electron_framework_resources",
|
2018-05-04 01:44:29 +03:00
|
|
|
":electron_xibs",
|
|
|
|
]
|
2018-06-29 01:43:21 +03:00
|
|
|
if (!is_mas_build) {
|
|
|
|
deps += [ ":electron_crashpad_helper" ]
|
|
|
|
}
|
2018-05-04 01:44:29 +03:00
|
|
|
info_plist = "atom/common/resources/mac/Info.plist"
|
2018-09-27 21:53:08 +03:00
|
|
|
|
|
|
|
electron_version = read_file("VERSION", "trim string")
|
2018-09-06 00:00:37 +03:00
|
|
|
extra_substitutions = [
|
|
|
|
"ATOM_BUNDLE_ID=$electron_mac_bundle_id.framework",
|
|
|
|
"ELECTRON_VERSION=$electron_version",
|
|
|
|
]
|
2018-05-04 01:44:29 +03:00
|
|
|
|
2018-07-31 01:55:41 +03:00
|
|
|
include_dirs = [ "." ]
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.framework_sources
|
2018-05-04 01:44:29 +03:00
|
|
|
|
|
|
|
libs = [
|
|
|
|
"Carbon.framework",
|
|
|
|
"QuartzCore.framework",
|
|
|
|
"Quartz.framework",
|
|
|
|
"Security.framework",
|
|
|
|
"SecurityInterface.framework",
|
|
|
|
"ServiceManagement.framework",
|
|
|
|
"StoreKit.framework",
|
|
|
|
]
|
|
|
|
ldflags = [
|
2018-07-31 01:55:41 +03:00
|
|
|
"-F",
|
|
|
|
rebase_path("external_binaries", root_build_dir),
|
2018-05-04 01:44:29 +03:00
|
|
|
"-Wl,-install_name,@rpath/$output_name.framework/$output_name",
|
|
|
|
"-rpath",
|
|
|
|
"@loader_path/Libraries",
|
|
|
|
]
|
|
|
|
if (is_component_build) {
|
|
|
|
ldflags += [
|
|
|
|
"-rpath",
|
2018-07-31 01:55:41 +03:00
|
|
|
"@executable_path/../../../../../..",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mac_app_bundle("electron_helper_app") {
|
|
|
|
output_name = electron_helper_name
|
2018-07-31 01:55:41 +03:00
|
|
|
deps = [
|
|
|
|
":electron_framework+link",
|
|
|
|
]
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.app_sources
|
2018-05-04 01:44:29 +03:00
|
|
|
include_dirs = [ "." ]
|
|
|
|
info_plist = "atom/renderer/resources/mac/Info.plist"
|
2018-07-31 01:55:41 +03:00
|
|
|
extra_substitutions = [ "ATOM_BUNDLE_ID=$electron_mac_bundle_id.helper" ]
|
2018-05-04 01:44:29 +03:00
|
|
|
ldflags = [
|
|
|
|
"-rpath",
|
|
|
|
"@executable_path/../../..",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
bundle_data("electron_app_framework_bundle_data") {
|
|
|
|
sources = [
|
|
|
|
"$root_out_dir/$electron_framework_name.framework",
|
|
|
|
"$root_out_dir/$electron_helper_name.app",
|
|
|
|
]
|
2018-06-29 01:43:21 +03:00
|
|
|
if (!is_mas_build) {
|
|
|
|
sources += [
|
|
|
|
"external_binaries/Mantle.framework",
|
2018-07-31 01:55:41 +03:00
|
|
|
"external_binaries/ReactiveCocoa.framework",
|
|
|
|
"external_binaries/Squirrel.framework",
|
2018-06-29 01:43:21 +03:00
|
|
|
]
|
|
|
|
}
|
2018-05-04 01:44:29 +03:00
|
|
|
outputs = [
|
|
|
|
"{{bundle_contents_dir}}/Frameworks/{{source_file_part}}",
|
|
|
|
]
|
|
|
|
public_deps = [
|
|
|
|
":electron_framework+link",
|
|
|
|
":electron_helper_app",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-06-29 01:43:21 +03:00
|
|
|
mac_app_bundle("electron_login_helper") {
|
|
|
|
output_name = electron_login_helper_name
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.login_helper_sources
|
2018-06-29 01:43:21 +03:00
|
|
|
include_dirs = [ "." ]
|
|
|
|
libs = [ "AppKit.framework" ]
|
|
|
|
info_plist = "atom/app/resources/mac/loginhelper-Info.plist"
|
2018-07-31 01:55:41 +03:00
|
|
|
extra_substitutions =
|
|
|
|
[ "ATOM_BUNDLE_ID=$electron_mac_bundle_id.loginhelper" ]
|
2018-06-29 01:43:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bundle_data("electron_login_helper_app") {
|
2018-07-31 01:55:41 +03:00
|
|
|
public_deps = [
|
|
|
|
":electron_login_helper",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"$root_out_dir/$electron_login_helper_name.app",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"{{bundle_contents_dir}}/Library/LoginItems",
|
|
|
|
]
|
2018-06-29 01:43:21 +03:00
|
|
|
}
|
|
|
|
|
2018-05-04 01:44:29 +03:00
|
|
|
bundle_data("electron_app_resources") {
|
|
|
|
public_deps = [
|
|
|
|
":app2asar",
|
2018-07-31 01:55:41 +03:00
|
|
|
":js2asar",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
|
|
|
sources = [
|
2018-05-16 22:51:11 +03:00
|
|
|
"$root_out_dir/resources/default_app.asar",
|
2018-07-31 01:55:41 +03:00
|
|
|
"$root_out_dir/resources/electron.asar",
|
2018-08-29 11:39:47 +03:00
|
|
|
"atom/browser/resources/mac/electron.icns",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
|
|
|
outputs = [
|
2018-07-31 01:55:41 +03:00
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
2018-05-04 01:44:29 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
mac_app_bundle("electron_app") {
|
|
|
|
output_name = electron_product_name
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.app_sources
|
2018-05-04 01:44:29 +03:00
|
|
|
include_dirs = [ "." ]
|
|
|
|
deps = [
|
|
|
|
":electron_app_framework_bundle_data",
|
|
|
|
":electron_app_resources",
|
|
|
|
]
|
2018-06-29 01:43:21 +03:00
|
|
|
if (is_mas_build) {
|
|
|
|
deps += [ ":electron_login_helper_app" ]
|
|
|
|
}
|
2018-05-04 01:44:29 +03:00
|
|
|
info_plist = "atom/browser/resources/mac/Info.plist"
|
2018-07-31 01:55:41 +03:00
|
|
|
extra_substitutions = [ "ATOM_BUNDLE_ID=$electron_mac_bundle_id" ]
|
2018-05-04 01:44:29 +03:00
|
|
|
ldflags = [
|
|
|
|
"-rpath",
|
|
|
|
"@executable_path/../Frameworks",
|
|
|
|
]
|
|
|
|
}
|
2018-06-29 00:58:43 +03:00
|
|
|
} else {
|
|
|
|
windows_manifest("electron_app_manifest") {
|
|
|
|
sources = [
|
2018-10-01 23:00:53 +03:00
|
|
|
"atom/browser/resources/win/disable_window_filtering.manifest",
|
|
|
|
"atom/browser/resources/win/dpi_aware.manifest",
|
2018-06-29 00:58:43 +03:00
|
|
|
as_invoker_manifest,
|
|
|
|
common_controls_manifest,
|
|
|
|
default_compatibility_manifest,
|
|
|
|
]
|
|
|
|
}
|
2018-05-16 22:51:11 +03:00
|
|
|
|
|
|
|
executable("electron_app") {
|
|
|
|
output_name = electron_project_name
|
2018-09-09 04:15:32 +03:00
|
|
|
sources = filenames.app_sources
|
2018-05-16 22:51:11 +03:00
|
|
|
include_dirs = [ "." ]
|
|
|
|
deps = [
|
|
|
|
":app2asar",
|
2018-06-29 00:58:43 +03:00
|
|
|
":electron_app_manifest",
|
2018-05-16 22:51:11 +03:00
|
|
|
":electron_lib",
|
|
|
|
":js2asar",
|
2018-07-25 23:28:10 +03:00
|
|
|
":packed_resources",
|
2018-05-16 22:51:11 +03:00
|
|
|
"//build/config:exe_and_shlib_deps",
|
2018-06-29 00:58:43 +03:00
|
|
|
"//content:sandbox_helper_win",
|
2018-07-31 01:55:41 +03:00
|
|
|
"//ui/strings",
|
2018-05-16 22:51:11 +03:00
|
|
|
]
|
2018-06-29 00:58:43 +03:00
|
|
|
|
2018-08-21 20:06:28 +03:00
|
|
|
data = []
|
|
|
|
|
|
|
|
data += [ "$root_out_dir/resources.pak" ]
|
|
|
|
data += [ "$root_out_dir/chrome_100_percent.pak" ]
|
|
|
|
if (enable_hidpi) {
|
|
|
|
data += [ "$root_out_dir/chrome_200_percent.pak" ]
|
|
|
|
}
|
|
|
|
foreach(locale, locales) {
|
|
|
|
data += [ "$root_out_dir/locales/$locale.pak" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!is_mac) {
|
2018-09-22 04:29:55 +03:00
|
|
|
data += [ "$root_out_dir/resources/default_app.asar" ]
|
|
|
|
data += [ "$root_out_dir/resources/electron.asar" ]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|
|
|
|
|
2018-06-29 00:58:43 +03:00
|
|
|
public_deps = [
|
|
|
|
"//tools/v8_context_snapshot:v8_context_snapshot",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
sources += [
|
|
|
|
# TODO: we should be generating our .rc files more like how chrome does
|
|
|
|
"atom/browser/resources/win/atom.ico",
|
|
|
|
"atom/browser/resources/win/atom.rc",
|
2018-07-31 01:55:41 +03:00
|
|
|
"atom/browser/resources/win/resources.h",
|
2018-06-29 00:58:43 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
"//third_party/breakpad:breakpad_handler",
|
|
|
|
"//third_party/breakpad:breakpad_sender",
|
|
|
|
"//ui/native_theme:native_theme_browser",
|
|
|
|
"//ui/shell_dialogs",
|
|
|
|
"//ui/views/controls/webview",
|
|
|
|
"//ui/wm",
|
|
|
|
"//ui/wm/public",
|
|
|
|
]
|
|
|
|
|
|
|
|
libs = [
|
2018-07-12 23:26:17 +03:00
|
|
|
"comctl32.lib",
|
2018-06-29 00:58:43 +03:00
|
|
|
"uiautomationcore.lib",
|
2018-07-12 23:26:17 +03:00
|
|
|
"wtsapi32.lib",
|
2018-06-29 00:58:43 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
configs += [ "//build/config/win:windowed" ]
|
|
|
|
|
|
|
|
ldflags = [
|
2018-08-15 00:49:35 +03:00
|
|
|
# Windows 7 doesn't have these DLLs.
|
|
|
|
# TODO: are there other DLLs we need to list here to be win7
|
|
|
|
# compatible?
|
|
|
|
"/DELAYLOAD:api-ms-win-core-winrt-l1-1-0.dll",
|
|
|
|
"/DELAYLOAD:api-ms-win-core-winrt-string-l1-1-0.dll",
|
2018-06-29 00:58:43 +03:00
|
|
|
]
|
|
|
|
}
|
2018-07-31 01:46:04 +03:00
|
|
|
if (is_linux) {
|
|
|
|
if (!is_component_build && is_component_ffmpeg) {
|
|
|
|
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
|
|
|
}
|
|
|
|
}
|
2018-05-16 22:51:11 +03:00
|
|
|
}
|
|
|
|
}
|
2018-08-18 01:28:00 +03:00
|
|
|
|
|
|
|
group("electron_tests") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":chromium_browsertests",
|
|
|
|
":chromium_unittests",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("chromium_unittests") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//base:base_unittests",
|
|
|
|
"//cc:cc_unittests",
|
|
|
|
"//cc/blink:cc_blink_unittests",
|
|
|
|
"//content/test:content_unittests",
|
|
|
|
"//crypto:crypto_unittests",
|
|
|
|
"//device:device_unittests",
|
|
|
|
"//gin:gin_unittests",
|
|
|
|
"//gpu:gpu_unittests",
|
|
|
|
"//ipc:ipc_tests",
|
|
|
|
"//media:media_unittests",
|
|
|
|
"//media/capture:capture_unittests",
|
|
|
|
"//media/midi:midi_unittests",
|
|
|
|
"//media/mojo:media_mojo_unittests",
|
|
|
|
"//mojo:mojo_unittests",
|
|
|
|
"//mojo/common:mojo_common_unittests",
|
|
|
|
"//net:net_unittests",
|
|
|
|
"//ppapi:ppapi_unittests",
|
|
|
|
"//printing:printing_unittests",
|
|
|
|
"//skia:skia_unittests",
|
|
|
|
"//sql:sql_unittests",
|
|
|
|
"//storage:storage_unittests",
|
|
|
|
"//third_party/angle/src/tests:angle_unittests",
|
2018-09-27 18:29:27 +03:00
|
|
|
"//third_party/blink/public:all_blink",
|
|
|
|
"//third_party/blink/public:test_support",
|
2018-08-18 01:28:00 +03:00
|
|
|
"//third_party/leveldatabase:env_chromium_unittests",
|
|
|
|
"//tools/gn:gn_unittests",
|
|
|
|
"//ui/base:ui_base_unittests",
|
|
|
|
"//ui/compositor:compositor_unittests",
|
|
|
|
"//ui/display:display_unittests",
|
|
|
|
"//ui/events:events_unittests",
|
|
|
|
"//ui/gl:gl_unittests",
|
|
|
|
"//url:url_unittests",
|
|
|
|
"//url/ipc:url_ipc_unittests",
|
|
|
|
"//v8/test/unittests:unittests",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (is_linux) {
|
|
|
|
deps += [
|
|
|
|
"//net:disk_cache_memory_test",
|
|
|
|
"//sandbox/linux:sandbox_linux_unittests",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (use_dbus) {
|
|
|
|
deps += [ "//dbus:dbus_unittests" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group("chromium_browsertests") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"//content/test:content_browsertests",
|
|
|
|
]
|
|
|
|
}
|
2018-08-21 20:06:28 +03:00
|
|
|
|
|
|
|
template("dist_zip") {
|
|
|
|
_runtime_deps_target = "${target_name}__deps"
|
|
|
|
_runtime_deps_file =
|
2018-08-29 11:39:47 +03:00
|
|
|
"$root_out_dir/gen.runtime/" + get_label_info(target_name, "dir") + "/" +
|
2018-08-21 20:06:28 +03:00
|
|
|
get_label_info(target_name, "name") + ".runtime_deps"
|
|
|
|
|
|
|
|
group(_runtime_deps_target) {
|
2018-08-29 11:39:47 +03:00
|
|
|
forward_variables_from(invoker,
|
|
|
|
[
|
|
|
|
"deps",
|
|
|
|
"data_deps",
|
|
|
|
"data",
|
|
|
|
])
|
2018-08-21 20:06:28 +03:00
|
|
|
write_runtime_deps = _runtime_deps_file
|
|
|
|
}
|
|
|
|
|
|
|
|
action(target_name) {
|
|
|
|
script = "//electron/build/zip.py"
|
2018-08-29 11:39:47 +03:00
|
|
|
deps = [
|
|
|
|
":$_runtime_deps_target",
|
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
forward_variables_from(invoker, [ "outputs" ])
|
2018-08-29 11:39:47 +03:00
|
|
|
args = rebase_path(outputs + [ _runtime_deps_file ], root_build_dir) + [
|
|
|
|
target_cpu,
|
|
|
|
target_os,
|
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
copy("electron_license") {
|
2018-08-29 11:39:47 +03:00
|
|
|
sources = [
|
|
|
|
"LICENSE",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"$root_build_dir/{{source_file_part}}",
|
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|
|
|
|
copy("chromium_licenses") {
|
2018-08-29 11:39:47 +03:00
|
|
|
deps = [
|
|
|
|
"//components/resources:about_credits",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"$root_gen_dir/components/resources/about_credits.html",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"$root_build_dir/LICENSES.chromium.html",
|
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
group("licenses") {
|
2018-08-29 11:39:47 +03:00
|
|
|
data_deps = [
|
|
|
|
":electron_license",
|
|
|
|
":chromium_licenses",
|
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|
|
|
|
|
2018-09-27 21:53:08 +03:00
|
|
|
copy("electron_version") {
|
|
|
|
sources = [
|
|
|
|
"VERSION"
|
|
|
|
]
|
2018-08-29 11:39:47 +03:00
|
|
|
outputs = [
|
2018-09-27 21:53:08 +03:00
|
|
|
"$root_build_dir/version"
|
2018-08-29 11:39:47 +03:00
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
dist_zip("electron_dist_zip") {
|
2018-08-29 11:39:47 +03:00
|
|
|
data_deps = [
|
|
|
|
":electron_app",
|
|
|
|
":licenses",
|
|
|
|
":electron_version",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"$root_build_dir/dist.zip",
|
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|
|
|
|
|
2018-09-20 21:10:10 +03:00
|
|
|
dist_zip("electron_ffmpeg_zip") {
|
|
|
|
data_deps = [
|
|
|
|
"//third_party/ffmpeg",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"$root_build_dir/ffmpeg.zip",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-09-20 01:42:42 +03:00
|
|
|
dist_zip("electron_chromedriver_zip") {
|
|
|
|
data_deps = [
|
|
|
|
"//chrome/test/chromedriver",
|
|
|
|
":licenses",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"$root_build_dir/chromedriver.zip",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-09-25 04:48:49 +03:00
|
|
|
dist_zip("electron_mksnapshot_zip") {
|
|
|
|
data_deps = [
|
|
|
|
"//v8:mksnapshot($v8_snapshot_toolchain)",
|
|
|
|
":licenses",
|
|
|
|
]
|
|
|
|
outputs = [
|
|
|
|
"$root_build_dir/mksnapshot.zip",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-08-21 20:06:28 +03:00
|
|
|
group("electron") {
|
2018-08-29 11:39:47 +03:00
|
|
|
deps = [
|
|
|
|
":electron_app",
|
|
|
|
]
|
2018-08-21 20:06:28 +03:00
|
|
|
}
|