2013-09-23 20:08:16 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Abort if no known installation of NDK
|
|
|
|
if [ "$NDK" == "" ]
|
|
|
|
then
|
2015-04-01 10:08:23 +08:00
|
|
|
echo "Where is the NDK location ?"
|
|
|
|
echo -n "NDK: "; read NDK
|
|
|
|
export NDK=$NDK
|
2013-09-23 20:08:16 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
export ANDROID_NDK=$NDK
|
|
|
|
|
|
|
|
# Abort if we don't know the Android CMake toolchain location
|
|
|
|
if [ "$ANDROID_CMAKE_TOOLCHAIN" == "" ]
|
|
|
|
then
|
2015-04-01 10:08:23 +08:00
|
|
|
echo "Where is the Android CMake toolchain ?"
|
|
|
|
echo -n "ANDROID_CMAKE_TOOLCHAIN: "; read ANDROID_CMAKE_TOOLCHAIN
|
|
|
|
export ANDROID_CMAKE_TOOLCHAIN=$ANDROID_CMAKE_TOOLCHAIN
|
2013-09-23 20:08:16 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
./clean_all.sh
|
|
|
|
|
|
|
|
./create_toolchains.sh
|
|
|
|
|
|
|
|
./download_sources.sh
|
|
|
|
./compile_arm.sh
|
|
|
|
|
|
|
|
rm -r $PWD/build
|
|
|
|
./download_sources.sh
|
|
|
|
./compile_x86.sh
|
|
|
|
|
|
|
|
rm -r $PWD/build
|
|
|
|
./download_sources.sh
|
|
|
|
./compile_mips.sh
|
|
|
|
|
|
|
|
rm -r $PWD/build
|
|
|
|
./download_sources.sh
|
|
|
|
./compile_arm-v7a.sh
|