mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-18 00:24:55 -04:00
libffi
This commit is contained in:
parent
0ae6eb1975
commit
39a25b42fe
12
buildjdk.sh
12
buildjdk.sh
@ -41,14 +41,6 @@ if [ "$BUILD_IOS" != "1" ]; then
|
||||
ar cru dummy_libs/libpthread.a
|
||||
ar cru dummy_libs/libthread_db.a
|
||||
else
|
||||
wget https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
|
||||
tar xvf libffi-3.4.2.tar.gz
|
||||
cd libffi-3.4.2
|
||||
python generate-darwin-source-and-headers.py --only-ios
|
||||
xcodebuild -arch arm64
|
||||
cd build_iphoneos-arm64
|
||||
make prefix=`pwd` install
|
||||
|
||||
ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/
|
||||
platform_args="--with-toolchain-type=clang"
|
||||
# --disable-precompiled-headers
|
||||
@ -63,6 +55,8 @@ fi
|
||||
# fix building libjawt
|
||||
ln -s -f $CUPS_DIR/cups $ANDROID_INCLUDE/
|
||||
|
||||
LIBFFI_DIR=libffi-3.4.2/build_iphoneos-arm64
|
||||
|
||||
cd openjdk
|
||||
#rm -rf build
|
||||
|
||||
@ -83,6 +77,8 @@ bash ./configure \
|
||||
--with-fontconfig-include=$ANDROID_INCLUDE \
|
||||
--with-freetype-lib=$FREETYPE_DIR/lib \
|
||||
--with-freetype-include=$FREETYPE_DIR/include/freetype2 \
|
||||
--with-libffi-include=$LIBFFI_DIR/include \
|
||||
--with-libffi-lib=$LIBFFI_DIR/lib \
|
||||
$AUTOCONF_x11arg $AUTOCONF_EXTRA_ARGS \
|
||||
--x-libraries=/usr/lib \
|
||||
$platform_args || \
|
||||
|
10
buildlibs.sh
10
buildlibs.sh
@ -6,10 +6,16 @@ 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
|
||||
LDFLAGS=-"arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0"
|
||||
|
||||
cd libffi-3.4.2
|
||||
python generate-darwin-source-and-headers.py --only-ios
|
||||
xcodebuild -arch arm64
|
||||
cd build_iphoneos-arm64
|
||||
make prefix=`pwd` install
|
||||
|
||||
./configure \
|
||||
--host=$TARGET \
|
||||
--prefix=${PWD}/build_android-${TARGET_SHORT} \
|
||||
|
@ -6,6 +6,10 @@ set -e
|
||||
|
||||
wget https://downloads.sourceforge.net/project/freetype/freetype2/$BUILD_FREETYPE_VERSION/freetype-$BUILD_FREETYPE_VERSION.tar.gz
|
||||
tar xf freetype-$BUILD_FREETYPE_VERSION.tar.gz
|
||||
|
||||
wget https://github.com/apple/cups/releases/download/v2.2.4/cups-2.2.4-source.tar.gz
|
||||
tar xf cups-2.2.4-source.tar.gz
|
||||
rm cups-2.2.4-source.tar.gz freetype-$BUILD_FREETYPE_VERSION.tar.gz
|
||||
|
||||
wget https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
|
||||
tar xvf libffi-3.4.2.tar.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user