mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 03:07:54 +01: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
2
deps/ncrypto/unofficial.gni
vendored
2
deps/ncrypto/unofficial.gni
vendored
@ -27,6 +27,6 @@ template("ncrypto_gn_build") {
|
||||
forward_variables_from(invoker, "*")
|
||||
public_configs = [ ":ncrypto_config" ]
|
||||
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.
|
||||
node_v8_path = "$node_path/deps/v8"
|
||||
|
||||
node_openssl_path = "$node_path/deps/openssl"
|
||||
|
||||
# The NODE_MODULE_VERSION defined in node_version.h.
|
||||
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
|
||||
|
||||
|
@ -185,7 +185,7 @@ template("node_gn_build") {
|
||||
}
|
||||
if (node_use_openssl) {
|
||||
deps += [ "deps/ncrypto" ]
|
||||
public_deps += [ "deps/openssl" ]
|
||||
public_deps += [ "$node_openssl_path" ]
|
||||
sources += gypi_values.node_crypto_sources
|
||||
}
|
||||
if (node_enable_inspector) {
|
||||
|
Loading…
Reference in New Issue
Block a user