mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-11 05:05:28 -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 "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."
|
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||||
else
|
else
|
||||||
exec $thecc "${@/-fno-var-tracking-assignments/}"
|
exec $thecc -Wno-unknown-warning-option "${@/-fno-var-tracking-assignments/}"
|
||||||
# exec $thecc "$theargs"
|
# exec $thecc "$theargs"
|
||||||
fi
|
fi
|
||||||
|
@ -6,6 +6,6 @@ if [ "$1" = "--version" ]; then
|
|||||||
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||||
else
|
else
|
||||||
# theargs=
|
# theargs=
|
||||||
exec $thecxx "${@/-fno-var-tracking-assignments/}"
|
exec $thecxx -Wno-unknown-warning-option "${@/-fno-var-tracking-assignments/}"
|
||||||
# exec $thecxx "$theargs"
|
# exec $thecxx "$theargs"
|
||||||
fi
|
fi
|
||||||
|
15
buildjdk.sh
15
buildjdk.sh
@ -70,6 +70,21 @@ fi
|
|||||||
ln -s -f $CUPS_DIR/cups $ANDROID_INCLUDE/
|
ln -s -f $CUPS_DIR/cups $ANDROID_INCLUDE/
|
||||||
|
|
||||||
cd openjdk
|
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
|
# rm -rf build
|
||||||
|
|
||||||
# --with-extra-cxxflags="$CXXFLAGS -Dchar16_t=uint16_t -Dchar32_t=uint32_t" \
|
# --with-extra-cxxflags="$CXXFLAGS -Dchar16_t=uint16_t -Dchar32_t=uint32_t" \
|
||||||
|
12
clonejdk.sh
12
clonejdk.sh
@ -1,14 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# TODO: use jdk17u repo for building for Android
|
git clone --depth 1 https://github.com/openjdk/jdk17u openjdk
|
||||||
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
|
|
||||||
|
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