angelauramc-openjdk-build/ci_build_global.sh
Eva Isabella Luna a23217a8f3
[FIX] Allow usage of a different NDK location for JDK 8
This allows users to not need to download the NDK multiple times if they already have it installed.

TODO: Rewrite literally all of these scripts and rebranch.
2025-06-28 17:53:07 -06:00

29 lines
579 B
Bash
Executable File

#!/bin/bash
set -e
. setdevkitpath.sh
export JDK_DEBUG_LEVEL=release
if [[ "$BUILD_IOS" != "1" ]]; then
if [[ -d $NDK ]]; then
echo "NDK already installed."
else
wget -nc -nv -O android-ndk-$NDK_VERSION-linux-x86_64.zip "https://dl.google.com/android/repository/android-ndk-$NDK_VERSION-linux-x86_64.zip"
./extractndk.sh
fi
./maketoolchain.sh
else
chmod +x ios-arm64-clang
chmod +x ios-arm64-clang++
chmod +x macos-host-cc
fi
# Some modifies to NDK to fix
./getlibs.sh
./buildlibs.sh
./clonejdk.sh
./buildjdk.sh
./removejdkdebuginfo.sh
./tarjdk.sh