Merge "Remove high frequency log to avoid the log full with useless information"
[platform/upstream/iotivity.git] / auto_build.sh
index 4edc0e0..536331c 100755 (executable)
@@ -22,19 +22,27 @@ function build()
        # Note: for android, as oic-resource uses C++11 feature stoi and to_string,
        # it requires gcc-4.9, currently only android-ndk-r10(for linux)
        # and windows android-ndk-r10(64bit target version) support these features.
+       if [ "$BUILD_FOR_ANDROID" = "true" ]
+               then
 
-       echo "*********** Build for android x86 *************"
-       scons TARGET_OS=android TARGET_ARCH=x86 ANDROID_NDK=$1 RELEASE=$3
+               echo "*********** Build Boost for android ***********"
+               pushd extlibs
+               ./buildDependencies.sh
+               popd
 
-       echo "*********** Build for android armeabi *************"
-       scons TARGET_OS=android TARGET_ARCH=armeabi ANDROID_NDK=$1 RELEASE=$3
+               echo "*********** Build for android x86 *************"
+               scons TARGET_OS=android TARGET_ARCH=x86 ANDROID_NDK=$1 RELEASE=$3
 
-       echo "*********** Build for android armeabi-v7a *************"
-       scons TARGET_OS=android TARGET_ARCH=armeabi-v7a ANDROID_NDK=$1 RELEASE=$3
+               echo "*********** Build for android armeabi *************"
+               scons TARGET_OS=android TARGET_ARCH=armeabi ANDROID_NDK=$1 RELEASE=$3
 
-       echo "*********** Build for android armeabi-v7a-hard *************"
-       scons TARGET_OS=android TARGET_ARCH=armeabi-v7a-hard ANDROID_NDK=$1 RELEASE=$3
+               echo "*********** Build for android armeabi-v7a *************"
+               scons TARGET_OS=android TARGET_ARCH=armeabi-v7a ANDROID_NDK=$1 RELEASE=$3
 
+               echo "*********** Build for android armeabi-v7a-hard *************"
+               scons TARGET_OS=android TARGET_ARCH=armeabi-v7a-hard ANDROID_NDK=$1 RELEASE=$3
+       fi
+       
        echo "*********** Build for arduino avr *************"
        scons TARGET_OS=arduino TARGET_ARCH=avr ARDUINO_HOME=$2 RELEASE=$3
 
@@ -89,7 +97,7 @@ then
 fi
 
 # Suppress "Reading ..." message and enable parallel build
-export SCONSFLAGS="-Q -j 8"
+export SCONSFLAGS="-Q -j 4"
 build $1 $2 true
 build $1 $2 false
 echo "===================== done ====================="