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 @@ -1394,6 +1394,11 @@ def gcc_version_ge(version_checked):
1394
1394
def configure_node_lib_files (o ):
1395
1395
o ['variables' ]['node_library_files' ] = SearchFiles ('lib' , 'js' )
1396
1396
1397
+ def configure_node_cctest_sources (o ):
1398
+ o ['variables' ]['node_cctest_sources' ] = [ 'src/node_snapshot_stub.cc' ] + \
1399
+ SearchFiles ('test/cctest' , 'cc' ) + \
1400
+ SearchFiles ('test/cctest' , 'h' )
1401
+
1397
1402
def configure_node (o ):
1398
1403
if options .dest_os == 'android' :
1399
1404
o ['variables' ]['OS' ] = 'android'
@@ -2207,6 +2212,7 @@ def make_bin_override():
2207
2212
2208
2213
configure_node (output )
2209
2214
configure_node_lib_files (output )
2215
+ configure_node_cctest_sources (output )
2210
2216
configure_napi (output )
2211
2217
configure_library ('zlib' , output )
2212
2218
configure_library ('http_parser' , output )
Original file line number Diff line number Diff line change 402
402
'src/quic/transportparams.h' ,
403
403
'src/quic/quic.cc' ,
404
404
],
405
- 'node_cctest_sources' : [
406
- 'src/node_snapshot_stub.cc' ,
407
- '<!@("<(python)" tools/search_files.py . test/cctest cc)' ,
408
- '<!@("<(python)" tools/search_files.py . test/cctest h)' ,
409
- ],
410
405
'node_cctest_openssl_sources' : [
411
406
'test/cctest/test_crypto_clienthello.cc' ,
412
407
'test/cctest/test_node_crypto.cc' ,
Original file line number Diff line number Diff line change @@ -362,13 +362,26 @@ template("node_gn_build") {
362
362
" $node_simdutf_path " ,
363
363
]
364
364
365
- sources = gypi_values .node_cctest_sources
365
+ sources = [ " src/node_snapshot_stub.cc" ]
366
+ sources += exec_script (" ./tools/search_files.py" ,
367
+ [ rebase_path (" ." , root_build_dir ),
368
+ rebase_path (" test/cctest" , root_build_dir ),
369
+ " cc" ],
370
+ " list lines" )
371
+
366
372
if (node_use_openssl ) {
367
373
deps += [ " deps/ncrypto" ]
368
- sources += gypi_values .node_cctest_openssl_sources
374
+ } else {
375
+ sources -= gypi_values .node_cctest_openssl_sources
369
376
}
370
377
if (node_enable_inspector ) {
371
- sources += gypi_values .node_cctest_inspector_sources
378
+ deps += [ " src/inspector:crdtp" ]
379
+ include_dirs = [
380
+ " $target_gen_dir /src" ,
381
+ " $target_gen_dir /src/inspector" ,
382
+ ]
383
+ } else {
384
+ sources -= gypi_values .node_cctest_inspector_sources
372
385
}
373
386
}
374
387
You can’t perform that action at this time.
0 commit comments