From 6aa42f9cf045e31d5b9ac6c404ed722710ad7a8c Mon Sep 17 00:00:00 2001 From: Cheng Date: Wed, 5 Feb 2025 11:26:24 +0900 Subject: [PATCH] build: do not put commands in sources variables PR-URL: https://github.com/nodejs/node/pull/56885 Reviewed-By: Chengzhong Wu Reviewed-By: Richard Lau --- configure.py | 6 ++++++ node.gyp | 5 ----- unofficial.gni | 19 ++++++++++++++++--- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/configure.py b/configure.py index 227757669cd..66e1f83ec05 100755 --- a/configure.py +++ b/configure.py @@ -1394,6 +1394,11 @@ def gcc_version_ge(version_checked): def configure_node_lib_files(o): o['variables']['node_library_files'] = SearchFiles('lib', 'js') +def configure_node_cctest_sources(o): + o['variables']['node_cctest_sources'] = [ 'src/node_snapshot_stub.cc' ] + \ + SearchFiles('test/cctest', 'cc') + \ + SearchFiles('test/cctest', 'h') + def configure_node(o): if options.dest_os == 'android': o['variables']['OS'] = 'android' @@ -2207,6 +2212,7 @@ flavor = GetFlavor(flavor_params) configure_node(output) configure_node_lib_files(output) +configure_node_cctest_sources(output) configure_napi(output) configure_library('zlib', output) configure_library('http_parser', output) diff --git a/node.gyp b/node.gyp index be117a94498..fca4d6bf563 100644 --- a/node.gyp +++ b/node.gyp @@ -402,11 +402,6 @@ 'src/quic/transportparams.h', 'src/quic/quic.cc', ], - 'node_cctest_sources': [ - 'src/node_snapshot_stub.cc', - '