From: Uwe Hermann Date: Fri, 31 Oct 2014 17:53:16 +0000 (+0100) Subject: sigrok-cross-android: Strip shared libs to reduce APK size. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f6a6d164c6805b82883ce89c1ca60f84519ccf3b;p=sigrok-util.git sigrok-cross-android: Strip shared libs to reduce APK size. This reduces the APK size from ca. 109MB to ca. 18MB. --- 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