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',
|
2014-08-20 10:34:17 -07:00
|
|
|
'/usr/include/boost'
|
2014-08-19 17:35:24 -07:00
|
|
|
# include our own boost
|
2014-08-20 10:34:17 -07:00
|
|
|
# './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': [
|
2014-08-20 10:34:17 -07:00
|
|
|
# bitcoind:
|
|
|
|
# arch is using bitcoin-daemon 0.9.2.1
|
|
|
|
# - should be the correct boost headers
|
|
|
|
# building:
|
|
|
|
# $ git clean -df
|
|
|
|
# $ git checkout v0.9.2.1
|
|
|
|
# $ ./autogen.sh
|
|
|
|
# $ ./configure --with-incompatible-bdb
|
|
|
|
# $ time make
|
|
|
|
# $ cd ~/work/node_modules/bitcoind.js
|
|
|
|
# $ PYTHON=/usr/bin/python2.7 make gyp
|
|
|
|
# ^ move this to readme
|
2014-08-19 17:11:35 -07:00
|
|
|
# NOTE: rename this to bitcoind.o so we can statically link to it
|
2014-08-20 10:34:17 -07:00
|
|
|
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind',
|
|
|
|
'-L/usr/bin/bitcoind',
|
|
|
|
# '-L/usr/lib/bitcoind.o',
|
|
|
|
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind.o',
|
|
|
|
# statically link leveldb:
|
2014-08-19 17:11:35 -07:00
|
|
|
'-L/home/user/bitcoin/src/leveldb/libleveldb.a',
|
2014-08-20 10:34:17 -07:00
|
|
|
# standard libs:
|
2014-08-12 12:03:04 -07:00
|
|
|
'-L/usr/lib',
|
|
|
|
'-L/usr/local/lib'
|
|
|
|
]
|
|
|
|
}]
|
|
|
|
}
|