Commit 5b4fc8f8 authored by Sharaf Zaman's avatar Sharaf Zaman

Added cmake variables for toolchain and building apk

parent 0c8f738c
......@@ -5,6 +5,7 @@
: ${ANDROID_SDK_ROOT?"Android SDK path must be set"}
: ${ANDROID_API_LEVEL?"API level required"}
: ${QT_ANDROID?"path to qt android required"}
: ${INSTALL_PREFIX?"INSTALL_ROOT must be set for building apk"}
CURDIR="$(pwd)"/
......@@ -23,9 +24,7 @@ PYTHON_LIBRARY=$PY_LIBRARY
# Configure files using cmake
cmake $KRITA_ROOT -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DDEFINE_NO_DEPRECATED=1 \
-DBUILD_TESTING=OFF \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_TOOLCHAIN_FILE=$CMAKE_ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_PLATFORM=$ANDROID_NATIVE_API_LEVEL \
-DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_PATH \
......@@ -34,6 +33,8 @@ cmake $KRITA_ROOT -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 \
-DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF \
-DBoost_NO_BOOST_CMAKE=TRUE \
-DBoost_NO_SYSTEM_PATHS=TRUE
-DBoost_NO_SYSTEM_PATHS=TRUE \
-DQTANDROID_EXPORTED_TARGET=krita \
-DANDROID_APK_DIR=$KRITA_ROOT/packaging/android/apk \
-DANDROID_STL=c++_shared
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment