2 if [ -d ./dali-demo/cmake/${ANDROID_ABI} ]; then
3 cd ./dali-demo/cmake/${ANDROID_ABI}
5 mkdir -p ./dali-demo/cmake/${ANDROID_ABI}
6 cd ./dali-demo/cmake/${ANDROID_ABI}
8 if [ ! -z "$DEBUG" ]; then
9 export CMAKE_BUILD_TYPE=Debug
11 export CMAKE_BUILD_TYPE=Release
14 if [ -z "$ENABLE_TRACE" ]; then
15 export ENABLE_TRACE=OFF
18 export PREFIX=${DALI_ENV_DIR}
19 export PKG_CONFIG_LIBDIR=${ANDROID_NDK}/prebuilt/linux-x86_64/lib/pkgconfig
20 export PKG_CONFIG_PATH=${PREFIX}/lib/${ANDROID_ABI}/pkgconfig
21 export DALI_APP_RES_DIR=${PREFIX}/files
22 export DALI_APP_DIR=${PREFIX}/lib/${ANDROID_ABI}
23 export DALI_DEMO_RES_DIR=assets
24 #NOTE: keep app id consistent with dali-demo/build/android/app/src/main/AndroidManifest.xml
25 export DALI_DEMO_APP_ID=com.sec.dalidemo
27 ${ANDROID_SDK}/cmake/3.10.2.4988404/bin/cmake ${DALI_DIR}/dali-demo/build/tizen -DCMAKE_C_COMPILER=${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=${ANDROID_PLATFORM} -DANDROID_ABI=${ANDROID_ABI} -DANDROID_NDK=${ANDROID_NDK} -DANDROID_STL=c++_shared -DCMAKE_CXX_FLAGS='-fexceptions -frtti -w -Wall -std=c++17' -DINCLUDE_DIR=${PREFIX}/include -DLIB_DIR=${PREFIX}/lib/${ANDROID_ABI} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DENABLE_TRACE=${ENABLE_TRACE} -DINTERNATIONALIZATION=OFF -DSHARED=ON -DDALI_APP_RES_DIR=${DALI_APP_RES_DIR} -DDALI_APP_DIR=${DALI_APP_DIR} -DDALI_DEMO_RES_DIR=${DALI_DEMO_RES_DIR} -DDALI_DEMO_APP_ID=${DALI_DEMO_APP_ID}
31 make install || exit 1