File tree 4 files changed +7
-25
lines changed
4 files changed +7
-25
lines changed Original file line number Diff line number Diff line change 44
44
platform_args=" --with-toolchain-type=clang SDKNAME=iphoneos"
45
45
# --disable-precompiled-headers
46
46
AUTOCONF_x11arg=" --with-x=/opt/X11/include/X11 --prefix=/usr/lib"
47
- sameflags=" -arch arm64 -isysroot $thesysroot -miphoneos-version-min=14.0 - DHEADLESS=1 -I$PWD /ios-missing-include -Wno-implicit-function-declaration"
47
+ sameflags=" -arch arm64 -DHEADLESS=1 -I$PWD /ios-missing-include -Wno-implicit-function-declaration"
48
48
export CFLAGS+=" $sameflags "
49
- export CXXFLAGS= " $sameflags "
50
- export LDFLAGS+= " -miphoneos-version-min=14.0 "
49
+ export LDFLAGS+= " -arch arm64 "
50
+ export BUILD_SYSROOT_CFLAGS= " -isysroot ${themacsysroot} "
51
51
52
52
HOMEBREW_NO_AUTO_UPDATE=1 brew install ldid xquartz
53
53
fi
Original file line number Diff line number Diff line change @@ -5,25 +5,7 @@ cd freetype-$BUILD_FREETYPE_VERSION
5
5
6
6
echo " Building Freetype"
7
7
8
- if [[ " $BUILD_IOS " == " 1" ]]; then
9
- LDFLAGS=-" arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0"
10
-
11
- export CC=$thecc
12
- export CXX=$thecxx
13
- ./configure \
14
- --host=$TARGET \
15
- --prefix=${PWD} /build_android-${TARGET_SHORT} \
16
- --enable-shared=no --enable-static=yes \
17
- --without-zlib \
18
- --with-brotli=no \
19
- --with-png=no \
20
- --with-harfbuzz=no \
21
- " 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 " \
22
- AR=/usr/bin/ar \
23
- " LDFLAGS=$LDFLAGS " \
24
- || error_code=$?
25
- namefreetype=build_android-${TARGET_SHORT} /lib/libfreetype
26
- else
8
+ if [[ " $BUILD_IOS " != " 1" ]]; then
27
9
export PATH=$TOOLCHAIN /bin:$PATH
28
10
./configure \
29
11
--host=$TARGET \
33
15
--with-png=no \
34
16
--with-harfbuzz=no $EXTRA_ARGS \
35
17
|| error_code=$?
36
- fi
37
18
if [[ " $error_code " -ne 0 ]]; then
38
19
echo " \n\nCONFIGURE ERROR $error_code , config.log:"
39
20
cat config.log
@@ -46,3 +27,4 @@ make install
46
27
if [[ -f " ${namefreetype} .a" ]]; then
47
28
clang -fPIC -shared $LDFLAGS -lbz2 -Wl,-all_load ${namefreetype} .a -o ${namefreetype} .dylib
48
29
fi
30
+ fi
Original file line number Diff line number Diff line change 1
- exec $thecc -arch arm64 -isysroot $thesysroot "$@"
1
+ exec $thecc -arch arm64 -isysroot $thesysroot -miphoneos-version-min=14.0 "$@"
Original file line number Diff line number Diff line change 1
- exec $thecxx -arch arm64 -isysroot $thesysroot "$@"
1
+ exec $thecxx -arch arm64 -isysroot $thesysroot -miphoneos-version-min=14.0 "$@"
You can’t perform that action at this time.
0 commit comments