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/uv_mapping.c', 17 'src/uvwasi.c', 18 'src/wasi_rights.c', 19 'src/wasi_serdes.c', 20 ], 21 'direct_dependent_settings': { 22 'include_dirs': ['include'] 23 }, 24 'conditions': [ 25 [ 'OS=="linux"', { 26 'defines': [ 27 '_GNU_SOURCE', 28 '_POSIX_C_SOURCE=200112', 29 ], 30 }], 31 [ 'node_shared_libuv=="false"', { 32 'dependencies': [ 33 '../uv/uv.gyp:libuv', 34 ], 35 }], 36 ], 37 } 38 ] 39} 40