build: [gn mac] only link libnode.dylib in component build

This commit is contained in:
Jeremy Apthorp 2018-07-11 10:46:40 -07:00
parent 7bec61bac5
commit af7800bab1

View file

@ -436,6 +436,7 @@ if (is_mac) {
]
}
if (is_component_build) {
bundle_data("electron_framework_libraries") {
public_deps = [ "build/node" ]
sources = [
@ -445,6 +446,7 @@ if (is_mac) {
"{{bundle_contents_dir}}/Libraries/{{source_file_part}}"
]
}
}
bundle_data("electron_crashpad_helper") {
sources = [
@ -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",