forked from analogdevicesinc/gnuradio-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
android_cmake.sh
executable file
·30 lines (29 loc) · 1016 Bytes
/
android_cmake.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -x
$CMAKE \
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake \
-DCMAKE_BUILD_TYPE:String=$BUILD_TYPE \
-DANDROID_STL:STRING=c++_shared \
-DANDROID_SDK:PATH=$ANDROID_SDK_ROOT \
-DCMAKE_SYSTEM_NAME=Android \
-DANDROID_NDK=$ANDROID_NDK_ROOT \
-DANDROID_PLATFORM=android-$API \
-DANDROID_ABI:STRING=$ABI \
-DANDROID_TOOLCHAIN=clang \
-DCMAKE_FIND_ROOT_PATH:PATH=$QT_INSTALL_PREFIX \
-DCMAKE_LIBRARY_PATH=$DEV_PREFIX \
-DCMAKE_INSTALL_PREFIX=$DEV_PREFIX \
-DCMAKE_STAGING_PREFIX=$DEV_PREFIX \
-DCMAKE_C_FLAGS="${C_FLAGS}" \
-DCMAKE_CPP_FLAGS="${CPP_FLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS_COMMON}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS_COMMON}" \
-DANDROID_ARM_NEON=ON \
-DANDROID_LD=lld \
-DQT_QMAKE_EXECUTABLE:STRING=$QMAKE \
-DCMAKE_PREFIX_PATH:STRING=$QT_INSTALL_PREFIX\;$DEV_PREFIX/lib/cmake \
-DCMAKE_C_COMPILER:STRING=$CC \
-DCMAKE_CXX_COMPILER:STRING=$CXX \
-DANDROID_NATIVE_API_LEVEL:STRING=$API \
-Bbuild_${ABI}_${BUILD_TYPE} \
$@