Skip to content

Commit

Permalink
build: use variable for crypto dep path
Browse files Browse the repository at this point in the history
PR-URL: #55928
Reviewed-By: Cheng Zhao <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
codebytere authored and aduh95 committed Dec 10, 2024
1 parent 123aae0 commit 0a819a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/ncrypto/unofficial.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 0 deletions node.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion unofficial.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0a819a6

Please sign in to comment.