# Namatoko # Building ## Getting ```sh $ git clone interch@darapsa.co.id:/usr/local/git/namatoko.git $ git submodule init $ git submodule update $ cd namatoko $ mkdir build $ cd build ``` ## Configuring for various target hosts (with optional debugging), compiling, and linking ```sh $ /opt/Qt/5.15.2/wasm_32/bin/qmake ../namatoko.pro -spec wasm-emscripten CONFIG+='debug qml_debug' SAMPLEURL=https://darapsa.com IMAGE_DIR=/images $ emmake make ``` or ```sh $ /opt/Qt/5.15.2/android/bin/qmake ../namatoko.pro -spec android-clang CONFIG+='debug qml_debug' ANDROID_NDK_PATH=/opt/android-sdk-update-manager/ndk/21.3.6528147 ANDROID_NDK_HOST=linux-x86_64 ANDROID_TARGET_ARCH=arm64-v8a QT_ANDROID_LIBDIR=/opt/Qt/5.15.2/android/lib API=21 CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt ANDROID_ABIS=arm64-v8a SAMPLEURL=https://darapsa.com IMAGE_DIR=/images $ make ``` or so on. ## Producing bundle For Android: ```sh $ make install INSTALL_ROOT=android-build $ export ANDROID_SDK_ROOT=/opt/android-sdk-update-manager $ /opt/Qt/5.15.2/android/bin/androiddeployqt --input android-namatoko-deployment-settings.json --output android-build --android-platform android-30 ``` and if on FreeBSD: ```sh $ cd android-build $ echo "android.aapt2FromMavenOverride = $ANDROID_SDK_ROOT/build-tools/28.0.3/aapt2" >> gradle.properties ./gradlew assembleDebug ```