@@ -20,20 +20,34 @@ function shouldbuild_harfbuzz() {
20
20
21
21
function build_harfbuzz() {
22
22
cd $BUILD_harfbuzz
23
-
24
23
push_arm
25
- # ~ export LDFLAGS="-L$LIBS_PATH"
26
- # ~ export LDSHARED="$LIBLINK"
27
- # try ./configure --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --enable-shared --without-freetype --without-glib
28
- # ~ try ./autogen.sh --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix="$BUILD_PATH/python-install" --without-freetype --without-glib
29
24
try ./configure --without-icu --host=arm-linux-androideabi --prefix=" $BUILD_PATH /python-install" --without-freetype --without-glib
30
25
try make -j5
31
26
pop_arm
32
- try cp -L $BUILD_harfbuzz /src/.libs/libharfbuzz.so $LIBS_PATH
33
27
}
34
28
35
29
# function called after all the compile have been done
36
30
function postbuild_harfbuzz() {
37
- true
31
+ ln -s $BUILD_freetype " $BUILD_PATH /freetype2"
32
+ if [ -f " $BUILD_freetype /objs/.libs/libfreetype.so" ]; then
33
+ echo " freetype found rebuilding harfbuzz with freetype support" ;
34
+ # true
35
+ echo $BUILD_PATH ;
36
+ # build again now that freetype has finished
37
+ cd $BUILD_harfbuzz
38
+ echo $BUILD_freetype ;
39
+ ls $BUILD_freetype ;
40
+
41
+ export LDFLAGS=" -L$BUILD_freetype /objs/.libs/ $LDFLAGS "
42
+ export CFLAGS=" -I$BUILD_freetype /include/ -I$BUILD_freetype / -I$BUILD_PATH /python-install/include/python2.7 $CFLAGS "
43
+ export CPPFLAGS=" -I$BUILD_freetype /include/ -I$BUILD_PATH /python-install/include/python2.7 $CPPFLAGS "
44
+ export CC=" -I$BUILD_freetype /include/ $CC "
45
+ export LDSHARED=" $LIBLINK "
46
+ push_arm
47
+ try ./configure --without-icu --host=arm-linux-androideabi --cross-compile --prefix=" $BUILD_PATH /python-install" --without-glib --libdir=" $BUILD_freetype /objs/.libs/" --includedir=" $BUILD_freetype /include/"
48
+ try make --include-dir=" $BUILD_freetype /include/" # -j5
49
+ pop_arm
50
+ try cp -L $BUILD_harfbuzz /src/.libs/libharfbuzz.so $LIBS_PATH
51
+ fi
38
52
}
39
53
0 commit comments