build: [gn] link dwmapi in component build (#13773)
This commit is contained in:
parent
89a9ccab8b
commit
a01b4d78a4
1 changed files with 3 additions and 1 deletions
4
BUILD.gn
4
BUILD.gn
|
@ -217,6 +217,7 @@ static_library("electron_lib") {
|
||||||
]
|
]
|
||||||
|
|
||||||
defines = []
|
defines = []
|
||||||
|
libs = []
|
||||||
|
|
||||||
extra_source_filters = []
|
extra_source_filters = []
|
||||||
if (!is_linux) {
|
if (!is_linux) {
|
||||||
|
@ -280,7 +281,7 @@ static_library("electron_lib") {
|
||||||
]
|
]
|
||||||
defines += [ "MAS_BUILD" ]
|
defines += [ "MAS_BUILD" ]
|
||||||
} else {
|
} else {
|
||||||
libs = [
|
libs += [
|
||||||
"Squirrel.framework",
|
"Squirrel.framework",
|
||||||
"ReactiveCocoa.framework",
|
"ReactiveCocoa.framework",
|
||||||
"Mantle.framework",
|
"Mantle.framework",
|
||||||
|
@ -315,6 +316,7 @@ static_library("electron_lib") {
|
||||||
}
|
}
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
sources += filenames_gypi.lib_sources_win
|
sources += filenames_gypi.lib_sources_win
|
||||||
|
libs += [ "dwmapi.lib" ]
|
||||||
}
|
}
|
||||||
if (is_linux || is_win) {
|
if (is_linux || is_win) {
|
||||||
deps += [ "//third_party/breakpad:client" ]
|
deps += [ "//third_party/breakpad:client" ]
|
||||||
|
|
Loading…
Reference in a new issue