change the constant place

This commit is contained in:
Boulay Mathias 2023-05-03 18:24:11 +02:00 committed by GitHub
parent d2a7e8f9a4
commit 9bd2b35228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Use the old NDK r10e to not get internal compile error at (still?)
# https://github.com/PojavLauncherTeam/openjdk-multiarch-jdk8u/blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.c
export NDK_VERSION=r21
if [ -z "$BUILD_FREETYPE_VERSION" ]
then
@ -46,8 +46,7 @@ else
export JVM_PLATFORM=linux
# Set NDK
export API=21
export NDK=$PWD/android-ndk-$NDK_VERSION
export ANDROID_NDK_ROOT=$NDK
export TOOLCHAIN=$NDK/generated-toolchains/android-${TARGET_SHORT}-toolchain
# export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64

View File

@ -1,9 +1,14 @@
set -e
#Setup the ndk according to the selected version
export NDK_VERSION=r21
export NDK=$PWD/android-ndk-$NDK_VERSION
export ANDROID_NDK_ROOT=$NDK
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"
unzip -q android-ndk-$NDK_VERSION-linux-x86_64.zip
./maketoolchain.sh
./maketoolchain.sh