build: [gn mac] only link libnode.dylib in component build
This commit is contained in:
parent
7bec61bac5
commit
af7800bab1
1 changed files with 13 additions and 9 deletions
6
BUILD.gn
6
BUILD.gn
|
@ -436,6 +436,7 @@ if (is_mac) {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_component_build) {
|
||||||
bundle_data("electron_framework_libraries") {
|
bundle_data("electron_framework_libraries") {
|
||||||
public_deps = [ "build/node" ]
|
public_deps = [ "build/node" ]
|
||||||
sources = [
|
sources = [
|
||||||
|
@ -445,6 +446,7 @@ if (is_mac) {
|
||||||
"{{bundle_contents_dir}}/Libraries/{{source_file_part}}"
|
"{{bundle_contents_dir}}/Libraries/{{source_file_part}}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bundle_data("electron_crashpad_helper") {
|
bundle_data("electron_crashpad_helper") {
|
||||||
sources = [
|
sources = [
|
||||||
|
@ -468,13 +470,15 @@ if (is_mac) {
|
||||||
deps = [
|
deps = [
|
||||||
"//base",
|
"//base",
|
||||||
"//base:i18n",
|
"//base:i18n",
|
||||||
":electron_framework_libraries",
|
|
||||||
":electron_framework_resources",
|
":electron_framework_resources",
|
||||||
":electron_xibs",
|
":electron_xibs",
|
||||||
]
|
]
|
||||||
if (!is_mas_build) {
|
if (!is_mas_build) {
|
||||||
deps += [ ":electron_crashpad_helper" ]
|
deps += [ ":electron_crashpad_helper" ]
|
||||||
}
|
}
|
||||||
|
if (is_component_build) {
|
||||||
|
deps += [ ":electron_framework_libraries" ]
|
||||||
|
}
|
||||||
info_plist = "atom/common/resources/mac/Info.plist"
|
info_plist = "atom/common/resources/mac/Info.plist"
|
||||||
extra_substitutions = [
|
extra_substitutions = [
|
||||||
"ATOM_BUNDLE_ID=$electron_mac_bundle_id.framework",
|
"ATOM_BUNDLE_ID=$electron_mac_bundle_id.framework",
|
||||||
|
|
Loading…
Reference in a new issue