From f6a9761008c87967d2790e78e362e6366d8fa8af Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 15 Sep 2020 01:47:23 +0200 Subject: CMake: Support full parallel build by adding target dependencies C++ Libs -> none (2x) Java Jar -> none Java JNI Libs -> C++ Lib + Java Jar (2x) C++ Examples -> C++ Libs Java Examples -> Java Jar Test -> C++ Lib +++ scripts/[re]build.sh uses `getconf _NPROCESSORS_ONLN` for the make -j . --- scripts/rebuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/rebuild.sh') 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 -- cgit v1.2.3