Warning, /sdk/kirigami-gallery/README.md is written in an unsupported language. File is not indexed.

0001 # Kirigami Gallery
0002 
0003 Example application which uses all features from kirigami, including links to the sourcecode, tips on how to use the components and links to the corresponding HIG pages and code examples on invent.
0004 
0005 ## Build on Android:
0006 Make sure to install **android-sdk**, **android-ndk** and **android-qt5-arch**, where **arch** should be the same architecture that you aim to deploy.
0007 ```sh
0008 mkdir build
0009 cd build
0010 cmake .. \
0011     -DQTANDROID_EXPORTED_TARGET=kirigami2gallery \
0012     -DANDROID_APK_DIR=./src/ \
0013     -DECM_DIR=/path/to/share/ECM/cmake \
0014     -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake \
0015     -DECM_ADDITIONAL_FIND_ROOT_PATH=/path/to/Qt5.X.0/5.X/{arch} \
0016     -DCMAKE_PREFIX_PATH=/path/to/Qt5.X.0/5.X/{arch}/path/to/Qt5Core \
0017     -DANDROID_NDK=/path/to/Android/Sdk/ndk-bundle \
0018     -DANDROID_SDK_ROOT=/path/to/Android/Sdk/ \
0019     -DANDROID_SDK_BUILD_TOOLS_REVISION=26.0.2 \
0020     -DCMAKE_INSTALL_PREFIX=/path/to/dummy/install/prefix
0021 ```
0022 
0023 You need a `-DCMAKE_INSTALL_PREFIX` to somewhere in your home, but using an absolute path.
0024 
0025 If you have a local checkout of the breeze-icons repo, you can avoid the cloning of the build dir
0026 by passing also `-DBREEZEICONS_DIR=/path/to/existing/sources/of/breeze-icons`
0027 
0028 ```
0029 make create-apk-kirigami2gallery
0030 ```
0031 
0032 `./kirigami2gallery_build_apk/build/outputs/apk/kirigami2gallery_build_apk-debug.apk` will be generated
0033 
0034 To directly install on a phone:
0035 ```
0036 adb install -r ./kirigami2gallery_build_apk/build/outputs/apk/kirigami2gallery_build_apk-debug.apk
0037 ```
0038 To perform this, your device need to be configureted with `USB debugging` and `install via USB` in `Developer options`.
0039 
0040 > Some ambient variables must be set before the process: `ANDROID_NDK`, `ANDROID_SDK_ROOT`, `Qt5_android` and `JAVA_HOME`
0041 ```
0042 export ANDROID_NDK=/path/to/android-ndk
0043 export ANDROID_SDK_ROOT=/path/to/android-sdk
0044 export Qt5_android=/path/to/android-qt5/5.X.0/{arch}
0045 export PATH=$ANDROID_SDK_ROOT/platform-tools/:$PATH
0046 # adapt the following path to your ant installation
0047 export ANT=/usr/bin/ant
0048 export JAVA_HOME=/path/to/lib/jvm/java-8-openjdk/
0049 ```