mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
build: use variable for crypto dep path
PR-URL: https://github.com/nodejs/node/pull/55928 Reviewed-By: Cheng Zhao <zcbenz@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
92c7dde664
commit
d3bcb97e5a
3 changed files with 4 additions and 2 deletions
2
deps/ncrypto/unofficial.gni
vendored
2
deps/ncrypto/unofficial.gni
vendored
|
@ -27,6 +27,6 @@ template("ncrypto_gn_build") {
|
||||||
forward_variables_from(invoker, "*")
|
forward_variables_from(invoker, "*")
|
||||||
public_configs = [ ":ncrypto_config" ]
|
public_configs = [ ":ncrypto_config" ]
|
||||||
sources = gypi_values.ncrypto_sources
|
sources = gypi_values.ncrypto_sources
|
||||||
deps = [ "../openssl" ]
|
deps = [ "$node_openssl_path" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
node.gni
2
node.gni
|
@ -10,6 +10,8 @@ declare_args() {
|
||||||
# The location of V8, use the one from node's deps by default.
|
# The location of V8, use the one from node's deps by default.
|
||||||
node_v8_path = "$node_path/deps/v8"
|
node_v8_path = "$node_path/deps/v8"
|
||||||
|
|
||||||
|
node_openssl_path = "$node_path/deps/openssl"
|
||||||
|
|
||||||
# The NODE_MODULE_VERSION defined in node_version.h.
|
# The NODE_MODULE_VERSION defined in node_version.h.
|
||||||
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
|
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ template("node_gn_build") {
|
||||||
}
|
}
|
||||||
if (node_use_openssl) {
|
if (node_use_openssl) {
|
||||||
deps += [ "deps/ncrypto" ]
|
deps += [ "deps/ncrypto" ]
|
||||||
public_deps += [ "deps/openssl" ]
|
public_deps += [ "$node_openssl_path" ]
|
||||||
sources += gypi_values.node_crypto_sources
|
sources += gypi_values.node_crypto_sources
|
||||||
}
|
}
|
||||||
if (node_enable_inspector) {
|
if (node_enable_inspector) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue