bitcore-node-zcash/binding.gyp

63 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-12 12:03:04 -07:00
{
'targets': [{
'target_name': 'bitcoindjs',
2014-09-12 14:39:37 -07:00
'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)',
2014-12-07 02:02:51 -08:00
'BITCOIN_DIR': '<!(./platform/os.sh btcdir)',
'LIBBITCOIND': '<!(./platform/os.sh lib)',
2014-09-12 14:39:37 -07:00
},
2014-10-29 15:07:25 -07:00
'defines': [
'ENABLE_WALLET=1',
],
2014-08-12 12:03:04 -07:00
'include_dirs' : [
'<(BOOST_INCLUDE)',
'<(LEVELDB_INCLUDE)',
2014-09-12 14:39:37 -07:00
'<(BITCOIN_DIR)/src',
2015-06-09 03:57:58 -07:00
'./libbitcoind/src/secp256k1/include',
2015-06-04 11:54:57 -07:00
'./libbitcoind/src/leveldb/helpers/memenv',
2014-09-12 14:29:59 -07:00
'<!(node -e "require(\'nan\')")',
2014-08-12 12:03:04 -07:00
],
'sources': [
2014-08-20 15:33:03 -07:00
'./src/bitcoindjs.cc',
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
2015-06-08 16:08:18 -07:00
'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.9'
},
'libraries': {
'-lboost_thread-mt'
}
},
'OS=="linux"', {
'-lboost_thread'
}
]
],
'cflags_cc': [
'-fexceptions',
2014-08-20 15:33:03 -07:00
'-frtti',
'-fpermissive',
2014-08-12 12:03:04 -07:00
],
'libraries': [
'-L/usr/local/Cellar/openssl/1.0.2a-1/lib',
2015-06-04 11:54:57 -07:00
'-lssl',
'-lcrypto',
2014-08-20 15:32:15 -07:00
'-lboost_system',
'-lboost_filesystem',
'-lboost_program_options',
2014-08-29 14:12:19 -07:00
'-lboost_chrono',
'<(LIBBITCOIND)',
2014-08-12 12:03:04 -07:00
]
}]
}