1{
2  'targets': [
3    {
4      'target_name': 'uvwasi',
5      'type': 'static_library',
6      'cflags': ['-fvisibility=hidden'],
7      'xcode_settings': {
8        'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',  # -fvisibility=hidden
9      },
10      'include_dirs': ['include'],
11      'sources': [
12        'src/clocks.c',
13        'src/fd_table.c',
14        'src/path_resolver.c',
15        'src/poll_oneoff.c',
16        'src/sync_helpers.c',
17        'src/uv_mapping.c',
18        'src/uvwasi.c',
19        'src/wasi_rights.c',
20        'src/wasi_serdes.c',
21      ],
22      'direct_dependent_settings': {
23        'include_dirs': ['include']
24      },
25      'conditions': [
26        [ 'OS=="linux"', {
27          'defines': [
28            '_GNU_SOURCE',
29            '_POSIX_C_SOURCE=200112',
30          ],
31        }],
32        [ 'node_shared_libuv=="false"', {
33          'dependencies': [
34            '../uv/uv.gyp:libuv',
35          ],
36        }],
37      ],
38    }
39  ]
40}