Skip to content

Commit

Permalink
Use NDK r17
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Oct 31, 2020
1 parent 3b36ce1 commit 8b2612c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion buildjdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bash ./configure \
--openjdk-target=$TARGET \
--with-jdk-variant=normal \
--with-cups-include=$CUPS_DIR \
--with-devkit=$ANDROID_DEVKIT \
--with-devkit=$TOOLCHAIN \
--with-debug-level=$JDK_DEBUG_LEVEL \
--with-fontconfig-include=$ANDROID_INCLUDE \
--with-freetype-lib=$FREETYPE_DIR/lib \
Expand Down
2 changes: 1 addition & 1 deletion buildlibs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
. setdevkitpath.sh
export PATH=$ANDROID_DEVKIT/bin:$PATH
export PATH=$TOOLCHAIN/bin:$PATH

echo "Building Freetype"

Expand Down
4 changes: 2 additions & 2 deletions maketoolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ set -e
$NDK/build/tools/make-standalone-toolchain.sh \
--arch=${TARGET_SHORT} \
--platform=android-21 \
--install-dir=$NDK_HOME/generated-toolchains/android-${TARGET_SHORT}-toolchain
cp devkit.info.${TARGET_SHORT} $NDK_HOME/generated-toolchains/android-${TARGET_SHORT}-toolchain/
--install-dir=$NDK/generated-toolchains/android-${TARGET_SHORT}-toolchain
cp devkit.info.${TARGET_SHORT} $NDK/generated-toolchains/android-${TARGET_SHORT}-toolchain/
15 changes: 5 additions & 10 deletions setdevkitpath.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

if [ -z "$NDK_VERSION" ]
then
export NDK_VERSION=r18
export NDK_VERSION=r17
fi

if [ -z "$JDK_DEBUG_LEVEL" ]
Expand All @@ -16,16 +16,11 @@ else
export TARGET_SHORT=$TARGET_JDK
fi

# Override GitHub Actions env var
export ANDROID_NDK_HOME=`pwd`/android-ndk-$NDK_VERSION
export NDK_HOME=$ANDROID_NDK_HOME

# Set NDK
export API=21

export NDK=$NDK_HOME
# export ANDROID_DEVKIT=$NDK/toolchains/android-${TARGET_SHORT}-toolchain
export ANDROID_DEVKIT=$NDK/toolchains/llvm/prebuilt/linux-x86_64
export TOOLCHAIN=$ANDROID_DEVKIT
export NDK=`pwd`/android-ndk-$NDK_VERSION
export TOOLCHAIN=$NDK/generated-toolchains/android-${TARGET_SHORT}-toolchain
# export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64

export ANDROID_INCLUDE=$TOOLCHAIN/sysroot/usr/include

Expand Down

0 comments on commit 8b2612c

Please sign in to comment.