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:
Shelley Vohr 2024-11-23 12:06:02 +01:00 committed by RafaelGSS
parent 6537512dec
commit d5051d09b6
No known key found for this signature in database
GPG key ID: 8BEAB4DFCF555EF4
2 changed files with 3 additions and 1 deletions

View file

@ -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")

View file

@ -182,7 +182,7 @@ template("node_gn_build") {
deps += [ "//third_party/icu" ]
}
if (node_use_openssl) {
public_deps += [ "deps/openssl" ]
public_deps += [ "$node_openssl_path" ]
sources += gypi_values.node_crypto_sources
}
if (node_enable_inspector) {