# angelauramc-openjdk-build **This branch is for OpenJDK 17 and 21.** Based on [Java for Android](http://openjdk.java.net/projects/mobile/android.html) and [the PojavLauncher variant](https://github.com/PojavLauncherTeam/android-openjdk-build-multiarch) ## Building ### Setup #### Android **Note:** We use Ubuntu 24.04 LTS to build our JDKs. Adapt these dependencies to your distribution, it should build fine. - Install `autoconf`, `python3`, `python-is-python3`, `unzip`, `zip`, `systemtap-sdt-dev`, `libxtst-dev`, `libasound2-dev`, `libelf-dev`, `libfontconfig1-dev`, `libx11-dev`, `libxext-dev`, `libxrandr-dev`, `libxrender-dev`, `libxtst-dev`, `libxt-dev`. - If building JDK 17, install `openjdk-17-jdk`. For 21, `openjdk-21-jdk`. - Install Android NDK r27b. #### iOS - Install latest Xcode on your Mac. - If building JDK 17, install JDK 17. For 21, install JDK 21. ### Platform and architecture specific environment variables
Environment variables | |||||||
---|---|---|---|---|---|---|---|
Platform - Architecture | TARGET | TARGET_JDK | |||||
Android - armv8/aarch64 | aarch64-linux-android | aarch64 | |||||
Android - armv7/aarch32 | arm-linux-androideabi | arm | |||||
Android - x86/i686 | i686-linux-android | x86 | |||||
Android - x86_64/amd64 | x86_64-linux-android | x86_64 | |||||
iOS/iPadOS - armv8/aarch64 | aarch64-macos-ios | aarch64 |