5 echo "*********** Clean build *************"
12 echo "*********** Build for linux *************"
15 # Note: for android, as oic-resource uses C++11 feature stoi and to_string,
16 # it requires gcc-4.9, currently only android-ndk-r10(for linux)
17 # and windows android-ndk-r10(64bit target version) support these features.
19 echo "*********** Build for android x86 *************"
20 scons BUILD_TARGET=Android CPU_ARCH=x86 ANDROID_HOME=$1 ANDROID_NDK=$2
22 echo "*********** Build for android armeabi *************"
23 scons BUILD_TARGET=Android CPU_ARCH=armeabi ANDROID_HOME=$1 ANDROID_NDK=$2
25 echo "*********** Build for android armeabi-v7a *************"
26 scons BUILD_TARGET=Android CPU_ARCH=armeabi-v7a ANDROID_HOME=$1 ANDROID_NDK=$2
28 echo "*********** Build for android armeabi-v7a-hard *************"
29 scons BUILD_TARGET=Android CPU_ARCH=armeabi-v7a-hard ANDROID_HOME=$1 ANDROID_NDK=$2
31 echo "*********** Build for arduino avr *************"
32 scons BUILD_TARGET=Arduino CPU_ARCH=avr ARDUINO_HOME=$3
34 echo "*********** Build for arduino arm *************"
35 scons BUILD_TARGET=Arduino CPU_ARCH=arm ARDUINO_HOME=$3
37 if [ $(uname -s) = "Darwin" ]
39 echo "*********** Build for OSX i386 *************"
40 scons BUILD_TARGET=Darwin CPU_ARCH=i386 SYS_VERSION=10.9
42 echo "*********** Build for OSX x86_64 *************"
43 scons BUILD_TARGET=Darwin CPU_ARCH=x86_64 SYS_VERSION=10.9
45 echo "*********** Build for IOS i386 *************"
46 scons BUILD_TARGET=IOS CPU_ARCH=i386 SYS_VERSION=7.0
48 echo "*********** Build for IOS x86_64 *************"
49 scons BUILD_TARGET=IOS CPU_ARCH=x86_64 SYS_VERSION=7.0
51 echo "*********** Build for IOS armv7 *************"
52 scons BUILD_TARGET=IOS CPU_ARCH=armv7 SYS_VERSION=7.0
54 echo "*********** Build for IOS armv7s *************"
55 scons BUILD_TARGET=IOS CPU_ARCH=armv7s SYS_VERSION=7.0
57 echo "*********** Build for IOS arm64 *************"
58 scons BUILD_TARGET=IOS CPU_ARCH=arm64 SYS_VERSION=7.0
66 echo " `basename $0` <path-to-android-sdk> <path-to-android-ndk> <path-to-arduino-home>"
68 echo " `basename $0` -c"
89 echo "===================== done ====================="