/
astafievk
/
source_code
Обзор
Документация
Войти
/
astafievk
/
source_code
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Api/node_modules/bcrypt/binding.gyp
61 строка
2 KB
astafievK
source code
21 июн 2024, 21:02
21 июн 2024, 21:02
37a1d03
Код
Авторство
О чём код?
{ "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)" } ] } ] }