- Introduced new tools for N-API module detection (`check-napi.js`), formatting using Clang and ESLint (`clang-format.js`, `eslint-format.js`), and source conversion (`conversion.js`). - Added N-API-specific configuration files (`common.gypi`, `except.gypi`). - Included N-API bindings and licensing files (`index.js`, `LICENSE.md`, `napi.h`).
33 lines
793 B
Python
33 lines
793 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'node_addon_api',
|
|
'type': 'none',
|
|
'sources': [ 'napi.h', 'napi-inl.h' ],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ '.' ],
|
|
'includes': ['noexcept.gypi'],
|
|
}
|
|
},
|
|
{
|
|
'target_name': 'node_addon_api_except',
|
|
'type': 'none',
|
|
'sources': [ 'napi.h', 'napi-inl.h' ],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ '.' ],
|
|
'includes': ['except.gypi'],
|
|
}
|
|
},
|
|
{
|
|
'target_name': 'node_addon_api_maybe',
|
|
'type': 'none',
|
|
'sources': [ 'napi.h', 'napi-inl.h' ],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ '.' ],
|
|
'includes': ['noexcept.gypi'],
|
|
'defines': ['NODE_ADDON_API_ENABLE_MAYBE']
|
|
}
|
|
},
|
|
]
|
|
}
|