mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
build: do not put commands in sources variables
PR-URL: https://github.com/nodejs/node/pull/56885 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
@@ -362,13 +362,26 @@ template("node_gn_build") {
|
||||
"$node_simdutf_path",
|
||||
]
|
||||
|
||||
sources = gypi_values.node_cctest_sources
|
||||
sources = [ "src/node_snapshot_stub.cc" ]
|
||||
sources += exec_script("./tools/search_files.py",
|
||||
[ rebase_path(".", root_build_dir),
|
||||
rebase_path("test/cctest", root_build_dir),
|
||||
"cc" ],
|
||||
"list lines")
|
||||
|
||||
if (node_use_openssl) {
|
||||
deps += [ "deps/ncrypto" ]
|
||||
sources += gypi_values.node_cctest_openssl_sources
|
||||
} else {
|
||||
sources -= gypi_values.node_cctest_openssl_sources
|
||||
}
|
||||
if (node_enable_inspector) {
|
||||
sources += gypi_values.node_cctest_inspector_sources
|
||||
deps += [ "src/inspector:crdtp" ]
|
||||
include_dirs = [
|
||||
"$target_gen_dir/src",
|
||||
"$target_gen_dir/src/inspector",
|
||||
]
|
||||
} else {
|
||||
sources -= gypi_values.node_cctest_inspector_sources
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user