-
Notifications
You must be signed in to change notification settings - Fork 18
/
binding.gyp
60 lines (60 loc) · 1.45 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
'target_defaults':
{
'cflags_cc': ['-fexceptions']
},
'targets': [
{
'target_name': 'wallet',
'type': 'loadable_module',
'sources': [
'src/wallet.cc'
],
'cflags': ['-Wall', '-std=c++11'],
'include_dirs': [
'./dependencies/db-4.8.30.NC/build_unix',
'./dependencies/json/src',
"<!(node -e \"require('nan')\")",
"<!(node -e \"require('streaming-worker-sdk')\")"
],
'conditions': [
['<!(./build_scripts/bdb.sh)=="lib"', {
'link_settings': {
'libraries': [
'-lpthread',
'-ldb_cxx-4.8'
]
}
},
{ 'dependencies': ['./dependencies/db-4.8.30.NC/bdb.gyp:bdb'] }
],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7'
},
'conditions': [
['clang==1', {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x',
'CLANG_CXX_LIBRARY': 'libc++'
},
}]
]
}],
[ 'OS in "linux freebsd openbsd solaris android aix"',
{
'cflags_cc': [ '-fexceptions', '-std=gnu++0x' ]
}
]
],
'link_settings': {
'libraries': [
'-lpthread',
],
'library_dirs': [
]
}
}
]
}