Skip to content

Commit 9b59718

Browse files
committedMar 13, 2023
gyp: put filenames in variables
1 parent f8bf498 commit 9b59718

File tree

13 files changed

+688
-606
lines changed

13 files changed

+688
-606
lines changed
 

‎deps/ada/ada.gyp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
'variables': {
33
'v8_enable_i18n_support%': 1,
4+
'ada_sources': [ 'ada.cpp' ],
45
},
56
'targets': [
67
{
@@ -10,7 +11,7 @@
1011
'direct_dependent_settings': {
1112
'include_dirs': ['.'],
1213
},
13-
'sources': ['ada.cpp'],
14+
'sources': [ '<@(ada_sources)' ],
1415
'conditions': [
1516
['v8_enable_i18n_support==0', {
1617
'defines': ['ADA_HAS_ICU=0'],

‎deps/base64/base64.gyp

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
'variables': {
33
'arm_fpu%': '',
44
'target_arch%': '',
5+
'base64_sources_common': [
6+
'base64/include/libbase64.h',
7+
'base64/lib/arch/generic/codec.c',
8+
'base64/lib/tables/tables.c',
9+
'base64/lib/codec_choose.c',
10+
'base64/lib/codecs.h',
11+
'base64/lib/lib.c',
12+
],
513
},
614
'targets': [
715
{
@@ -14,12 +22,7 @@
1422
},
1523
'defines': [ 'BASE64_STATIC_DEFINE' ],
1624
'sources': [
17-
'base64/include/libbase64.h',
18-
'base64/lib/arch/generic/codec.c',
19-
'base64/lib/tables/tables.c',
20-
'base64/lib/codec_choose.c',
21-
'base64/lib/codecs.h',
22-
'base64/lib/lib.c',
25+
'<@(base64_sources_common)',
2326
],
2427

2528
'conditions': [

‎deps/brotli/brotli.gyp

+39-34
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,42 @@
11
{
2+
'variables': {
3+
'brotli_sources': [
4+
# Common
5+
'c/common/constants.c',
6+
'c/common/context.c',
7+
'c/common/dictionary.c',
8+
'c/common/platform.c',
9+
'c/common/transform.c',
10+
11+
# Decoder
12+
'c/dec/bit_reader.c',
13+
'c/dec/decode.c',
14+
'c/dec/huffman.c',
15+
'c/dec/state.c',
16+
17+
# Encoder
18+
'c/enc/backward_references.c',
19+
'c/enc/backward_references_hq.c',
20+
'c/enc/bit_cost.c',
21+
'c/enc/block_splitter.c',
22+
'c/enc/brotli_bit_stream.c',
23+
'c/enc/cluster.c',
24+
'c/enc/command.c',
25+
'c/enc/compress_fragment.c',
26+
'c/enc/compress_fragment_two_pass.c',
27+
'c/enc/dictionary_hash.c',
28+
'c/enc/encode.c',
29+
'c/enc/encoder_dict.c',
30+
'c/enc/entropy_encode.c',
31+
'c/enc/fast_log.c',
32+
'c/enc/histogram.c',
33+
'c/enc/literal_cost.c',
34+
'c/enc/memory.c',
35+
'c/enc/metablock.c',
36+
'c/enc/static_dict.c',
37+
'c/enc/utf8_util.c',
38+
]
39+
},
240
'targets': [
341
{
442
'target_name': 'brotli',
@@ -28,40 +66,7 @@
2866
'-lm',
2967
],
3068
'sources': [
31-
# Common
32-
'c/common/constants.c',
33-
'c/common/context.c',
34-
'c/common/dictionary.c',
35-
'c/common/platform.c',
36-
'c/common/transform.c',
37-
38-
# Decoder
39-
'c/dec/bit_reader.c',
40-
'c/dec/decode.c',
41-
'c/dec/huffman.c',
42-
'c/dec/state.c',
43-
44-
# Encoder
45-
'c/enc/backward_references.c',
46-
'c/enc/backward_references_hq.c',
47-
'c/enc/bit_cost.c',
48-
'c/enc/block_splitter.c',
49-
'c/enc/brotli_bit_stream.c',
50-
'c/enc/cluster.c',
51-
'c/enc/command.c',
52-
'c/enc/compress_fragment.c',
53-
'c/enc/compress_fragment_two_pass.c',
54-
'c/enc/dictionary_hash.c',
55-
'c/enc/encode.c',
56-
'c/enc/encoder_dict.c',
57-
'c/enc/entropy_encode.c',
58-
'c/enc/fast_log.c',
59-
'c/enc/histogram.c',
60-
'c/enc/literal_cost.c',
61-
'c/enc/memory.c',
62-
'c/enc/metablock.c',
63-
'c/enc/static_dict.c',
64-
'c/enc/utf8_util.c'
69+
'<@(brotli_sources)',
6570
]
6671
}
6772
]

‎deps/cares/cares.gyp

+92-83
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,94 @@
11
{
2+
'variables': {
3+
'cares_sources_common': [
4+
'include/ares.h',
5+
'include/ares_dns.h',
6+
'include/ares_nameser.h',
7+
'include/ares_rules.h',
8+
'include/ares_version.h',
9+
'src/lib/ares__addrinfo2hostent.c',
10+
'src/lib/ares__addrinfo_localhost.c',
11+
'src/lib/ares_android.c',
12+
'src/lib/ares_cancel.c',
13+
'src/lib/ares__close_sockets.c',
14+
'src/lib/ares_create_query.c',
15+
'src/lib/ares_data.c',
16+
'src/lib/ares_data.h',
17+
'src/lib/ares_destroy.c',
18+
'src/lib/ares_expand_name.c',
19+
'src/lib/ares_expand_string.c',
20+
'src/lib/ares_fds.c',
21+
'src/lib/ares_free_hostent.c',
22+
'src/lib/ares_free_string.c',
23+
'src/lib/ares_freeaddrinfo.c',
24+
'src/lib/ares_getenv.h',
25+
'src/lib/ares_getaddrinfo.c',
26+
'src/lib/ares_gethostbyaddr.c',
27+
'src/lib/ares_gethostbyname.c',
28+
'src/lib/ares__get_hostent.c',
29+
'src/lib/ares_getnameinfo.c',
30+
'src/lib/ares_getsock.c',
31+
'src/lib/ares_init.c',
32+
'src/lib/ares_ipv6.h',
33+
'src/lib/ares_library_init.c',
34+
'src/lib/ares_library_init.h',
35+
'src/lib/ares_llist.c',
36+
'src/lib/ares_llist.h',
37+
'src/lib/ares_mkquery.c',
38+
'src/lib/ares_nowarn.c',
39+
'src/lib/ares_nowarn.h',
40+
'src/lib/ares_options.c',
41+
'src/lib/ares__parse_into_addrinfo.c',
42+
'src/lib/ares_parse_aaaa_reply.c',
43+
'src/lib/ares_parse_a_reply.c',
44+
'src/lib/ares_parse_caa_reply.c',
45+
'src/lib/ares_parse_mx_reply.c',
46+
'src/lib/ares_parse_naptr_reply.c',
47+
'src/lib/ares_parse_ns_reply.c',
48+
'src/lib/ares_parse_ptr_reply.c',
49+
'src/lib/ares_parse_soa_reply.c',
50+
'src/lib/ares_parse_srv_reply.c',
51+
'src/lib/ares_parse_txt_reply.c',
52+
'src/lib/ares_parse_uri_reply.c',
53+
'src/lib/ares_platform.h',
54+
'src/lib/ares_private.h',
55+
'src/lib/ares_process.c',
56+
'src/lib/ares_query.c',
57+
'src/lib/ares__read_line.c',
58+
'src/lib/ares__readaddrinfo.c',
59+
'src/lib/ares_search.c',
60+
'src/lib/ares_send.c',
61+
'src/lib/ares_setup.h',
62+
'src/lib/ares__sortaddrinfo.c',
63+
'src/lib/ares_strcasecmp.c',
64+
'src/lib/ares_strcasecmp.h',
65+
'src/lib/ares_strdup.c',
66+
'src/lib/ares_strdup.h',
67+
'src/lib/ares_strerror.c',
68+
'src/lib/ares_strsplit.c',
69+
'src/lib/ares_timeout.c',
70+
'src/lib/ares__timeval.c',
71+
'src/lib/ares_version.c',
72+
'src/lib/ares_writev.c',
73+
'src/lib/ares_writev.h',
74+
'src/lib/bitncmp.c',
75+
'src/lib/bitncmp.h',
76+
'src/lib/inet_net_pton.c',
77+
'src/lib/inet_ntop.c',
78+
'src/lib/ares_inet_net_pton.h',
79+
'src/lib/setup_once.h',
80+
'src/tools/ares_getopt.c',
81+
'src/tools/ares_getopt.h',
82+
],
83+
'cares_sources_win': [
84+
'src/lib/config-win32.h',
85+
'src/lib/windows_port.c',
86+
'src/lib/ares_getenv.c',
87+
'src/lib/ares_iphlpapi.h',
88+
'src/lib/ares_platform.c',
89+
],
90+
},
91+
292
'target_defaults': {
393
'conditions': [
494
['OS!="win"', {
@@ -35,84 +125,7 @@
35125
'include_dirs': [ 'include' ]
36126
},
37127
'sources': [
38-
'include/ares.h',
39-
'include/ares_dns.h',
40-
'include/ares_nameser.h',
41-
'include/ares_rules.h',
42-
'include/ares_version.h',
43-
'src/lib/ares__addrinfo2hostent.c',
44-
'src/lib/ares__addrinfo_localhost.c',
45-
'src/lib/ares_android.c',
46-
'src/lib/ares_cancel.c',
47-
'src/lib/ares__close_sockets.c',
48-
'src/lib/ares_create_query.c',
49-
'src/lib/ares_data.c',
50-
'src/lib/ares_data.h',
51-
'src/lib/ares_destroy.c',
52-
'src/lib/ares_expand_name.c',
53-
'src/lib/ares_expand_string.c',
54-
'src/lib/ares_fds.c',
55-
'src/lib/ares_free_hostent.c',
56-
'src/lib/ares_free_string.c',
57-
'src/lib/ares_freeaddrinfo.c',
58-
'src/lib/ares_getenv.h',
59-
'src/lib/ares_getaddrinfo.c',
60-
'src/lib/ares_gethostbyaddr.c',
61-
'src/lib/ares_gethostbyname.c',
62-
'src/lib/ares__get_hostent.c',
63-
'src/lib/ares_getnameinfo.c',
64-
'src/lib/ares_getsock.c',
65-
'src/lib/ares_init.c',
66-
'src/lib/ares_ipv6.h',
67-
'src/lib/ares_library_init.c',
68-
'src/lib/ares_library_init.h',
69-
'src/lib/ares_llist.c',
70-
'src/lib/ares_llist.h',
71-
'src/lib/ares_mkquery.c',
72-
'src/lib/ares_nowarn.c',
73-
'src/lib/ares_nowarn.h',
74-
'src/lib/ares_options.c',
75-
'src/lib/ares__parse_into_addrinfo.c',
76-
'src/lib/ares_parse_aaaa_reply.c',
77-
'src/lib/ares_parse_a_reply.c',
78-
'src/lib/ares_parse_caa_reply.c',
79-
'src/lib/ares_parse_mx_reply.c',
80-
'src/lib/ares_parse_naptr_reply.c',
81-
'src/lib/ares_parse_ns_reply.c',
82-
'src/lib/ares_parse_ptr_reply.c',
83-
'src/lib/ares_parse_soa_reply.c',
84-
'src/lib/ares_parse_srv_reply.c',
85-
'src/lib/ares_parse_txt_reply.c',
86-
'src/lib/ares_parse_uri_reply.c',
87-
'src/lib/ares_platform.h',
88-
'src/lib/ares_private.h',
89-
'src/lib/ares_process.c',
90-
'src/lib/ares_query.c',
91-
'src/lib/ares__read_line.c',
92-
'src/lib/ares__readaddrinfo.c',
93-
'src/lib/ares_search.c',
94-
'src/lib/ares_send.c',
95-
'src/lib/ares_setup.h',
96-
'src/lib/ares__sortaddrinfo.c',
97-
'src/lib/ares_strcasecmp.c',
98-
'src/lib/ares_strcasecmp.h',
99-
'src/lib/ares_strdup.c',
100-
'src/lib/ares_strdup.h',
101-
'src/lib/ares_strerror.c',
102-
'src/lib/ares_strsplit.c',
103-
'src/lib/ares_timeout.c',
104-
'src/lib/ares__timeval.c',
105-
'src/lib/ares_version.c',
106-
'src/lib/ares_writev.c',
107-
'src/lib/ares_writev.h',
108-
'src/lib/bitncmp.c',
109-
'src/lib/bitncmp.h',
110-
'src/lib/inet_net_pton.c',
111-
'src/lib/inet_ntop.c',
112-
'src/lib/ares_inet_net_pton.h',
113-
'src/lib/setup_once.h',
114-
'src/tools/ares_getopt.c',
115-
'src/tools/ares_getopt.h',
128+
'<@(cares_sources_common)',
116129
],
117130
'conditions': [
118131
[ 'library=="static_library"', {
@@ -127,11 +140,7 @@
127140
],
128141
'include_dirs': [ 'config/win32' ],
129142
'sources': [
130-
'src/lib/config-win32.h',
131-
'src/lib/windows_port.c',
132-
'src/lib/ares_getenv.c',
133-
'src/lib/ares_iphlpapi.h',
134-
'src/lib/ares_platform.c'
143+
'<@(cares_sources_win)',
135144
],
136145
'libraries': [
137146
'-lws2_32.lib',

‎deps/googletest/googletest.gyp

+37-36
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
11
{
2+
'variables': {
3+
'googletest_sources': [
4+
'include/gtest/gtest-assertion-result.h',
5+
'include/gtest/gtest-death-test.h',
6+
'include/gtest/gtest-matchers.h',
7+
'include/gtest/gtest-message.h',
8+
'include/gtest/gtest-param-test.h',
9+
'include/gtest/gtest-printers.h',
10+
'include/gtest/gtest-spi.h',
11+
'include/gtest/gtest-test-part.h',
12+
'include/gtest/gtest-typed-test.h',
13+
'include/gtest/gtest.h',
14+
'include/gtest/gtest_pred_impl.h',
15+
'include/gtest/internal/custom/gtest-port.h',
16+
'include/gtest/internal/custom/gtest-printers.h',
17+
'include/gtest/internal/custom/gtest.h',
18+
'include/gtest/internal/gtest-death-test-internal.h',
19+
'include/gtest/internal/gtest-filepath.h',
20+
'include/gtest/internal/gtest-internal.h',
21+
'include/gtest/internal/gtest-param-util.h',
22+
'include/gtest/internal/gtest-port-arch.h',
23+
'include/gtest/internal/gtest-port.h',
24+
'include/gtest/internal/gtest-string.h',
25+
'include/gtest/internal/gtest-type-util.h',
26+
'src/gtest-assertion-result.cc',
27+
'src/gtest-death-test.cc',
28+
'src/gtest-filepath.cc',
29+
'src/gtest-internal-inl.h',
30+
'src/gtest-matchers.cc',
31+
'src/gtest-port.cc',
32+
'src/gtest-printers.cc',
33+
'src/gtest-test-part.cc',
34+
'src/gtest-typed-test.cc',
35+
'src/gtest.cc',
36+
]
37+
},
238
'targets': [
339
{
440
'target_name': 'gtest',
541
'type': 'static_library',
642
'sources': [
7-
'include/gtest/gtest-assertion-result.h',
8-
'include/gtest/gtest-death-test.h',
9-
'include/gtest/gtest-matchers.h',
10-
'include/gtest/gtest-message.h',
11-
'include/gtest/gtest-param-test.h',
12-
'include/gtest/gtest-printers.h',
13-
'include/gtest/gtest-spi.h',
14-
'include/gtest/gtest-test-part.h',
15-
'include/gtest/gtest-typed-test.h',
16-
'include/gtest/gtest.h',
17-
'include/gtest/gtest_pred_impl.h',
18-
'include/gtest/internal/custom/gtest-port.h',
19-
'include/gtest/internal/custom/gtest-printers.h',
20-
'include/gtest/internal/custom/gtest.h',
21-
'include/gtest/internal/gtest-death-test-internal.h',
22-
'include/gtest/internal/gtest-filepath.h',
23-
'include/gtest/internal/gtest-internal.h',
24-
'include/gtest/internal/gtest-param-util.h',
25-
'include/gtest/internal/gtest-port-arch.h',
26-
'include/gtest/internal/gtest-port.h',
27-
'include/gtest/internal/gtest-string.h',
28-
'include/gtest/internal/gtest-type-util.h',
29-
'src/gtest-all.cc',
30-
'src/gtest-assertion-result.cc',
31-
'src/gtest-death-test.cc',
32-
'src/gtest-filepath.cc',
33-
'src/gtest-internal-inl.h',
34-
'src/gtest-matchers.cc',
35-
'src/gtest-port.cc',
36-
'src/gtest-printers.cc',
37-
'src/gtest-test-part.cc',
38-
'src/gtest-typed-test.cc',
39-
'src/gtest.cc',
40-
],
41-
'sources!': [
42-
'src/gtest-all.cc', # Not needed by our build.
43+
'<@(googletest_sources)',
4344
],
4445
'include_dirs': [
4546
'.', # src

‎deps/histogram/histogram.gyp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
'variables': {
3+
'histogram_sources': [
4+
'src/hdr_histogram.c',
5+
]
6+
},
27
'targets': [
38
{
49
'target_name': 'histogram',
@@ -12,7 +17,7 @@
1217
'include_dirs': [ 'src' ]
1318
},
1419
'sources': [
15-
'src/hdr_histogram.c',
20+
'<@(histogram_sources)',
1621
]
1722
}
1823
]

‎deps/llhttp/llhttp.gyp

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2+
'variables': {
3+
'llhttp_sources': [
4+
'src/llhttp.c',
5+
'src/api.c',
6+
'src/http.c',
7+
]
8+
},
29
'targets': [
310
{
411
'target_name': 'llhttp',
@@ -7,7 +14,9 @@
714
'direct_dependent_settings': {
815
'include_dirs': [ 'include' ],
916
},
10-
'sources': [ 'src/llhttp.c', 'src/api.c', 'src/http.c' ],
17+
'sources': [
18+
'<@(llhttp_sources)',
19+
],
1120
},
1221
]
1322
}

‎deps/nghttp2/nghttp2.gyp

+28-23
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
{
2+
'variables': {
3+
'nghttp2_sources': [
4+
'lib/nghttp2_buf.c',
5+
'lib/nghttp2_callbacks.c',
6+
'lib/nghttp2_debug.c',
7+
'lib/nghttp2_extpri.c',
8+
'lib/nghttp2_frame.c',
9+
'lib/nghttp2_hd.c',
10+
'lib/nghttp2_hd_huffman.c',
11+
'lib/nghttp2_hd_huffman_data.c',
12+
'lib/nghttp2_helper.c',
13+
'lib/nghttp2_http.c',
14+
'lib/nghttp2_map.c',
15+
'lib/nghttp2_mem.c',
16+
'lib/nghttp2_npn.c',
17+
'lib/nghttp2_option.c',
18+
'lib/nghttp2_outbound_item.c',
19+
'lib/nghttp2_pq.c',
20+
'lib/nghttp2_priority_spec.c',
21+
'lib/nghttp2_queue.c',
22+
'lib/nghttp2_rcbuf.c',
23+
'lib/nghttp2_session.c',
24+
'lib/nghttp2_stream.c',
25+
'lib/nghttp2_submit.c',
26+
'lib/nghttp2_version.c',
27+
]
28+
},
229
'target_defaults': {
330
'defines': [
431
'_U_='
@@ -35,29 +62,7 @@
3562
'include_dirs': [ 'lib/includes' ]
3663
},
3764
'sources': [
38-
'lib/nghttp2_buf.c',
39-
'lib/nghttp2_callbacks.c',
40-
'lib/nghttp2_debug.c',
41-
'lib/nghttp2_extpri.c',
42-
'lib/nghttp2_frame.c',
43-
'lib/nghttp2_hd.c',
44-
'lib/nghttp2_hd_huffman.c',
45-
'lib/nghttp2_hd_huffman_data.c',
46-
'lib/nghttp2_helper.c',
47-
'lib/nghttp2_http.c',
48-
'lib/nghttp2_map.c',
49-
'lib/nghttp2_mem.c',
50-
'lib/nghttp2_npn.c',
51-
'lib/nghttp2_option.c',
52-
'lib/nghttp2_outbound_item.c',
53-
'lib/nghttp2_pq.c',
54-
'lib/nghttp2_priority_spec.c',
55-
'lib/nghttp2_queue.c',
56-
'lib/nghttp2_rcbuf.c',
57-
'lib/nghttp2_session.c',
58-
'lib/nghttp2_stream.c',
59-
'lib/nghttp2_submit.c',
60-
'lib/nghttp2_version.c'
65+
'<@(nghttp2_sources)',
6166
]
6267
}
6368
]

‎deps/simdutf/simdutf.gyp

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
'variables': {
3+
'simdutf_sources': [
4+
'simdutf.cpp',
5+
]
6+
},
27
'targets': [
38
{
49
'target_name': 'simdutf',
@@ -7,7 +12,9 @@
712
'direct_dependent_settings': {
813
'include_dirs': ['.'],
914
},
10-
'sources': ['simdutf.cpp'],
15+
'sources': [
16+
'<@(simdutf_sources)',
17+
],
1118
},
1219
]
1320
}

‎deps/uv/uv.gyp

+131-107
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,129 @@
3434
'shared_zos_defines': [ ],
3535
}],
3636
],
37+
'uv_sources_common': [
38+
'include/uv.h',
39+
'include/uv/tree.h',
40+
'include/uv/errno.h',
41+
'include/uv/threadpool.h',
42+
'include/uv/version.h',
43+
'src/fs-poll.c',
44+
'src/heap-inl.h',
45+
'src/idna.c',
46+
'src/idna.h',
47+
'src/inet.c',
48+
'src/queue.h',
49+
'src/random.c',
50+
'src/strscpy.c',
51+
'src/strscpy.h',
52+
'src/strtok.c',
53+
'src/strtok.h',
54+
'src/threadpool.c',
55+
'src/timer.c',
56+
'src/uv-data-getter-setters.c',
57+
'src/uv-common.c',
58+
'src/uv-common.h',
59+
'src/version.c',
60+
],
61+
'uv_sources_win': [
62+
'include/uv/win.h',
63+
'src/win/async.c',
64+
'src/win/atomicops-inl.h',
65+
'src/win/core.c',
66+
'src/win/detect-wakeup.c',
67+
'src/win/dl.c',
68+
'src/win/error.c',
69+
'src/win/fs.c',
70+
'src/win/fs-event.c',
71+
'src/win/getaddrinfo.c',
72+
'src/win/getnameinfo.c',
73+
'src/win/handle.c',
74+
'src/win/handle-inl.h',
75+
'src/win/internal.h',
76+
'src/win/loop-watcher.c',
77+
'src/win/pipe.c',
78+
'src/win/thread.c',
79+
'src/win/poll.c',
80+
'src/win/process.c',
81+
'src/win/process-stdio.c',
82+
'src/win/req-inl.h',
83+
'src/win/signal.c',
84+
'src/win/snprintf.c',
85+
'src/win/stream.c',
86+
'src/win/stream-inl.h',
87+
'src/win/tcp.c',
88+
'src/win/tty.c',
89+
'src/win/udp.c',
90+
'src/win/util.c',
91+
'src/win/winapi.c',
92+
'src/win/winapi.h',
93+
'src/win/winsock.c',
94+
'src/win/winsock.h',
95+
],
96+
'uv_sources_posix': [
97+
'include/uv/unix.h',
98+
'include/uv/linux.h',
99+
'include/uv/sunos.h',
100+
'include/uv/darwin.h',
101+
'include/uv/bsd.h',
102+
'include/uv/aix.h',
103+
'src/unix/async.c',
104+
'src/unix/atomic-ops.h',
105+
'src/unix/core.c',
106+
'src/unix/dl.c',
107+
'src/unix/fs.c',
108+
'src/unix/getaddrinfo.c',
109+
'src/unix/getnameinfo.c',
110+
'src/unix/internal.h',
111+
'src/unix/loop.c',
112+
'src/unix/loop-watcher.c',
113+
'src/unix/pipe.c',
114+
'src/unix/poll.c',
115+
'src/unix/process.c',
116+
'src/unix/random-devurandom.c',
117+
'src/unix/signal.c',
118+
'src/unix/spinlock.h',
119+
'src/unix/stream.c',
120+
'src/unix/tcp.c',
121+
'src/unix/thread.c',
122+
'src/unix/tty.c',
123+
'src/unix/udp.c',
124+
],
125+
'uv_sources_apple': [
126+
'src/unix/darwin.c',
127+
'src/unix/fsevents.c',
128+
'src/unix/darwin-proctitle.c',
129+
'src/unix/random-getentropy.c',
130+
],
131+
'uv_sources_linux': [
132+
'src/unix/epoll.c',
133+
'src/unix/linux-core.c',
134+
'src/unix/linux-inotify.c',
135+
'src/unix/linux-syscalls.c',
136+
'src/unix/linux-syscalls.h',
137+
'src/unix/procfs-exepath.c',
138+
'src/unix/random-getrandom.c',
139+
'src/unix/random-sysctl-linux.c',
140+
],
141+
'uv_sources_android': [
142+
'src/unix/linux-core.c',
143+
'src/unix/linux-inotify.c',
144+
'src/unix/linux-syscalls.c',
145+
'src/unix/procfs-exepath.c',
146+
'src/unix/pthread-fixes.c',
147+
'src/unix/random-getentropy.c',
148+
'src/unix/random-getrandom.c',
149+
'src/unix/random-sysctl-linux.c',
150+
'src/unix/epoll.c',
151+
],
152+
'uv_sources_solaris': [
153+
'src/unix/no-proctitle.c',
154+
'src/unix/sunos.c',
155+
],
156+
'uv_sources_bsd_common': [
157+
'src/unix/bsd-ifaddrs.c',
158+
'src/unix/kqueue.c',
159+
],
37160
},
38161

39162
'targets': [
@@ -64,28 +187,7 @@
64187
},
65188
'sources': [
66189
'common.gypi',
67-
'include/uv.h',
68-
'include/uv/tree.h',
69-
'include/uv/errno.h',
70-
'include/uv/threadpool.h',
71-
'include/uv/version.h',
72-
'src/fs-poll.c',
73-
'src/heap-inl.h',
74-
'src/idna.c',
75-
'src/idna.h',
76-
'src/inet.c',
77-
'src/queue.h',
78-
'src/random.c',
79-
'src/strscpy.c',
80-
'src/strscpy.h',
81-
'src/strtok.c',
82-
'src/strtok.h',
83-
'src/threadpool.c',
84-
'src/timer.c',
85-
'src/uv-data-getter-setters.c',
86-
'src/uv-common.c',
87-
'src/uv-common.h',
88-
'src/version.c'
190+
'<@(uv_sources_common)',
89191
],
90192
'xcode_settings': {
91193
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
@@ -104,39 +206,7 @@
104206
'_GNU_SOURCE',
105207
],
106208
'sources': [
107-
'include/uv/win.h',
108-
'src/win/async.c',
109-
'src/win/atomicops-inl.h',
110-
'src/win/core.c',
111-
'src/win/detect-wakeup.c',
112-
'src/win/dl.c',
113-
'src/win/error.c',
114-
'src/win/fs.c',
115-
'src/win/fs-event.c',
116-
'src/win/getaddrinfo.c',
117-
'src/win/getnameinfo.c',
118-
'src/win/handle.c',
119-
'src/win/handle-inl.h',
120-
'src/win/internal.h',
121-
'src/win/loop-watcher.c',
122-
'src/win/pipe.c',
123-
'src/win/thread.c',
124-
'src/win/poll.c',
125-
'src/win/process.c',
126-
'src/win/process-stdio.c',
127-
'src/win/req-inl.h',
128-
'src/win/signal.c',
129-
'src/win/snprintf.c',
130-
'src/win/stream.c',
131-
'src/win/stream-inl.h',
132-
'src/win/tcp.c',
133-
'src/win/tty.c',
134-
'src/win/udp.c',
135-
'src/win/util.c',
136-
'src/win/winapi.c',
137-
'src/win/winapi.h',
138-
'src/win/winsock.c',
139-
'src/win/winsock.h',
209+
'<@(uv_sources_win)',
140210
],
141211
'link_settings': {
142212
'libraries': [
@@ -151,33 +221,7 @@
151221
},
152222
}, { # Not Windows i.e. POSIX
153223
'sources': [
154-
'include/uv/unix.h',
155-
'include/uv/linux.h',
156-
'include/uv/sunos.h',
157-
'include/uv/darwin.h',
158-
'include/uv/bsd.h',
159-
'include/uv/aix.h',
160-
'src/unix/async.c',
161-
'src/unix/atomic-ops.h',
162-
'src/unix/core.c',
163-
'src/unix/dl.c',
164-
'src/unix/fs.c',
165-
'src/unix/getaddrinfo.c',
166-
'src/unix/getnameinfo.c',
167-
'src/unix/internal.h',
168-
'src/unix/loop.c',
169-
'src/unix/loop-watcher.c',
170-
'src/unix/pipe.c',
171-
'src/unix/poll.c',
172-
'src/unix/process.c',
173-
'src/unix/random-devurandom.c',
174-
'src/unix/signal.c',
175-
'src/unix/spinlock.h',
176-
'src/unix/stream.c',
177-
'src/unix/tcp.c',
178-
'src/unix/thread.c',
179-
'src/unix/tty.c',
180-
'src/unix/udp.c',
224+
'<@(uv_sources_posix)',
181225
],
182226
'link_settings': {
183227
'libraries': [ '-lm' ],
@@ -228,10 +272,7 @@
228272
}],
229273
[ 'OS in "mac ios"', {
230274
'sources': [
231-
'src/unix/darwin.c',
232-
'src/unix/fsevents.c',
233-
'src/unix/darwin-proctitle.c',
234-
'src/unix/random-getentropy.c',
275+
'<@(uv_sources_apple)',
235276
],
236277
'defines': [
237278
'_DARWIN_USE_64_BIT_INODE=1',
@@ -241,14 +282,7 @@
241282
[ 'OS=="linux"', {
242283
'defines': [ '_GNU_SOURCE' ],
243284
'sources': [
244-
'src/unix/epoll.c',
245-
'src/unix/linux-core.c',
246-
'src/unix/linux-inotify.c',
247-
'src/unix/linux-syscalls.c',
248-
'src/unix/linux-syscalls.h',
249-
'src/unix/procfs-exepath.c',
250-
'src/unix/random-getrandom.c',
251-
'src/unix/random-sysctl-linux.c',
285+
'<@(uv_sources_linux)',
252286
],
253287
'link_settings': {
254288
'libraries': [ '-ldl', '-lrt' ],
@@ -259,24 +293,15 @@
259293
'_GNU_SOURCE',
260294
],
261295
'sources': [
262-
'src/unix/linux-core.c',
263-
'src/unix/linux-inotify.c',
264-
'src/unix/linux-syscalls.c',
265-
'src/unix/procfs-exepath.c',
266-
'src/unix/pthread-fixes.c',
267-
'src/unix/random-getentropy.c',
268-
'src/unix/random-getrandom.c',
269-
'src/unix/random-sysctl-linux.c',
270-
'src/unix/epoll.c',
296+
'<@(uv_sources_android)',
271297
],
272298
'link_settings': {
273299
'libraries': [ '-ldl' ],
274300
},
275301
}],
276302
[ 'OS=="solaris"', {
277303
'sources': [
278-
'src/unix/no-proctitle.c',
279-
'src/unix/sunos.c',
304+
'<@(uv_sources_solaris)',
280305
],
281306
'defines': [
282307
'__EXTENSIONS__',
@@ -369,8 +394,7 @@
369394
}],
370395
[ 'OS in "ios mac freebsd dragonflybsd openbsd netbsd".split()', {
371396
'sources': [
372-
'src/unix/bsd-ifaddrs.c',
373-
'src/unix/kqueue.c',
397+
'<@(uv_sources_bsd_common)',
374398
],
375399
}],
376400
['uv_library=="shared_library"', {

‎deps/uvwasi/uvwasi.gyp

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
{
2+
'variables': {
3+
'uvwasi_sources': [
4+
'src/clocks.c',
5+
'src/fd_table.c',
6+
'src/path_resolver.c',
7+
'src/poll_oneoff.c',
8+
'src/uv_mapping.c',
9+
'src/uvwasi.c',
10+
'src/wasi_rights.c',
11+
'src/wasi_serdes.c',
12+
]
13+
},
214
'targets': [
315
{
416
'target_name': 'uvwasi',
@@ -9,14 +21,7 @@
921
},
1022
'include_dirs': ['include'],
1123
'sources': [
12-
'src/clocks.c',
13-
'src/fd_table.c',
14-
'src/path_resolver.c',
15-
'src/poll_oneoff.c',
16-
'src/uv_mapping.c',
17-
'src/uvwasi.c',
18-
'src/wasi_rights.c',
19-
'src/wasi_serdes.c',
24+
'<@(uvwasi_sources)',
2025
],
2126
'direct_dependent_settings': {
2227
'include_dirs': ['include']

‎node.gyp

+286-281
Large diffs are not rendered by default.

‎src/inspector/node_inspector.gypi

+27-24
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
{
22
'variables': {
33
'protocol_tool_path': '../../tools/inspector_protocol',
4+
'node_inspector_sources': [
5+
'src/inspector_agent.cc',
6+
'src/inspector_io.cc',
7+
'src/inspector_agent.h',
8+
'src/inspector_io.h',
9+
'src/inspector_profiler.h',
10+
'src/inspector_profiler.cc',
11+
'src/inspector_js_api.cc',
12+
'src/inspector_socket.cc',
13+
'src/inspector_socket.h',
14+
'src/inspector_socket_server.cc',
15+
'src/inspector_socket_server.h',
16+
'src/inspector/main_thread_interface.cc',
17+
'src/inspector/main_thread_interface.h',
18+
'src/inspector/node_string.cc',
19+
'src/inspector/node_string.h',
20+
'src/inspector/runtime_agent.cc',
21+
'src/inspector/runtime_agent.h',
22+
'src/inspector/tracing_agent.cc',
23+
'src/inspector/tracing_agent.h',
24+
'src/inspector/worker_agent.cc',
25+
'src/inspector/worker_agent.h',
26+
'src/inspector/worker_inspector.cc',
27+
'src/inspector/worker_inspector.h',
28+
],
429
'node_inspector_generated_sources': [
530
'<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Forward.h',
631
'<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Protocol.cpp',
@@ -38,36 +63,13 @@
3863
'<(protocol_tool_path)/templates/Imported_h.template',
3964
'<(protocol_tool_path)/templates/TypeBuilder_cpp.template',
4065
'<(protocol_tool_path)/templates/TypeBuilder_h.template',
41-
'<(protocol_tool_path)/code_generator.py',
4266
]
4367
},
4468
'defines': [
4569
'HAVE_INSPECTOR=1',
4670
],
4771
'sources': [
48-
'../../src/inspector_agent.cc',
49-
'../../src/inspector_io.cc',
50-
'../../src/inspector_agent.h',
51-
'../../src/inspector_io.h',
52-
'../../src/inspector_profiler.h',
53-
'../../src/inspector_profiler.cc',
54-
'../../src/inspector_js_api.cc',
55-
'../../src/inspector_socket.cc',
56-
'../../src/inspector_socket.h',
57-
'../../src/inspector_socket_server.cc',
58-
'../../src/inspector_socket_server.h',
59-
'../../src/inspector/main_thread_interface.cc',
60-
'../../src/inspector/main_thread_interface.h',
61-
'../../src/inspector/node_string.cc',
62-
'../../src/inspector/node_string.h',
63-
'../../src/inspector/runtime_agent.cc',
64-
'../../src/inspector/runtime_agent.h',
65-
'../../src/inspector/tracing_agent.cc',
66-
'../../src/inspector/tracing_agent.h',
67-
'../../src/inspector/worker_agent.cc',
68-
'../../src/inspector/worker_agent.h',
69-
'../../src/inspector/worker_inspector.cc',
70-
'../../src/inspector/worker_inspector.h',
72+
'<@(node_inspector_sources)',
7173
],
7274
'include_dirs': [
7375
'<(SHARED_INTERMEDIATE_DIR)/include', # for inspector
@@ -96,6 +98,7 @@
9698
'node_protocol_config.json',
9799
'<(SHARED_INTERMEDIATE_DIR)/src/node_protocol.json',
98100
'<@(node_protocol_files)',
101+
'<(protocol_tool_path)/code_generator.py',
99102
],
100103
'outputs': [
101104
'<@(node_inspector_generated_sources)',

0 commit comments

Comments
 (0)
Please sign in to comment.