0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-27 22:16:50 +01:00
nodejs/deps/uvwasi/uvwasi.gyp
Michael Dawson d37b0d267f wasi: updates required for latest uvwasi version
Signed-off-by: Michael Dawson <midawson@redhat.com>

PR-URL: https://github.com/nodejs/node/pull/49908
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2023-09-29 15:16:51 -04:00

46 lines
1001 B
Python

{
'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',
],
}],
],
}
]
}