mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-08-03 15:46:08 -04:00

* .github: move apt commands to workflow
the scripts are capable of running on other distros, so "let the host cook"
also explicitly use Python 3 here as the build env do not use Python 2
* treewide: use bash [[
./buildlibs.sh: line 18: [: : integer expression expected
...
./buildjdk.sh: line 53: [: : integer expression expected
...
all scripts has bash shebang anyways,
replace all single brackets [ with bash's double brackets [[
* [hack] tarjdk: force termux-elf-cleaner v2.2.0
g++: error: unrecognized command line option ‘-std=c++20’; did you mean ‘-std=c++2a’?
caused by a mix of our outdated toolchains and an upstream commit [1]
downgrade the version of termux-elf-cleaner we use to the latest stable tag to workaround the issue
[1]: 9578f2c4bc
Test: presubmit
Signed-off-by: fukiame <fukiame@proton.me>
* .github: update actions
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-java@v1, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
* .github: actions runner: update to ubuntu-22.04
a bit of future-proofing wont hurt... right?
* fixup! .github: java setup: its 7 not 1.7
i retartded
---------
Signed-off-by: fukiame <fukiame@proton.me>
49 lines
1.4 KiB
Bash
Executable File
49 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
. setdevkitpath.sh
|
|
cd freetype-$BUILD_FREETYPE_VERSION
|
|
|
|
echo "Building Freetype"
|
|
|
|
if [[ "$BUILD_IOS" == "1" ]]; then
|
|
LDFLAGS=-"arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0"
|
|
|
|
export CC=$thecc
|
|
export CXX=$thecxx
|
|
./configure \
|
|
--host=$TARGET \
|
|
--prefix=${PWD}/build_android-${TARGET_SHORT} \
|
|
--enable-shared=no --enable-static=yes \
|
|
--without-zlib \
|
|
--with-brotli=no \
|
|
--with-png=no \
|
|
--with-harfbuzz=no \
|
|
"CFLAGS=-arch arm64 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=12.0 -I$thesysroot/usr/include/libxml2/ -isysroot $thesysroot" \
|
|
AR=/usr/bin/ar \
|
|
"LDFLAGS=$LDFLAGS" \
|
|
|| error_code=$?
|
|
namefreetype=build_android-${TARGET_SHORT}/lib/libfreetype
|
|
else
|
|
export PATH=$TOOLCHAIN/bin:$PATH
|
|
./configure \
|
|
--host=$TARGET \
|
|
--prefix=`pwd`/build_android-${TARGET_SHORT} \
|
|
--without-zlib \
|
|
--with-brotli=no \
|
|
--with-png=no \
|
|
--with-harfbuzz=no $EXTRA_ARGS \
|
|
|| error_code=$?
|
|
fi
|
|
if [[ "$error_code" -ne 0 ]]; then
|
|
echo "\n\nCONFIGURE ERROR $error_code , config.log:"
|
|
cat config.log
|
|
exit $error_code
|
|
fi
|
|
|
|
CFLAGS=-fno-rtti CXXFLAGS=-fno-rtti make -j4
|
|
make install
|
|
|
|
if [[ -f "${namefreetype}.a" ]]; then
|
|
clang -fPIC -shared $LDFLAGS -lbz2 -Wl,-all_load ${namefreetype}.a -o ${namefreetype}.dylib
|
|
fi
|