Skip to content

Commit 0f020ed

Browse files
zcbenzruyadorno
authored andcommitted
gyp: put cctest filenames in variables
PR-URL: #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 4b5e23c commit 0f020ed

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
@@ -368,6 +368,38 @@
368368
'src/quic/tokens.h',
369369
'src/quic/transportparams.h',
370370
],
371+
'node_cctest_sources': [
372+
'src/node_snapshot_stub.cc',
373+
'test/cctest/node_test_fixture.cc',
374+
'test/cctest/node_test_fixture.h',
375+
'test/cctest/test_aliased_buffer.cc',
376+
'test/cctest/test_base64.cc',
377+
'test/cctest/test_base_object_ptr.cc',
378+
'test/cctest/test_cppgc.cc',
379+
'test/cctest/test_node_postmortem_metadata.cc',
380+
'test/cctest/test_environment.cc',
381+
'test/cctest/test_linked_binding.cc',
382+
'test/cctest/test_node_api.cc',
383+
'test/cctest/test_per_process.cc',
384+
'test/cctest/test_platform.cc',
385+
'test/cctest/test_report.cc',
386+
'test/cctest/test_json_utils.cc',
387+
'test/cctest/test_sockaddr.cc',
388+
'test/cctest/test_traced_value.cc',
389+
'test/cctest/test_util.cc',
390+
'test/cctest/test_dataqueue.cc',
391+
],
392+
'node_cctest_openssl_sources': [
393+
'test/cctest/test_crypto_clienthello.cc',
394+
'test/cctest/test_node_crypto.cc',
395+
'test/cctest/test_node_crypto_env.cc',
396+
'test/cctest/test_quic_cid.cc',
397+
'test/cctest/test_quic_tokens.cc',
398+
],
399+
'node_cctest_inspector_sources': [
400+
'test/cctest/test_inspector_socket.cc',
401+
'test/cctest/test_inspector_socket_server.cc',
402+
],
371403
'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)',
372404
'node_js2c_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_js2c<(EXECUTABLE_SUFFIX)',
373405
'conditions': [
@@ -1031,49 +1063,20 @@
10311063
'NODE_WANT_INTERNALS=1',
10321064
],
10331065

1034-
'sources': [
1035-
'src/node_snapshot_stub.cc',
1036-
'test/cctest/node_test_fixture.cc',
1037-
'test/cctest/node_test_fixture.h',
1038-
'test/cctest/test_aliased_buffer.cc',
1039-
'test/cctest/test_base64.cc',
1040-
'test/cctest/test_base_object_ptr.cc',
1041-
'test/cctest/test_cppgc.cc',
1042-
'test/cctest/test_node_postmortem_metadata.cc',
1043-
'test/cctest/test_environment.cc',
1044-
'test/cctest/test_linked_binding.cc',
1045-
'test/cctest/test_node_api.cc',
1046-
'test/cctest/test_per_process.cc',
1047-
'test/cctest/test_platform.cc',
1048-
'test/cctest/test_report.cc',
1049-
'test/cctest/test_json_utils.cc',
1050-
'test/cctest/test_sockaddr.cc',
1051-
'test/cctest/test_traced_value.cc',
1052-
'test/cctest/test_util.cc',
1053-
'test/cctest/test_dataqueue.cc',
1054-
],
1066+
'sources': [ '<@(node_cctest_sources)' ],
10551067

10561068
'conditions': [
10571069
[ 'node_use_openssl=="true"', {
10581070
'defines': [
10591071
'HAVE_OPENSSL=1',
10601072
],
1061-
'sources': [
1062-
'test/cctest/test_crypto_clienthello.cc',
1063-
'test/cctest/test_node_crypto.cc',
1064-
'test/cctest/test_node_crypto_env.cc',
1065-
'test/cctest/test_quic_cid.cc',
1066-
'test/cctest/test_quic_tokens.cc',
1067-
]
1073+
'sources': [ '<@(node_cctest_openssl_sources)' ],
10681074
}],
10691075
['v8_enable_inspector==1', {
1070-
'sources': [
1071-
'test/cctest/test_inspector_socket.cc',
1072-
'test/cctest/test_inspector_socket_server.cc'
1073-
],
10741076
'defines': [
10751077
'HAVE_INSPECTOR=1',
10761078
],
1079+
'sources': [ '<@(node_cctest_inspector_sources)' ],
10771080
}, {
10781081
'defines': [
10791082
'HAVE_INSPECTOR=0',

0 commit comments

Comments
 (0)