summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-04 15:29:04 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-04 15:29:04 +0800
commitf8dbe8e0f771949f83e91b5e37a690e571a047ee (patch)
tree50cb474a2ebe8e0e730d38186dad87912c0d5f4d /README.md
Separated client code
Diffstat (limited to 'README.md')
-rw-r--r--README.md48
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
+```