From 072ffe69654129b38cb8df32573298e622531ab0 Mon Sep 17 00:00:00 2001
From: griffi-gh
Date: Sun, 21 May 2023 06:53:47 +0200
Subject: [PATCH] Add android build instructions
---
README.md | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 674579c..1d3e71c 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,7 @@
work-in-progress multiplayer support
block placement system
partial gamepad input support
+ (experimental) android support
@@ -29,15 +30,26 @@
build/run
-```sh
-cargo build -p kubi
-cargo run -p kubi
+```bash
+cargo build --bin kubi
+cargo run --bin kubi
```
build with nightly features
-```sh
-RUSTFLAGS="-C target-cpu=native" cargo +nightly build -p kubi -r --features nightly --
+```bash
+cargo +nightly build --bin kubi -r --features nightly
+```
+
+build for android
+
+prerequisites: Android SDK, NDK, platform-tools, latest JDK
+
+```bash
+cargo install cargo-apk
+cargo target add aarch64-linux-android
+cargo apk build -p kubi
+cargo apk run -p kubi
```
mutiplayer