From f6a6d164c6805b82883ce89c1ca60f84519ccf3b Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 31 Oct 2014 18:53:16 +0100 Subject: [PATCH] sigrok-cross-android: Strip shared libs to reduce APK size. This reduces the APK size from ca. 109MB to ca. 18MB. --- cross-compile/android/sigrok-cross-android | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index 2bc0eb2..a37f262 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -370,11 +370,16 @@ make $PARALLEL V=1 make install cd .. +# Strip all shared libs to reduce size. +find $PREFIX -iname "*.so" -exec ${TOOLCHAIN_TRIPLET}-strip -S {} \; + # PulseView $GIT_CLONE git://sigrok.org/pulseview cd pulseview cmake $CM -DANDROID_STL_PATH=${ANDROID_NDK}/sources/cxx-stl . make $PARALLEL VERBOSE=1 +make install +${TOOLCHAIN_TRIPLET}-strip -S libs/$TARGET_ARCH/libpulseview.so cd android "${ANDROID_SDK}/tools/android" update project -p . -t android-14 -n PulseView ant debug -- 2.30.2