generated from blinkhash/foundation-v2-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbinding.gyp
38 lines (38 loc) · 1023 Bytes
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"targets": [
{
"target_name": "hashing",
"sources": [
"hashing.cc",
"algorithms/scrypt/scrypt.c",
"algorithms/sha256d/sha256d.c",
"algorithms/sha256d/utils/sph_sha2.c",
],
"include_dirs": [
".",
"<!(node -e \"require('nan')\")",
],
"cflags_cc": [
"-std=c++0x",
"-fPIC",
"-fexceptions"
],
"defines": [
"HAVE_DECL_STRNLEN=1",
"HAVE_BYTESWAP_H=1"
],
"link_settings": {
"libraries": [
"-Wl,-rpath,./build/Release/",
]
},
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
}
]
}