diff --git a/index.js b/index.js index 52f53e3c2..710cd4752 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ const includeDir = path.relative('.', __dirname); module.exports = { include: `"${__dirname}"`, // deprecated, can be removed as part of 4.0.0 include_dir: includeDir, - gyp: path.join(includeDir, 'node_api.gyp:nothing'), + gyp: path.join(includeDir, 'node_addon_api.gyp'), isNodeApiBuiltin: true, needsFlag: false }; diff --git a/node_addon_api.gyp b/node_addon_api.gyp new file mode 100644 index 000000000..176b9dd90 --- /dev/null +++ b/node_addon_api.gyp @@ -0,0 +1,22 @@ +{ + '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'], + } + } + ] +}