Fork of dvui, the immediate-mode Zig GUI, with a font face index for Pipit
README.md

Running #

  1. Install Android Studio and Android NDK

Android Side #

  1. Download the latest android zip (called something similar to SDL3-devel-<version>-android.zip) from the SDL releases
  2. Extract and move the .aar to andrdoi-project/app/libs/
  3. Update andrdoi-project/app/build.gradle to reflect the version of the .aar. The line should be at the end and is implementation files('libs/SDL3-3.4.0.aar')

Zig side #

  1. In zig-project/build.zig, update android_include_path with the correct value
    • Should be close to "<android_home>/sdk/ndk//toolchains/llvm/prebuilt//sysroot/usr/include"
  2. (cd zig-project && zig build lib -Dtarget=aarch64-linux-android -Doptimize=ReleaseSafe)
    • It takes a couple minutes and it'll feel like it's hanging but it's not
  3. mkdir -p android-project/app/src/main/c/prebuilt/arm64-v8a
  4. cp zig-project/zig-out/lib/libsdl_hello.a android-project/app/src/main/c/prebuilt/arm64-v8a

Testing #

  1. Open the project in Android studio and run the app