Build and packaging script for building OpenJDK, used for ZalithLauncher.
This branch is used to compile JRE 8.
Use Android NDK to build.
- Download Android NDK r10e.
- Warning: Do not attempt to build use newer or older NDK, it will lead to compilation errors.
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)
# Setup NDK, run once
./extract_ndk.sh
./make_toolchain.sh
# Get CUPS, Freetype and build Freetype
./get_libs.sh
./build_libs.sh
# Clone JDK, run once
./clone_jdk.sh
# Configure JDK and build
./build_jdk.sh
# Pack the built JDK
./remove_jdk_debug_info.sh
./tar_jdk.sh