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

Added cmake variables for toolchain and building apk

parent 0c8f738c
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
: ${ANDROID_SDK_ROOT?"Android SDK path must be set"} : ${ANDROID_SDK_ROOT?"Android SDK path must be set"}
: ${ANDROID_API_LEVEL?"API level required"} : ${ANDROID_API_LEVEL?"API level required"}
: ${QT_ANDROID?"path to qt android required"} : ${QT_ANDROID?"path to qt android required"}
: ${INSTALL_PREFIX?"INSTALL_ROOT must be set for building apk"}
CURDIR="$(pwd)"/ CURDIR="$(pwd)"/
...@@ -22,18 +23,18 @@ PYTHON_LIBRARY=$PY_LIBRARY ...@@ -22,18 +23,18 @@ PYTHON_LIBRARY=$PY_LIBRARY
# Configure files using cmake # Configure files using cmake
cmake $KRITA_ROOT -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \ cmake $KRITA_ROOT -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DDEFINE_NO_DEPRECATED=1 \ -DDEFINE_NO_DEPRECATED=1 \
-DBUILD_TESTING=OFF \ -DCMAKE_BUILD_TYPE=Debug \
-DKDE4_BUILD_TESTS=OFF \ -DCMAKE_TOOLCHAIN_FILE=$CMAKE_ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DANDROID_PLATFORM=$ANDROID_NATIVE_API_LEVEL \
-DCMAKE_TOOLCHAIN_FILE=$CMAKE_ANDROID_NDK/build/cmake/android.toolchain.cmake \ -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_PATH \
-DANDROID_PLATFORM=$ANDROID_NATIVE_API_LEVEL \ -DPYTHON_LIBRARY=$PYTHON_LIBRARY \
-DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_PATH \ -DCMAKE_PREFIX_PATH=$QT_ANDROID \
-DPYTHON_LIBRARY=$PYTHON_LIBRARY \ -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 \
-DCMAKE_PREFIX_PATH=$QT_ANDROID \ -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF \
-DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 \ -DBoost_NO_BOOST_CMAKE=TRUE \
-DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF \ -DBoost_NO_SYSTEM_PATHS=TRUE \
-DBoost_NO_BOOST_CMAKE=TRUE \ -DQTANDROID_EXPORTED_TARGET=krita \
-DBoost_NO_SYSTEM_PATHS=TRUE -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