Something went wrong. Try again.
Fork of dvui, the immediate-mode Zig GUI, with a font face index for Pipit
Something went wrong. Try again.
README.md
Running #
- Install Android Studio and Android NDK
Android Side #
- Download the latest android zip (called something similar to
SDL3-devel-<version>-android.zip) from the SDL releases - Extract and move the
.aartoandrdoi-project/app/libs/ - Update
andrdoi-project/app/build.gradleto reflect the version of the.aar. The line should be at the end and isimplementation files('libs/SDL3-3.4.0.aar')
Zig side #
- In
zig-project/build.zig, updateandroid_include_pathwith the correct value- Should be close to "<android_home>/sdk/ndk//toolchains/llvm/prebuilt//sysroot/usr/include"
(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
mkdir -p android-project/app/src/main/c/prebuilt/arm64-v8acp zig-project/zig-out/lib/libsdl_hello.a android-project/app/src/main/c/prebuilt/arm64-v8a
Testing #
- Open the project in Android studio and run the app
- If the emulated phone has a notch, you might need to use SDL_GetWindowSafeArea