chore: [gn] changes to BUILD.gn for windows (#13434)
Grab basket of changes needed to get the `electron_lib` target building on Windows with GN.
This commit is contained in:
parent
4b60efcaf8
commit
39e6943f1e
2 changed files with 16 additions and 2 deletions
|
@ -1,12 +1,16 @@
|
|||
action("configure_node") {
|
||||
script = "//third_party/electron_node/configure"
|
||||
ssl_libname_suffix = ""
|
||||
if (is_win) {
|
||||
ssl_libname_suffix = ".dll"
|
||||
}
|
||||
args = [
|
||||
"--enable-static",
|
||||
"--release-urlbase=https://atom.io/download/electron",
|
||||
"--shared",
|
||||
"--shared-openssl",
|
||||
"--shared-openssl-includes=" + rebase_path("//third_party/boringssl/src/include"),
|
||||
"--shared-openssl-libname=boringssl",
|
||||
"--shared-openssl-libname=boringssl" + ssl_libname_suffix,
|
||||
"--shared-openssl-libpath=" + rebase_path(root_out_dir),
|
||||
"--without-npm",
|
||||
"--without-bundled-v8",
|
||||
|
@ -72,6 +76,9 @@ action("build_node") {
|
|||
if (is_linux) {
|
||||
outputs = [ "$target_out_dir/Release/lib/libnode.so" ]
|
||||
}
|
||||
if (is_win) {
|
||||
outputs = [ "$target_out_dir/Release/node.dll" ]
|
||||
}
|
||||
}
|
||||
|
||||
node_libs = get_target_outputs(":build_node")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue