get our module compiling with all the headers.

This commit is contained in:
Christopher Jeffrey 2014-08-19 17:35:24 -07:00
parent 5165d8a8e0
commit 6498426268
2 changed files with 14 additions and 7 deletions

View File

@ -3,13 +3,22 @@
'target_name': 'bitcoindjs', 'target_name': 'bitcoindjs',
'include_dirs' : [ 'include_dirs' : [
'<!(node -e "require(\'nan\')")', '<!(node -e "require(\'nan\')")',
'/home/user/bitcoin/src', '<!(echo "$HOME")/bitcoin/src',
'/home/user/bitcoin/src/leveldb/include', '<!(echo "$HOME")/bitcoin/src/leveldb/include',
#'/usr/include/boost', '/usr/include/boost',
'./deps/boost' # include our own boost
#'./deps'
], ],
'sources': [ 'sources': [
'src/bitcoindjs.cc' './src/bitcoindjs.cc'
],
'defines': [
'HAVE_WORKING_BOOST_SLEEP'
#'HAVE_WORKING_BOOST_SLEEP_FOR'
],
'cflags_cc': [
'-fexceptions',
'-frtti'
], ],
'libraries': [ 'libraries': [
'-lutil', '-lutil',

View File

@ -10,7 +10,6 @@
// bitcoind headers: // bitcoind headers:
#include "core.h" #include "core.h"
/*
#include "addrman.h" #include "addrman.h"
#include "checkpoints.h" #include "checkpoints.h"
#include "crypter.h" #include "crypter.h"
@ -61,7 +60,6 @@
#include "protocol.h" #include "protocol.h"
#include "threadsafety.h" #include "threadsafety.h"
#include "version.h" #include "version.h"
*/
#include <node.h> #include <node.h>
#include <string> #include <string>