mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-09 12:20:29 -04:00
Merge buildjre17-patch into buildjre17
This commit is contained in:
commit
39be5d5b93
@ -5,6 +5,6 @@ if [ "$1" = "--version" ]; then
|
||||
echo "This is free software; see the source for copying conditions. There is NO"
|
||||
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
else
|
||||
exec $thecc "${@/-fno-var-tracking-assignments/}"
|
||||
exec $thecc -Wno-unknown-warning-option "${@/-fno-var-tracking-assignments/}"
|
||||
# exec $thecc "$theargs"
|
||||
fi
|
||||
|
@ -6,6 +6,6 @@ if [ "$1" = "--version" ]; then
|
||||
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
else
|
||||
# theargs=
|
||||
exec $thecxx "${@/-fno-var-tracking-assignments/}"
|
||||
exec $thecxx -Wno-unknown-warning-option "${@/-fno-var-tracking-assignments/}"
|
||||
# exec $thecxx "$theargs"
|
||||
fi
|
||||
|
15
buildjdk.sh
15
buildjdk.sh
@ -70,6 +70,21 @@ fi
|
||||
ln -s -f $CUPS_DIR/cups $ANDROID_INCLUDE/
|
||||
|
||||
cd openjdk
|
||||
|
||||
# Apply patches
|
||||
git reset --hard
|
||||
if [ "$BUILD_IOS" != "1" ]; then
|
||||
git apply --reject --whitespace=fix ../patches/jdk17u_android.diff || echo "git apply failed (Android patch set)"
|
||||
else
|
||||
git apply --reject --whitespace=fix ../patches/jdk17u_ios.diff || echo "git apply failed (iOS patch set)"
|
||||
|
||||
# Hack: exclude building macOS stuff
|
||||
desktop_mac=src/java.desktop/macosx
|
||||
mv ${desktop_mac} ${desktop_mac}_NOTIOS
|
||||
mkdir -p ${desktop_mac}/native
|
||||
mv ${desktop_mac}_NOTIOS/native/libjsound ${desktop_mac}/native/
|
||||
fi
|
||||
|
||||
# rm -rf build
|
||||
|
||||
# --with-extra-cxxflags="$CXXFLAGS -Dchar16_t=uint16_t -Dchar32_t=uint32_t" \
|
||||
|
12
clonejdk.sh
12
clonejdk.sh
@ -1,14 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# TODO: use jdk17u repo for building for Android
|
||||
if [ "$BUILD_IOS" != "1" ]; then
|
||||
git clone --depth 1 https://github.com/PojavLauncherTeam/mobile openjdk
|
||||
else
|
||||
git clone --depth 1 https://github.com/PojavLauncherTeam/jdk17u openjdk
|
||||
# Hack: exclude building macOS stuff
|
||||
desktop_mac=openjdk/src/java.desktop/macosx
|
||||
mv ${desktop_mac} ${desktop_mac}_NOTIOS
|
||||
mkdir -p ${desktop_mac}/native
|
||||
mv ${desktop_mac}_NOTIOS/native/libjsound ${desktop_mac}/native/
|
||||
fi
|
||||
git clone --depth 1 https://github.com/openjdk/jdk17u openjdk
|
||||
|
2511
patches/jdk17u_android.diff
Normal file
2511
patches/jdk17u_android.diff
Normal file
File diff suppressed because it is too large
Load Diff
3309
patches/jdk17u_ios.diff
Normal file
3309
patches/jdk17u_ios.diff
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user