mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-08-03 23:55:58 -04:00
Fix
This commit is contained in:
parent
b1f4038854
commit
ed9a626644
@ -4,17 +4,16 @@ Based on http://openjdk.java.net/projects/mobile/android.html
|
||||
|
||||
### Setup
|
||||
- Download Android NDK r14 from https://developer.android.com/ndk/downloads/older_releases.html and place it in this directory (Can't automatically download because of EULA)
|
||||
- Rename to `android-ndk-linux-x86_64.zip`.
|
||||
|
||||
### Environment variables
|
||||
### Architecture specific environment variables
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th align="center" colspan="7">Architectures</th>
|
||||
<th align="center" colspan="7">Environment variables</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Env var</th>
|
||||
<th>Architectures</th>
|
||||
<th align="center">TARGET</th>
|
||||
<th align="center">TARGET_JDK</th>
|
||||
</tr>
|
||||
@ -45,6 +44,7 @@ Based on http://openjdk.java.net/projects/mobile/android.html
|
||||
|
||||
### Run in this directory:
|
||||
```
|
||||
export NDK_VERSION=r14
|
||||
./extractndk.sh
|
||||
./getlibs.sh
|
||||
./maketoolchain.sh
|
||||
|
@ -3,7 +3,7 @@ set -e
|
||||
|
||||
. setdevkitpath.sh
|
||||
|
||||
wget -nc -nv -O android-ndk-linux-x86_64.zip "https://dl.google.com/android/repository/android-ndk-r14-linux-x86_64.zip"
|
||||
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
|
||||
./getlibs.sh
|
||||
./maketoolchain.sh
|
||||
|
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
unzip -q android-ndk-linux-x86_64.zip
|
||||
unzip -q android-ndk-$NDK_VERSION-linux-x86_64.zip
|
||||
|
@ -1,3 +1,5 @@
|
||||
export NDK_VERSION=r14
|
||||
|
||||
# Override GitHub Actions env vars
|
||||
|
||||
if [ "$TARGET_JDK" == "aarch64" ]
|
||||
@ -7,7 +9,7 @@ else
|
||||
export TARGET_SHORT=$TARGET_JDK
|
||||
fi
|
||||
|
||||
export NDK_HOME=`pwd`/android-ndk-r*
|
||||
export NDK_HOME=`pwd`/android-ndk-$NDK_VERSION
|
||||
|
||||
export NDK=$NDK_HOME
|
||||
export ANDROID_DEVKIT=$NDK/generated-toolchains/android-${TARGET_SHORT}-toolchain
|
||||
|
Loading…
x
Reference in New Issue
Block a user