xref: /third_party/node/deps/uvwasi/uvwasi.gyp (revision 1cb0ef41)
11cb0ef41Sopenharmony_ci{
21cb0ef41Sopenharmony_ci  'targets': [
31cb0ef41Sopenharmony_ci    {
41cb0ef41Sopenharmony_ci      'target_name': 'uvwasi',
51cb0ef41Sopenharmony_ci      'type': 'static_library',
61cb0ef41Sopenharmony_ci      'cflags': ['-fvisibility=hidden'],
71cb0ef41Sopenharmony_ci      'xcode_settings': {
81cb0ef41Sopenharmony_ci        'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',  # -fvisibility=hidden
91cb0ef41Sopenharmony_ci      },
101cb0ef41Sopenharmony_ci      'include_dirs': ['include'],
111cb0ef41Sopenharmony_ci      'sources': [
121cb0ef41Sopenharmony_ci        'src/clocks.c',
131cb0ef41Sopenharmony_ci        'src/fd_table.c',
141cb0ef41Sopenharmony_ci        'src/path_resolver.c',
151cb0ef41Sopenharmony_ci        'src/poll_oneoff.c',
161cb0ef41Sopenharmony_ci        'src/sync_helpers.c',
171cb0ef41Sopenharmony_ci        'src/uv_mapping.c',
181cb0ef41Sopenharmony_ci        'src/uvwasi.c',
191cb0ef41Sopenharmony_ci        'src/wasi_rights.c',
201cb0ef41Sopenharmony_ci        'src/wasi_serdes.c',
211cb0ef41Sopenharmony_ci      ],
221cb0ef41Sopenharmony_ci      'direct_dependent_settings': {
231cb0ef41Sopenharmony_ci        'include_dirs': ['include']
241cb0ef41Sopenharmony_ci      },
251cb0ef41Sopenharmony_ci      'conditions': [
261cb0ef41Sopenharmony_ci        [ 'OS=="linux"', {
271cb0ef41Sopenharmony_ci          'defines': [
281cb0ef41Sopenharmony_ci            '_GNU_SOURCE',
291cb0ef41Sopenharmony_ci            '_POSIX_C_SOURCE=200112',
301cb0ef41Sopenharmony_ci          ],
311cb0ef41Sopenharmony_ci        }],
321cb0ef41Sopenharmony_ci        [ 'node_shared_libuv=="false"', {
331cb0ef41Sopenharmony_ci          'dependencies': [
341cb0ef41Sopenharmony_ci            '../uv/uv.gyp:libuv',
351cb0ef41Sopenharmony_ci          ],
361cb0ef41Sopenharmony_ci        }],
371cb0ef41Sopenharmony_ci      ],
381cb0ef41Sopenharmony_ci    }
391cb0ef41Sopenharmony_ci  ]
401cb0ef41Sopenharmony_ci}