From af7800bab10d11f60fc875c5f2ec8b057dfe49d7 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Wed, 11 Jul 2018 10:46:40 -0700 Subject: [PATCH] build: [gn mac] only link libnode.dylib in component build --- BUILD.gn | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 6868679efd43..11adaa732485 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -436,14 +436,16 @@ if (is_mac) { ] } - bundle_data("electron_framework_libraries") { - public_deps = [ "build/node" ] - sources = [ - "$root_out_dir/libnode.dylib" - ] - outputs = [ - "{{bundle_contents_dir}}/Libraries/{{source_file_part}}" - ] + if (is_component_build) { + bundle_data("electron_framework_libraries") { + public_deps = [ "build/node" ] + sources = [ + "$root_out_dir/libnode.dylib" + ] + outputs = [ + "{{bundle_contents_dir}}/Libraries/{{source_file_part}}" + ] + } } bundle_data("electron_crashpad_helper") { @@ -468,13 +470,15 @@ if (is_mac) { deps = [ "//base", "//base:i18n", - ":electron_framework_libraries", ":electron_framework_resources", ":electron_xibs", ] if (!is_mas_build) { deps += [ ":electron_crashpad_helper" ] } + if (is_component_build) { + deps += [ ":electron_framework_libraries" ] + } info_plist = "atom/common/resources/mac/Info.plist" extra_substitutions = [ "ATOM_BUNDLE_ID=$electron_mac_bundle_id.framework",