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', - '