From 97475b98473a5dd107a0e15af7ac5aabacfc3f15 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 20 Aug 2014 14:51:07 -0700 Subject: [PATCH] build gyp. build info in readme. --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- binding.gyp | 22 ++++++++-------------- 2 files changed, 51 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index df0e7570..7b2d41f9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,48 @@ # bitcoind.js -Bitcoind for node +Bitcoind as a node.js module. + +## Building + +### bitcoind: + +- NOTE (to self): Arch is using bitcoin-daemon 0.9.2.1, the latest boost headers + in Arch should be correct. + +``` bash +$ cd ~/bitcoin +$ git clean -xdf + +... + +$ git checkout v0.9.2.1 +OR: +$ git checkout v0.9.0 + +... + +$ ./autogen.sh + +... + +$ ./configure --with-incompatible-bdb --prefix=/usr +OR: +$ ./configure --prefix=/usr + +... + +$ time make +``` + +### bitcoind.js: + +- NOTE: This will eventually try to include our included version of boost. +- NOTE: Rename bitcoind to bitcoind.o to try to statically link it? + +``` bash +$ cd ~/work/node_modules/bitcoind.js +$ PYTHON=/usr/bin/python2.7 make gyp +``` ## Contribution and License Agreement diff --git a/binding.gyp b/binding.gyp index 4f416774..edc35f31 100644 --- a/binding.gyp +++ b/binding.gyp @@ -22,27 +22,21 @@ ], 'libraries': [ # 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 - # NOTE: rename this to bitcoind.o so we can statically link to it # '-L