From 1b0be7beeb8a86a25c488a8c81806a341a4dfd2c Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Sun, 14 Jul 2024 10:50:19 +0700 Subject: [PATCH] Feat[freetype]: reuse macOS prebuilt library for iOS --- ci_build_ios.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci_build_ios.bash b/ci_build_ios.bash index ca465439b2..d02b3345b1 100644 --- a/ci_build_ios.bash +++ b/ci_build_ios.bash @@ -92,6 +92,12 @@ yes | ant -Dplatform.macos=true \ rm -rf bin/out; mkdir bin/out find $LWJGL_NATIVE -name 'liblwjgl*.dylib' -exec cp {} bin/out/ \; cp $LWJGL_NATIVE/shaderc/libshaderc.dylib bin/out/ +vtool -arch arm64 -set-build-version 2 14.0 16.0 -output bin/out/libfreetype.dylib $LWJGL_NATIVE/freetype/libfreetype.dylib +install_name_tool + -change /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation \ + -change /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics \ + -change /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText /System/Library/Frameworks/CoreText.framework/CoreText \ + bin/out/libfreetype.dylib # Cleanup unused output jar files find bin/RELEASE \( -name '*-natives-*' -o -name '*-sources.jar' \) -delete