-
Notifications
You must be signed in to change notification settings - Fork 30.3k
/
Copy pathuvwasi.gyp
45 lines (45 loc) · 1001 Bytes
/
uvwasi.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
'variables': {
'uvwasi_sources': [
'src/clocks.c',
'src/fd_table.c',
'src/path_resolver.c',
'src/poll_oneoff.c',
'src/sync_helpers.c',
'src/uv_mapping.c',
'src/uvwasi.c',
'src/wasi_rights.c',
'src/wasi_serdes.c',
]
},
'targets': [
{
'target_name': 'uvwasi',
'type': 'static_library',
'cflags': ['-fvisibility=hidden'],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
},
'include_dirs': ['include'],
'sources': [
'<@(uvwasi_sources)',
],
'direct_dependent_settings': {
'include_dirs': ['include']
},
'conditions': [
[ 'OS=="linux"', {
'defines': [
'_GNU_SOURCE',
'_POSIX_C_SOURCE=200112',
],
}],
[ 'node_shared_libuv=="false"', {
'dependencies': [
'../uv/uv.gyp:libuv',
],
}],
],
}
]
}