2014-08-12 12:03:04 -07:00
|
|
|
{
|
|
|
|
'targets': [{
|
|
|
|
'target_name': 'bitcoindjs',
|
|
|
|
'include_dirs' : [
|
|
|
|
'<!(node -e "require(\'nan\')")',
|
2014-08-19 17:35:24 -07:00
|
|
|
'<!(echo "$HOME")/bitcoin/src',
|
|
|
|
'<!(echo "$HOME")/bitcoin/src/leveldb/include',
|
|
|
|
'/usr/include/boost',
|
|
|
|
# include our own boost
|
|
|
|
#'./deps'
|
2014-08-12 12:03:04 -07:00
|
|
|
],
|
|
|
|
'sources': [
|
2014-08-19 17:35:24 -07:00
|
|
|
'./src/bitcoindjs.cc'
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'HAVE_WORKING_BOOST_SLEEP'
|
|
|
|
#'HAVE_WORKING_BOOST_SLEEP_FOR'
|
|
|
|
],
|
|
|
|
'cflags_cc': [
|
|
|
|
'-fexceptions',
|
|
|
|
'-frtti'
|
2014-08-12 12:03:04 -07:00
|
|
|
],
|
|
|
|
'libraries': [
|
|
|
|
'-lutil',
|
2014-08-19 17:11:35 -07:00
|
|
|
# NOTE: rename this to bitcoind.o so we can statically link to it
|
|
|
|
'-L/home/user/bitcoin/src/bitcoind',
|
|
|
|
# statically link leveldb
|
|
|
|
'-L/home/user/bitcoin/src/leveldb/libleveldb.a',
|
2014-08-12 12:03:04 -07:00
|
|
|
'-L/usr/lib',
|
|
|
|
'-L/usr/local/lib'
|
|
|
|
]
|
|
|
|
}]
|
|
|
|
}
|