forked from bitpay/bitcoind.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
43 lines (43 loc) · 1.09 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
{
'targets': [{
'target_name': 'bitcoindjs',
'variables': {
'BOOST_INCLUDE': '<!(test -n "$BOOST_INCLUDE"'\
' && echo "$BOOST_INCLUDE"'\
' || test -e /usr/include/boost && echo /usr/include/boost' \
' || echo ./include)',
'LEVELDB_INCLUDE': '<!(test -n "$LEVELDB_INCLUDE"'\
' && echo "$LEVELDB_INCLUDE"'\
' || test "$BITCOIN_DIR" && echo "${BITCOIN_DIR}/src/leveldb/include"' \
' || echo ./include)',
'BITCOIN_DIR': '<!(./platform/os.sh btcdir)',
'LIBBITCOIND': '<!(./platform/os.sh lib)',
},
'defines': [
'ENABLE_WALLET=1',
],
'include_dirs' : [
'<(BOOST_INCLUDE)',
'<(LEVELDB_INCLUDE)',
'<(BITCOIN_DIR)/src',
'<!(node -e "require(\'nan\')")',
],
'sources': [
'./src/bitcoindjs.cc',
],
'cflags_cc': [
'-fexceptions',
'-frtti',
'-fpermissive',
],
'libraries': [
'-lboost_system',
'-lboost_filesystem',
'-lboost_program_options',
'-lboost_thread',
'-lboost_chrono',
'-lsecp256k1',
'<(LIBBITCOIND)',
]
}]
}