Skip to content

Commit 26ec996

Browse files
codebytereaduh95
authored andcommitted
build: use variable for crypto dep path
PR-URL: #55928 Reviewed-By: Cheng Zhao <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent ccc5a6d commit 26ec996

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

deps/ncrypto/unofficial.gni

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ template("ncrypto_gn_build") {
2727
forward_variables_from(invoker, "*")
2828
public_configs = [ ":ncrypto_config" ]
2929
sources = gypi_values.ncrypto_sources
30-
deps = [ "../openssl" ]
30+
deps = [ "$node_openssl_path" ]
3131
}
3232
}

node.gni

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ declare_args() {
1010
# The location of V8, use the one from node's deps by default.
1111
node_v8_path = "$node_path/deps/v8"
1212

13+
node_openssl_path = "$node_path/deps/openssl"
14+
1315
# The NODE_MODULE_VERSION defined in node_version.h.
1416
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
1517

unofficial.gni

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ template("node_gn_build") {
185185
}
186186
if (node_use_openssl) {
187187
deps += [ "deps/ncrypto" ]
188-
public_deps += [ "deps/openssl" ]
188+
public_deps += [ "$node_openssl_path" ]
189189
sources += gypi_values.node_crypto_sources
190190
}
191191
if (node_enable_inspector) {

0 commit comments

Comments
 (0)