|
@@ -32,6 +32,7 @@ declare_args() {
|
|
|
enable_desktop_capturer = true
|
|
|
enable_run_as_node = true
|
|
|
enable_osr = false
|
|
|
+ enable_view_api = false
|
|
|
|
|
|
# Provide a fake location provider for mocking
|
|
|
# the geolocation responses. Disable it if you
|
|
@@ -39,7 +40,8 @@ declare_args() {
|
|
|
# Should not be enabled for release build.
|
|
|
enable_fake_location_provider = !is_official_build
|
|
|
|
|
|
- enable_view_api = false
|
|
|
+ # Enable flash plugin support.
|
|
|
+ enable_pepper_flash = true
|
|
|
}
|
|
|
|
|
|
if (is_mas_build) {
|
|
@@ -77,6 +79,9 @@ config("features") {
|
|
|
if (enable_view_api) {
|
|
|
defines += [ "ENABLE_VIEW_API" ]
|
|
|
}
|
|
|
+ if (enable_pepper_flash) {
|
|
|
+ defines += [ "ENABLE_PEPPER_FLASH" ]
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
npm_action("atom_browserify_sandbox") {
|
|
@@ -294,15 +299,11 @@ static_library("electron_lib") {
|
|
|
set_sources_assignment_filter(sources_assignment_filter)
|
|
|
|
|
|
if (is_component_build) {
|
|
|
- defines += [
|
|
|
- "NODE_SHARED_MODE",
|
|
|
- ]
|
|
|
+ defines += [ "NODE_SHARED_MODE" ]
|
|
|
}
|
|
|
|
|
|
if (enable_fake_location_provider) {
|
|
|
- defines += [
|
|
|
- "OVERRIDE_LOCATION_PROVIDER"
|
|
|
- ]
|
|
|
+ defines += [ "OVERRIDE_LOCATION_PROVIDER" ]
|
|
|
sources += filenames_gypi.lib_sources_location_provider
|
|
|
}
|
|
|
|
|
@@ -426,6 +427,10 @@ static_library("electron_lib") {
|
|
|
"atom/browser/api/atom_api_text_field.h",
|
|
|
]
|
|
|
}
|
|
|
+
|
|
|
+ if (enable_pepper_flash) {
|
|
|
+ deps += [ "components/pepper_flash" ]
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
electron_paks("packed_resources") {
|
|
@@ -479,12 +484,8 @@ if (is_mac) {
|
|
|
sources = []
|
|
|
public_deps = []
|
|
|
if (is_component_ffmpeg) {
|
|
|
- sources += [
|
|
|
- "$root_out_dir/libffmpeg.dylib",
|
|
|
- ]
|
|
|
- public_deps += [
|
|
|
- "//third_party/ffmpeg:ffmpeg",
|
|
|
- ]
|
|
|
+ sources += [ "$root_out_dir/libffmpeg.dylib" ]
|
|
|
+ public_deps += [ "//third_party/ffmpeg:ffmpeg" ]
|
|
|
}
|
|
|
outputs = [
|
|
|
"{{bundle_contents_dir}}/Libraries/{{source_file_part}}",
|
|
@@ -517,8 +518,8 @@ if (is_mac) {
|
|
|
":electron_lib",
|
|
|
]
|
|
|
deps = [
|
|
|
- ":electron_framework_resources",
|
|
|
":electron_framework_libraries",
|
|
|
+ ":electron_framework_resources",
|
|
|
":electron_xibs",
|
|
|
]
|
|
|
if (!is_mas_build) {
|
|
@@ -620,6 +621,7 @@ if (is_mac) {
|
|
|
sources = [
|
|
|
"$root_out_dir/resources/default_app.asar",
|
|
|
"$root_out_dir/resources/electron.asar",
|
|
|
+ "atom/browser/resources/mac/electron.icns",
|
|
|
]
|
|
|
outputs = [
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
@@ -809,51 +811,80 @@ group("chromium_browsertests") {
|
|
|
template("dist_zip") {
|
|
|
_runtime_deps_target = "${target_name}__deps"
|
|
|
_runtime_deps_file =
|
|
|
- "$root_out_dir/gen.runtime/" +
|
|
|
- get_label_info(target_name, "dir") + "/" +
|
|
|
+ "$root_out_dir/gen.runtime/" + get_label_info(target_name, "dir") + "/" +
|
|
|
get_label_info(target_name, "name") + ".runtime_deps"
|
|
|
|
|
|
group(_runtime_deps_target) {
|
|
|
- forward_variables_from(invoker, [ "deps", "data_deps", "data" ])
|
|
|
+ forward_variables_from(invoker,
|
|
|
+ [
|
|
|
+ "deps",
|
|
|
+ "data_deps",
|
|
|
+ "data",
|
|
|
+ ])
|
|
|
write_runtime_deps = _runtime_deps_file
|
|
|
}
|
|
|
|
|
|
action(target_name) {
|
|
|
script = "//electron/build/zip.py"
|
|
|
- deps = [ ":$_runtime_deps_target" ]
|
|
|
+ deps = [
|
|
|
+ ":$_runtime_deps_target",
|
|
|
+ ]
|
|
|
forward_variables_from(invoker, [ "outputs" ])
|
|
|
- args = rebase_path(outputs + [ _runtime_deps_file ], root_build_dir) + [target_cpu, target_os]
|
|
|
+ args = rebase_path(outputs + [ _runtime_deps_file ], root_build_dir) + [
|
|
|
+ target_cpu,
|
|
|
+ target_os,
|
|
|
+ ]
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
copy("electron_license") {
|
|
|
- sources = [ "LICENSE" ]
|
|
|
- outputs = [ "$root_build_dir/{{source_file_part}}" ]
|
|
|
+ sources = [
|
|
|
+ "LICENSE",
|
|
|
+ ]
|
|
|
+ outputs = [
|
|
|
+ "$root_build_dir/{{source_file_part}}",
|
|
|
+ ]
|
|
|
}
|
|
|
copy("chromium_licenses") {
|
|
|
- deps = [ "//components/resources:about_credits" ]
|
|
|
- sources = [ "$root_gen_dir/components/resources/about_credits.html" ]
|
|
|
- outputs = [ "$root_build_dir/LICENSES.chromium.html" ]
|
|
|
+ deps = [
|
|
|
+ "//components/resources:about_credits",
|
|
|
+ ]
|
|
|
+ sources = [
|
|
|
+ "$root_gen_dir/components/resources/about_credits.html",
|
|
|
+ ]
|
|
|
+ outputs = [
|
|
|
+ "$root_build_dir/LICENSES.chromium.html",
|
|
|
+ ]
|
|
|
}
|
|
|
|
|
|
group("licenses") {
|
|
|
- data_deps = [ ":electron_license", ":chromium_licenses" ]
|
|
|
+ data_deps = [
|
|
|
+ ":electron_license",
|
|
|
+ ":chromium_licenses",
|
|
|
+ ]
|
|
|
}
|
|
|
|
|
|
action("electron_version") {
|
|
|
script = "build/write_version.py"
|
|
|
- outputs = [ "$root_build_dir/version" ]
|
|
|
+ outputs = [
|
|
|
+ "$root_build_dir/version",
|
|
|
+ ]
|
|
|
args = rebase_path(outputs, root_build_dir) + [ electron_version ]
|
|
|
}
|
|
|
|
|
|
-
|
|
|
dist_zip("electron_dist_zip") {
|
|
|
- data_deps = [ ":electron_app", ":licenses", ":electron_version" ]
|
|
|
- outputs = [ "$root_build_dir/dist.zip" ]
|
|
|
+ data_deps = [
|
|
|
+ ":electron_app",
|
|
|
+ ":licenses",
|
|
|
+ ":electron_version",
|
|
|
+ ]
|
|
|
+ outputs = [
|
|
|
+ "$root_build_dir/dist.zip",
|
|
|
+ ]
|
|
|
}
|
|
|
|
|
|
-
|
|
|
group("electron") {
|
|
|
- deps = [ ":electron_app" ]
|
|
|
+ deps = [
|
|
|
+ ":electron_app",
|
|
|
+ ]
|
|
|
}
|