[android]: separate different arch script to different directory

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1093 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-07-25 06:51:09 +00:00
parent ef8ad3b3d0
commit 82e7dbe57a
3 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,46 @@
#!/bin/bash
# Run this from within a bash shell
HOST_IP=`hostname --all-ip-addresses`
if [ ${HOST_IP} == "10.10.10.65" ] || [ ${HOST_IP} == "10.10.10.67" ]; then
ANDROID_NDK=/home/pub/ndk/android-ndk-r10d/
else
ANDROID_NDK=~/work/android/ndk/android-ndk-r10d/
fi
PLATFORM=$ANDROID_NDK/platforms/android-21/arch-arm
cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DANDROID_FORCE_ARM_BUILD=ON \
-DANDROID_NDK=${ANDROID_NDK} \
-DANDROID_SYSROOT=${PLATFORM} \
-DANDROID_ABI="armeabi-v7a with NEON" \
-DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.8" \
-DANDROID_NATIVE_API_LEVEL=android-21 \
-DANDROID_STL=system \
-DCMAKE_RKPLATFORM_ENABLE=ON \
../../../
# ----------------------------------------------------------------------------
# usefull cmake debug flag
# ----------------------------------------------------------------------------
#-DCMAKE_BUILD_TYPE=Debug \
#-DCMAKE_VERBOSE_MAKEFILE=true \
#--trace \
#--debug-output \
#cmake --build . --clean-first -- V=1
cmake --build .
# ----------------------------------------------------------------------------
# test script
# ----------------------------------------------------------------------------
#adb push osal/test/rk_log_test /system/bin/
#adb push osal/test/rk_thread_test /system/bin/
#adb shell sync
#adb shell logcat -c
#adb shell rk_log_test
#adb shell rk_thread_test
#adb logcat -d|tail -30