• Home
  • Raw
  • Download

Lines Matching +full:- +full:dandroid_abi

9 #      http://www.apache.org/licenses/LICENSE-2.0
21 # - CMake on PATH. This is usually found in $ANDROID_HOME/cmake/<version>/bin.
22 # - ANDROID_NDK environment variable is set to your Android NDK location
24 # - Android device or emulator attached and accessible via adb
27 # - Run this script
28 # - Check the test results on your target device
31 # - Builds a test binary for the target architecture
32 # - Copies the test binary into the UnitTestRunner app
33 # - Builds, installs and runs the app on the target device
37 # If you want to perform a clean build just delete the 'build' folder and re-run this script. You w…
42 # permission (and `run-as` is broken). This means that the test binary must be executed by an app w…
56 if [ -z "$ANDROID_NDK" ]; then
61 if [ ! $(type -P ${CMAKE}) ]; then
62 …on your path. You can install it using Android Studio using Tools->Android->SDK Manager->SDK Tools…
68 ABI=$(adb shell getprop ro.product.cpu.abi | tr -d '\n\r')
70 if [ -z "$ABI" ]; then
77 if [ ${ABI} == "arm64-v8a" ] || [ ${ABI} == "x86_64" ]; then
78 PLATFORM=android-21
79 elif [ ${ABI} == "armeabi-v7a" ] || [ ${ABI} == "x86" ]; then
80 PLATFORM=android-16
82 …echo "Unrecognised ABI: ${ABI}. Supported ABIs are: arm64-v8a, armeabi-v7a, x86_64, x86. If you fe…
89 CMAKE_ARGS="-H. \
90 -B${BUILD_DIR} \
91 -DANDROID_ABI=${ABI} \
92 -DANDROID_PLATFORM=${PLATFORM} \
93 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
94 -DCMAKE_CXX_FLAGS=-std=c++14 \
95 -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
96 -DCMAKE_VERBOSE_MAKEFILE=1"
98 mkdir -p ${BUILD_DIR}
104 make -j5
106 if [ $? -eq 0 ]; then
129 echo "Starting app - Check your device for test results"
133 adb logcat --pid=`adb shell pidof -s ${TEST_RUNNER_PACKAGE_NAME}`