Files
mpp/build/android/arm/make-Android.bash
Herman Chen 5d6e5c857a [cmake]: Default enable drm on Android
Due to more platform using 4.4 kernel with drm we default enable
drm support on Android platform.

Change-Id: I4690d3d5f65a471b797d2474426836e6e357cf66
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-12-22 08:56:27 +08:00

51 lines
2.3 KiB
Bash
Executable File

#!/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 \
-DRKPLATFORM=ON \
-DHAVE_DRM \
../../../
# ----------------------------------------------------------------------------
# usefull cmake debug flag
# ----------------------------------------------------------------------------
#-DMPP_NAME="rockchip_mpp" \
#-DVPU_NAME="rockchip_vpu" \
#-DHAVE_DRM \
#-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