File tree 3 files changed +22
-8
lines changed
3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -1392,6 +1392,11 @@ def gcc_version_ge(version_checked):
1392
1392
def configure_node_lib_files (o ):
1393
1393
o ['variables' ]['node_library_files' ] = SearchFiles ('lib' , 'js' )
1394
1394
1395
+ def configure_node_cctest_sources (o ):
1396
+ o ['variables' ]['node_cctest_sources' ] = [ 'src/node_snapshot_stub.cc' ] + \
1397
+ SearchFiles ('test/cctest' , 'cc' ) + \
1398
+ SearchFiles ('test/cctest' , 'h' )
1399
+
1395
1400
def configure_node (o ):
1396
1401
if options .dest_os == 'android' :
1397
1402
o ['variables' ]['OS' ] = 'android'
@@ -2204,6 +2209,7 @@ def make_bin_override():
2204
2209
2205
2210
configure_node (output )
2206
2211
configure_node_lib_files (output )
2212
+ configure_node_cctest_sources (output )
2207
2213
configure_napi (output )
2208
2214
configure_library ('zlib' , output )
2209
2215
configure_library ('http_parser' , output )
Original file line number Diff line number Diff line change 399
399
'src/quic/transportparams.h' ,
400
400
'src/quic/quic.cc' ,
401
401
],
402
- 'node_cctest_sources' : [
403
- 'src/node_snapshot_stub.cc' ,
404
- '<!@("<(python)" tools/search_files.py . test/cctest cc)' ,
405
- '<!@("<(python)" tools/search_files.py . test/cctest h)' ,
406
- ],
407
402
'node_cctest_openssl_sources' : [
408
403
'test/cctest/test_crypto_clienthello.cc' ,
409
404
'test/cctest/test_node_crypto.cc' ,
Original file line number Diff line number Diff line change @@ -345,13 +345,26 @@ template("node_gn_build") {
345
345
" $node_simdutf_path " ,
346
346
]
347
347
348
- sources = gypi_values .node_cctest_sources
348
+ sources = [ " src/node_snapshot_stub.cc" ]
349
+ sources += exec_script (" ./tools/search_files.py" ,
350
+ [ rebase_path (" ." , root_build_dir ),
351
+ rebase_path (" test/cctest" , root_build_dir ),
352
+ " cc" ],
353
+ " list lines" )
354
+
349
355
if (node_use_openssl ) {
350
356
deps += [ " deps/ncrypto" ]
351
- sources += gypi_values .node_cctest_openssl_sources
357
+ } else {
358
+ sources -= gypi_values .node_cctest_openssl_sources
352
359
}
353
360
if (node_enable_inspector ) {
354
- sources += gypi_values .node_cctest_inspector_sources
361
+ deps += [ " src/inspector:crdtp" ]
362
+ include_dirs = [
363
+ " $target_gen_dir /src" ,
364
+ " $target_gen_dir /src/inspector" ,
365
+ ]
366
+ } else {
367
+ sources -= gypi_values .node_cctest_inspector_sources
355
368
}
356
369
}
357
370
You can’t perform that action at this time.
0 commit comments