Added prebuilt libs to the cache directory so that the bindings can get to them.

This commit is contained in:
Chris Kleeschulte 2015-07-29 15:26:34 -04:00
parent 86dbc89ff3
commit ead1294111
2 changed files with 8 additions and 3 deletions

View File

@ -17,6 +17,8 @@ copy_header_files () {
mkdir -p "${artifacts_dir}/include" > /dev/null 2>&1
pushd "${root_dir}"
find libbitcoind -type f \( -name "*.h" -or -name "*.hpp" -or -name "*.ipp" \) -print0 | xargs -0 -I{} rsync -R {} "${artifacts_dir}"/include
mkdir -p "${artifacts_dir}/lib" > /dev/null 2>&1
cp -r "${h_and_a_dir}"/lib/libboost_filesystem-mt.a "${h_and_a_dir}"/lib/libboost_thread-mt.a "${artifacts_dir}"/lib/
popd
fi
}
@ -163,6 +165,9 @@ apply the current patch from "${root_dir}"/etc/bitcoin.patch? (y/N): "
echo -n `shasum -a 256 "${root_dir}"/etc/bitcoin.patch | awk '{print $1}'` > "${artifacts_dir}"/patch_sha.txt
echo "Copying the header files in order to be cached..."
copy_header_files
else
echo "Could not find the shared libraries after they should have been built, please run make clean inside the libbitcoind dir and run npm install again."
exit 1
fi
echo 'Build finished successfully.'
else

View File

@ -5,7 +5,7 @@
'<!(node -e "require(\'nan\')")',
'<!(./platform/os.sh artifacts_dir)/include/libbitcoind/src',
'<!(./platform/os.sh artifacts_dir)/include/libbitcoind/depends/<!(./platform/os.sh host)/include',
'<!(./platform/os.sh artifacts_dir)/include/libbitcoind/src/leveldb'
'<!(./platform/os.sh artifacts_dir)/include/libbitcoind/src/leveldb/include'
],
'sources': [
'./src/bitcoindjs.cc',
@ -27,8 +27,8 @@
],
'link_settings': {
'libraries': [
'<!(./platform/os.sh filesystem)',
'<!(./platform/os.sh thread)',
'<!(./platform/os.sh artifacts_dir)/lib/libboost_filesystem-mt.a',
'<!(./platform/os.sh artifacts_dir)/lib/libboost_thread-mt.a',
'<!(./platform/os.sh lib)'
],
'ldflags': [