diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build.sh | 6 | ||||
-rw-r--r-- | scripts/rebuild.sh | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index acd2bcc3..e03b1eda 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -14,9 +14,12 @@ if [ ! -e $JAVA_HOME ] ; then exit 1 fi +CPU_COUNT=`getconf _NPROCESSORS_ONLN` + buildit() { echo rootdir $rootdir echo logfile $logfile + echo CPU_COUNT $CPU_COUNT cd $rootdir rm -rf dist-$archabi @@ -26,8 +29,7 @@ buildit() { cd build-$archabi cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON .. # cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON .. - # cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DSKIP_TINYB=ON -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON .. - make install test + make -j $CPU_COUNT install test if [ $? -eq 0 ] ; then echo "BUILD SUCCESS $bname $archabi" cp -a examples/* $rootdir/dist-$archabi/bin diff --git a/scripts/rebuild.sh b/scripts/rebuild.sh index eba3e8a6..5362f09b 100644 --- a/scripts/rebuild.sh +++ b/scripts/rebuild.sh @@ -14,12 +14,15 @@ if [ ! -e $JAVA_HOME ] ; then exit 1 fi +CPU_COUNT=`getconf _NPROCESSORS_ONLN` + buildit() { echo rootdir $rootdir echo logfile $logfile + echo CPU_COUNT $CPU_COUNT cd $rootdir/build-$archabi - make install test + make -j $CPU_COUNT install test if [ $? -eq 0 ] ; then echo "REBUILD SUCCESS $bname $archabi" cp -a examples/* $rootdir/dist-$archabi/bin |