@@ -21,11 +21,11 @@ function shouldbuild_harfbuzz() {
2121function build_harfbuzz() {
2222 cd $BUILD_harfbuzz
2323 push_arm
24- export CFLAGS=" $CFLAGS -I$BUILD_freetype /include"
25- export LDFLAGS=" $LDFLAGS -L$LIBS_PATH "
26- # export LDSHARED="$LIBLINK"
24+ export CFLAGS=" $CFLAGS -I$BUILD_freetype /include"
25+ export LDFLAGS=" $LDFLAGS -L$LIBS_PATH "
26+ # export LDSHARED="$LIBLINK"
2727 # try ./autogen.sh
28- try ./configure --build=i686-pc-linux-gnu --without-icu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install" --without-freetype --without-glib
28+ try ./configure --build=i686-pc-linux-gnu --without-icu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install" --without-freetype --without-glib --enable-shared
2929 try make -j5
3030 pop_arm
3131 try cp -L $BUILD_harfbuzz /src/.libs/libharfbuzz.so $LIBS_PATH
@@ -40,12 +40,26 @@ function postbuild_harfbuzz() {
4040 export CFLAGS=" $CFLAGS -I$BUILD_freetype /include"
4141 # export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
4242 # export LDSHARED="$LIBLINK"
43- try ./configure --build=i686-pc-linux-gnu --without-icu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install" --without-glib
43+ try ./configure --build=i686-pc-linux-gnu --without-icu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install" --without-glib --enable-shared
4444 try make -j5 -nostdinc
4545 pop_arm
4646 echo $LIBS_PATH
4747 ls $BUILD_harfbuzz /src/.libs
4848 try cp -L $BUILD_harfbuzz /src/.libs/libharfbuzz.so $LIBS_PATH
49+
50+ cd $BUILD_freetype
51+ push_arm
52+ export HARFBUZZ_CFLAGS=" -I$BUILD_harfbuzz /src/"
53+ export HARFBUZZ_LIBS=" -L$BUILD_harfbuzz /src/.libs/"
54+ try ./configure --host=arm-linux-androideabi --prefix=$BUILD_freetype --without-zlib --with-png=no --with-harfbuzz=yes --enable-shared
55+
56+ # -nostdinc is breaking but we probably want this
57+ try make -j5
58+ pop_arm
59+
60+ try cp $BUILD_freetype /objs/.libs/libfreetype.so $LIBS_PATH
61+
62+
4963 fi
5064}
5165
0 commit comments