diff --git a/buildlibs.sh b/buildlibs.sh index 26f4479..0dd706d 100755 --- a/buildlibs.sh +++ b/buildlibs.sh @@ -6,12 +6,19 @@ export PATH=$ANDROID_DEVKIT/bin:$PATH echo "Building Freetype" cd freetype-2.6.2 -./configure \ +freetype_build_out=`./configure \ --host=aarch64-linux-android \ --prefix=`pwd`/build_android-aarch64 \ --without-zlib \ --with-png=no \ - --with-harfbuzz=no + --with-harfbuzz=no \ +&& \ +make -j4 && \ +make install` || error_code=$? -make -j4 -make install +if [ "${error_code}" -ne 0 ]; then + echo $freetype_build_out + exit $error_code +else + echo "Done build freetype" +fi