summaryrefslogtreecommitdiff
path: root/deps/nghttp2
diff options
context:
space:
mode:
authorCheng Zhao <zcbenz@gmail.com>2023-03-04 20:59:55 +0900
committerMichaël Zasso <targos@protonmail.com>2023-03-18 10:24:38 +0100
commit0d575fe61a8cbee00a7eba3a26b4652a8d6ef0ff (patch)
tree5da7c182e35224b86a465e0d71f9dd970fc7daec /deps/nghttp2
parentaa6e9c80cf3f156bb38903936c5bf72c1cb0f9dc (diff)
downloadnode-new-0d575fe61a8cbee00a7eba3a26b4652a8d6ef0ff.tar.gz
gyp: put filenames in variables
PR-URL: https://github.com/nodejs/node/pull/46965 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Diffstat (limited to 'deps/nghttp2')
-rw-r--r--deps/nghttp2/nghttp2.gyp51
1 files changed, 28 insertions, 23 deletions
diff --git a/deps/nghttp2/nghttp2.gyp b/deps/nghttp2/nghttp2.gyp
index c4a18650ef..4e48a707cc 100644
--- a/deps/nghttp2/nghttp2.gyp
+++ b/deps/nghttp2/nghttp2.gyp
@@ -1,4 +1,31 @@
{
+ 'variables': {
+ 'nghttp2_sources': [
+ 'lib/nghttp2_buf.c',
+ 'lib/nghttp2_callbacks.c',
+ 'lib/nghttp2_debug.c',
+ 'lib/nghttp2_extpri.c',
+ 'lib/nghttp2_frame.c',
+ 'lib/nghttp2_hd.c',
+ 'lib/nghttp2_hd_huffman.c',
+ 'lib/nghttp2_hd_huffman_data.c',
+ 'lib/nghttp2_helper.c',
+ 'lib/nghttp2_http.c',
+ 'lib/nghttp2_map.c',
+ 'lib/nghttp2_mem.c',
+ 'lib/nghttp2_npn.c',
+ 'lib/nghttp2_option.c',
+ 'lib/nghttp2_outbound_item.c',
+ 'lib/nghttp2_pq.c',
+ 'lib/nghttp2_priority_spec.c',
+ 'lib/nghttp2_queue.c',
+ 'lib/nghttp2_rcbuf.c',
+ 'lib/nghttp2_session.c',
+ 'lib/nghttp2_stream.c',
+ 'lib/nghttp2_submit.c',
+ 'lib/nghttp2_version.c',
+ ]
+ },
'target_defaults': {
'defines': [
'_U_='
@@ -35,29 +62,7 @@
'include_dirs': [ 'lib/includes' ]
},
'sources': [
- 'lib/nghttp2_buf.c',
- 'lib/nghttp2_callbacks.c',
- 'lib/nghttp2_debug.c',
- 'lib/nghttp2_extpri.c',
- 'lib/nghttp2_frame.c',
- 'lib/nghttp2_hd.c',
- 'lib/nghttp2_hd_huffman.c',
- 'lib/nghttp2_hd_huffman_data.c',
- 'lib/nghttp2_helper.c',
- 'lib/nghttp2_http.c',
- 'lib/nghttp2_map.c',
- 'lib/nghttp2_mem.c',
- 'lib/nghttp2_npn.c',
- 'lib/nghttp2_option.c',
- 'lib/nghttp2_outbound_item.c',
- 'lib/nghttp2_pq.c',
- 'lib/nghttp2_priority_spec.c',
- 'lib/nghttp2_queue.c',
- 'lib/nghttp2_rcbuf.c',
- 'lib/nghttp2_session.c',
- 'lib/nghttp2_stream.c',
- 'lib/nghttp2_submit.c',
- 'lib/nghttp2_version.c'
+ '<@(nghttp2_sources)',
]
}
]