Build fastdebug

This commit is contained in:
khanhduytran0 2020-10-27 12:15:21 +07:00
parent 61cfd5c8e3
commit 2551821c66
6 changed files with 11 additions and 4 deletions

View File

@ -44,6 +44,7 @@ Based on http://openjdk.java.net/projects/mobile/android.html
### Run in this directory:
```
export JDK_DEBUG_LEVEL=[release/fastdebug/debug]
export NDK_VERSION=r14
./extractndk.sh
./getlibs.sh

View File

@ -37,7 +37,7 @@ bash ./configure \
--with-jdk-variant=normal \
--with-cups-include=$CUPS_DIR \
--with-devkit=$ANDROID_DEVKIT \
--with-debug-level=release \
--with-debug-level=$JDK_DEBUG_LEVEL \
--with-fontconfig-include=$ANDROID_INCLUDE \
--with-freetype-lib=$FREETYPE_DIR/lib \
--with-freetype-include=$FREETYPE_DIR/include/freetype2 \

View File

@ -1,6 +1,8 @@
#!/bin/bash
set -e
export JDK_DEBUG_LEVEL=fastdebug
. setdevkitpath.sh
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"

View File

@ -2,5 +2,5 @@
set -e
rm -rf jreout || true
cp -r openjdk/build/linux-${TARGET_JDK}-normal-server-release/images/j2re-image jreout
cp -r openjdk/build/linux-${TARGET_JDK}-normal-server-${JDK_DEBUG_LEVEL}/images/j2re-image jreout
find jreout -name "*.diz" | xargs -- rm

View File

@ -1,6 +1,9 @@
export NDK_VERSION=r14
# Override GitHub Actions env vars
if [ -z "$JDK_DEBUG_LEVEL" ]
then
export JDK_DEBUG_LEVEL=release
fi
if [ "$TARGET_JDK" == "aarch64" ]
then
@ -9,6 +12,7 @@ else
export TARGET_SHORT=$TARGET_JDK
fi
# Override GitHub Actions env var
export NDK_HOME=`pwd`/android-ndk-$NDK_VERSION
export NDK=$NDK_HOME

View File

@ -1,4 +1,4 @@
#!/bin/bash
set -e
cd jreout
tar cJf ../jre8-${TARGET_SHORT}-`date +%Y%m%d`.tar.xz .
tar cJf ../jre8-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .