From ca01a0fbe67a9bd522fe805109222c39cbbb2e7a Mon Sep 17 00:00:00 2001 From: Tran Khanh Duy <40482367+khanhduytran0@users.noreply.github.com> Date: Sun, 13 Sep 2020 16:45:36 +0700 Subject: [PATCH] Not print freetype build log on success --- buildlibs.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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