You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.5 KiB
Plaintext
62 lines
1.5 KiB
Plaintext
10 months ago
|
{
|
||
|
"variables": {
|
||
|
"NODE_VERSION%":"<!(node -p \"process.versions.node.split(\\\".\\\")[0]\")"
|
||
|
},
|
||
|
'targets': [
|
||
|
{
|
||
|
'target_name': 'bcrypt_lib',
|
||
|
'sources': [
|
||
|
'src/blowfish.cc',
|
||
|
'src/bcrypt.cc',
|
||
|
'src/bcrypt_node.cc'
|
||
|
],
|
||
|
'defines': [
|
||
|
'_GNU_SOURCE',
|
||
|
],
|
||
|
'cflags!': [ '-fno-exceptions' ],
|
||
|
'cflags_cc!': [ '-fno-exceptions' ],
|
||
|
'include_dirs' : [
|
||
|
"<!@(node -p \"require('node-addon-api').include\")"
|
||
|
],
|
||
|
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
|
||
|
'conditions': [
|
||
|
['OS=="win"', {
|
||
|
"msvs_settings": {
|
||
|
"VCCLCompilerTool": {
|
||
|
"ExceptionHandling": 1
|
||
|
}
|
||
|
},
|
||
|
'defines': [
|
||
|
'uint=unsigned int',
|
||
|
]
|
||
|
}],
|
||
|
['OS=="mac"', {
|
||
|
'cflags+': ['-fvisibility=hidden'],
|
||
|
"xcode_settings": {
|
||
|
"CLANG_CXX_LIBRARY": "libc++",
|
||
|
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
||
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
|
||
|
}
|
||
|
}],
|
||
|
['OS=="zos" and NODE_VERSION <= 16',{
|
||
|
'cflags': [
|
||
|
'-qascii',
|
||
|
],
|
||
|
'defines': ["NAPI_DISABLE_CPP_EXCEPTIONS"],
|
||
|
}],
|
||
|
],
|
||
|
},
|
||
|
{
|
||
|
"target_name": "action_after_build",
|
||
|
"type": "none",
|
||
|
"dependencies": [ "<(module_name)" ],
|
||
|
"copies": [
|
||
|
{
|
||
|
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
|
||
|
"destination": "<(module_path)"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|