2019-09-04 23:56:51 +02:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'uvwasi',
|
|
|
|
'type': 'static_library',
|
|
|
|
'cflags': ['-fvisibility=hidden'],
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
|
|
|
|
},
|
|
|
|
'include_dirs': ['include'],
|
|
|
|
'sources': [
|
|
|
|
'src/clocks.c',
|
|
|
|
'src/fd_table.c',
|
2020-04-26 16:57:44 +02:00
|
|
|
'src/path_resolver.c',
|
2020-05-04 05:04:08 +02:00
|
|
|
'src/poll_oneoff.c',
|
2019-09-04 23:56:51 +02:00
|
|
|
'src/uv_mapping.c',
|
|
|
|
'src/uvwasi.c',
|
2020-01-21 00:25:40 +01:00
|
|
|
'src/wasi_rights.c',
|
2020-05-04 05:04:08 +02:00
|
|
|
'src/wasi_serdes.c',
|
2019-09-04 23:56:51 +02:00
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': ['include']
|
|
|
|
},
|
2020-01-15 04:28:57 +01:00
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="linux"', {
|
|
|
|
'defines': [
|
|
|
|
'_GNU_SOURCE',
|
|
|
|
'_POSIX_C_SOURCE=200112',
|
|
|
|
],
|
|
|
|
}],
|
2021-07-05 00:22:46 +02:00
|
|
|
[ 'node_shared_libuv=="false"', {
|
|
|
|
'dependencies': [
|
|
|
|
'../uv/uv.gyp:libuv',
|
|
|
|
],
|
|
|
|
}],
|
2020-01-15 04:28:57 +01:00
|
|
|
],
|
2019-09-04 23:56:51 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|