diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..a96f32c --- /dev/null +++ b/README.md @@ -0,0 +1,48 @@ +# 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 +``` |