mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-08-03 23:55:58 -04:00
Based on http://openjdk.java.net/projects/mobile/android.html
Building
Setup
- Download Android NDK r10e from https://developer.android.com/ndk/downloads/older_releases.html and place it in this directory (Can't automatically download because of EULA)
- Warning: Do not attempt to build use newer or older NDK, it will lead to compilation errors.
Architecture specific environment variables
Environment variables | |||||||
---|---|---|---|---|---|---|---|
Architectures | TARGET | TARGET_JDK | |||||
armv8/aarch64 | aarch64-linux-android | aarch64 | |||||
armv7/aarch32 | arm-linux-androideabi | arm | |||||
x86/i686 | i686-linux-android | x86 | |||||
x86_64/amd64 | x86_64-linux-android | x86_64 |
Run in this directory:
export BUILD_FREETYPE_VERSION=[2.6.2/.../2.10.0] # default: 2.10.0
export JDK_DEBUG_LEVEL=[release/fastdebug/debug] # default: release
export JVM_VARIANTS=[client/server] # default: client (aarch32), server (other architectures)
./extractndk.sh
./getlibs.sh
./maketoolchain.sh
./clonejdk.sh
./buildlibs.sh
./buildjdk.sh
./removejdkdebuginfo.sh
./tarjdk.sh
Description
Languages
C
94%
Shell
6%