• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
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_ratelim.c',
23      'lib/nghttp2_rcbuf.c',
24      'lib/nghttp2_session.c',
25      'lib/nghttp2_stream.c',
26      'lib/nghttp2_submit.c',
27      'lib/nghttp2_time.c',
28      'lib/nghttp2_version.c',
29      'lib/sfparse.c',
30    ]
31  },
32  'target_defaults': {
33    'defines': [
34      '_U_='
35    ]
36  },
37  'targets': [
38    {
39      'target_name': 'nghttp2',
40      'type': 'static_library',
41      'include_dirs': ['lib/includes'],
42      'defines': [
43        'BUILDING_NGHTTP2',
44        'NGHTTP2_STATICLIB',
45        'HAVE_CONFIG_H',
46      ],
47      'conditions': [
48        ['OS=="win"', {
49          'defines': [
50            'WIN32',
51            '_WINDOWS',
52          ],
53          'msvs_settings': {
54            'VCCLCompilerTool': {
55              'CompileAs': '1'
56            },
57          },
58        }],
59        ['debug_nghttp2 == 1', {
60          'defines': [ 'DEBUGBUILD=1' ]
61        }]
62      ],
63      'direct_dependent_settings': {
64        'defines': [ 'NGHTTP2_STATICLIB' ],
65        'include_dirs': [ 'lib/includes' ]
66      },
67      'sources': [
68        '<@(nghttp2_sources)',
69      ]
70    }
71  ]
72}
73