From 47cb0393cf2af90c0cac24bfbc035e86fde24135 Mon Sep 17 00:00:00 2001 From: Cheng Date: Mon, 3 Feb 2025 08:54:16 +0900 Subject: [PATCH] build: do not put commands in sources variables --- 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 227757669cd2a4..66e1f83ec0570e 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 @@ def make_bin_override(): 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 be117a94498342..fca4d6bf563472 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', - '