1 | {
|
2 | 'targets': [
|
3 | {
|
4 | 'target_name': 'bcrypt_lib',
|
5 | 'sources': [
|
6 | 'src/blowfish.cc',
|
7 | 'src/bcrypt.cc',
|
8 | 'src/bcrypt_node.cc'
|
9 | ],
|
10 | 'defines': [
|
11 | '_GNU_SOURCE',
|
12 | ],
|
13 | 'cflags!': [ '-fno-exceptions' ],
|
14 | 'cflags_cc!': [ '-fno-exceptions' ],
|
15 | 'include_dirs' : [
|
16 | "<!@(node -p \"require('node-addon-api').include\")"
|
17 | ],
|
18 | 'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"],
|
19 | 'conditions': [
|
20 | ['OS=="win"', {
|
21 | "msvs_settings": {
|
22 | "VCCLCompilerTool": {
|
23 | "ExceptionHandling": 1
|
24 | }
|
25 | },
|
26 | 'defines': [
|
27 | 'uint=unsigned int',
|
28 | ]
|
29 | }],
|
30 | ['OS=="mac"', {
|
31 | 'cflags+': ['-fvisibility=hidden'],
|
32 | "xcode_settings": {
|
33 | "CLANG_CXX_LIBRARY": "libc++",
|
34 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
35 | 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
|
36 | }
|
37 | }],
|
38 | [ 'OS=="zos"', {
|
39 | 'cflags': [
|
40 | '-qascii',
|
41 | ],
|
42 | }],
|
43 | ],
|
44 | },
|
45 | {
|
46 | "target_name": "action_after_build",
|
47 | "type": "none",
|
48 | "dependencies": [ "<(module_name)" ],
|
49 | "copies": [
|
50 | {
|
51 | "files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
|
52 | "destination": "<(module_path)"
|
53 | }
|
54 | ]
|
55 | }
|
56 | ]
|
57 | }
|