aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/node-addon-api/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--node_modules/node-addon-api/common.gypi21
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/node-addon-api/common.gypi b/node_modules/node-addon-api/common.gypi
new file mode 100644
index 0000000..5fda7e7
--- /dev/null
+++ b/node_modules/node-addon-api/common.gypi
@@ -0,0 +1,21 @@
+{
+ 'variables': {
+ 'NAPI_VERSION%': "<!(node -p \"process.env.NAPI_VERSION || process.versions.napi\")",
+ 'disable_deprecated': "<!(node -p \"process.env['npm_config_disable_deprecated']\")"
+ },
+ 'conditions': [
+ ['NAPI_VERSION!=""', { 'defines': ['NAPI_VERSION=<@(NAPI_VERSION)'] } ],
+ ['NAPI_VERSION==2147483647', { 'defines': ['NAPI_EXPERIMENTAL', 'NODE_API_EXPERIMENTAL_NO_WARNING'] } ],
+ ['disable_deprecated=="true"', {
+ 'defines': ['NODE_ADDON_API_DISABLE_DEPRECATED']
+ }],
+ ['OS=="mac"', {
+ 'cflags+': ['-fvisibility=hidden'],
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': ['-fvisibility=hidden']
+ }
+ }]
+ ],
+ 'cflags': [ '-Werror', '-Wall', '-Wextra', '-Wpedantic', '-Wunused-parameter' ],
+ 'cflags_cc': [ '-Werror', '-Wall', '-Wextra', '-Wpedantic', '-Wunused-parameter' ]
+}