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"'\
|
2014-10-15 18:48:58 -07:00
|
|
|
' || 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-09-12 14:39:37 -07:00
|
|
|
'BITCOIN_DIR': '<!(test -n "$BITCOIN_DIR"'\
|
|
|
|
' && echo "$BITCOIN_DIR"'\
|
|
|
|
' || echo "${HOME}/bitcoin")',
|
2014-10-15 18:48:58 -07:00
|
|
|
'LIBBITCOIND': '<!(./platform/os.sh)',
|
2014-09-12 14:39:37 -07:00
|
|
|
},
|
2014-08-12 12:03:04 -07:00
|
|
|
'include_dirs' : [
|
2014-10-15 18:48:58 -07:00
|
|
|
'<(BOOST_INCLUDE)',
|
|
|
|
'<(LEVELDB_INCLUDE)',
|
2014-09-12 14:39:37 -07:00
|
|
|
'<(BITCOIN_DIR)/src',
|
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',
|
2014-08-19 17:35:24 -07:00
|
|
|
],
|
|
|
|
'cflags_cc': [
|
|
|
|
'-fexceptions',
|
2014-08-20 15:33:03 -07:00
|
|
|
'-frtti',
|
2014-10-07 18:21:21 -07:00
|
|
|
'-fpermissive',
|
2014-08-12 12:03:04 -07:00
|
|
|
],
|
|
|
|
'libraries': [
|
2014-08-20 15:32:15 -07:00
|
|
|
'-lboost_system',
|
2014-08-29 14:09:05 -07:00
|
|
|
'-lboost_filesystem',
|
|
|
|
'-lboost_program_options',
|
|
|
|
'-lboost_thread',
|
2014-08-29 14:12:19 -07:00
|
|
|
'-lboost_chrono',
|
2014-10-15 18:48:58 -07:00
|
|
|
'<(LIBBITCOIND)',
|
2014-08-12 12:03:04 -07:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
}
|