You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
724 B
21 lines
724 B
{
|
|
'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)'] } ],
|
|
['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' ]
|
|
}
|