Skip to content

Commit 9aaec89

Browse files
zcbenzalexfernandez
authored andcommitted
gyp: put cctest filenames in variables
PR-URL: nodejs#49178 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
1 parent 966d6f6 commit 9aaec89

File tree

1 file changed

+35
-32
lines changed

1 file changed

+35
-32
lines changed

node.gyp

+35-32
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,38 @@
376376
'src/quic/tokens.h',
377377
'src/quic/transportparams.h',
378378
],
379+
'node_cctest_sources': [
380+
'src/node_snapshot_stub.cc',
381+
'test/cctest/node_test_fixture.cc',
382+
'test/cctest/node_test_fixture.h',
383+
'test/cctest/test_aliased_buffer.cc',
384+
'test/cctest/test_base64.cc',
385+
'test/cctest/test_base_object_ptr.cc',
386+
'test/cctest/test_cppgc.cc',
387+
'test/cctest/test_node_postmortem_metadata.cc',
388+
'test/cctest/test_environment.cc',
389+
'test/cctest/test_linked_binding.cc',
390+
'test/cctest/test_node_api.cc',
391+
'test/cctest/test_per_process.cc',
392+
'test/cctest/test_platform.cc',
393+
'test/cctest/test_report.cc',
394+
'test/cctest/test_json_utils.cc',
395+
'test/cctest/test_sockaddr.cc',
396+
'test/cctest/test_traced_value.cc',
397+
'test/cctest/test_util.cc',
398+
'test/cctest/test_dataqueue.cc',
399+
],
400+
'node_cctest_openssl_sources': [
401+
'test/cctest/test_crypto_clienthello.cc',
402+
'test/cctest/test_node_crypto.cc',
403+
'test/cctest/test_node_crypto_env.cc',
404+
'test/cctest/test_quic_cid.cc',
405+
'test/cctest/test_quic_tokens.cc',
406+
],
407+
'node_cctest_inspector_sources': [
408+
'test/cctest/test_inspector_socket.cc',
409+
'test/cctest/test_inspector_socket_server.cc',
410+
],
379411
'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)',
380412
'node_js2c_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_js2c<(EXECUTABLE_SUFFIX)',
381413
'conditions': [
@@ -1039,49 +1071,20 @@
10391071
'NODE_WANT_INTERNALS=1',
10401072
],
10411073

1042-
'sources': [
1043-
'src/node_snapshot_stub.cc',
1044-
'test/cctest/node_test_fixture.cc',
1045-
'test/cctest/node_test_fixture.h',
1046-
'test/cctest/test_aliased_buffer.cc',
1047-
'test/cctest/test_base64.cc',
1048-
'test/cctest/test_base_object_ptr.cc',
1049-
'test/cctest/test_cppgc.cc',
1050-
'test/cctest/test_node_postmortem_metadata.cc',
1051-
'test/cctest/test_environment.cc',
1052-
'test/cctest/test_linked_binding.cc',
1053-
'test/cctest/test_node_api.cc',
1054-
'test/cctest/test_per_process.cc',
1055-
'test/cctest/test_platform.cc',
1056-
'test/cctest/test_report.cc',
1057-
'test/cctest/test_json_utils.cc',
1058-
'test/cctest/test_sockaddr.cc',
1059-
'test/cctest/test_traced_value.cc',
1060-
'test/cctest/test_util.cc',
1061-
'test/cctest/test_dataqueue.cc',
1062-
],
1074+
'sources': [ '<@(node_cctest_sources)' ],
10631075

10641076
'conditions': [
10651077
[ 'node_use_openssl=="true"', {
10661078
'defines': [
10671079
'HAVE_OPENSSL=1',
10681080
],
1069-
'sources': [
1070-
'test/cctest/test_crypto_clienthello.cc',
1071-
'test/cctest/test_node_crypto.cc',
1072-
'test/cctest/test_node_crypto_env.cc',
1073-
'test/cctest/test_quic_cid.cc',
1074-
'test/cctest/test_quic_tokens.cc',
1075-
]
1081+
'sources': [ '<@(node_cctest_openssl_sources)' ],
10761082
}],
10771083
['v8_enable_inspector==1', {
1078-
'sources': [
1079-
'test/cctest/test_inspector_socket.cc',
1080-
'test/cctest/test_inspector_socket_server.cc'
1081-
],
10821084
'defines': [
10831085
'HAVE_INSPECTOR=1',
10841086
],
1087+
'sources': [ '<@(node_cctest_inspector_sources)' ],
10851088
}, {
10861089
'defines': [
10871090
'HAVE_INSPECTOR=0',

0 commit comments

Comments
 (0)