Strip android cmake output

This checks for the STRIPPATH varible in the android path. Only
setting that variable for the android cmake targets. JNI outputs
already stripped shared objects.
This commit is contained in:
Aaron Kling 2018-03-28 22:57:07 -05:00
parent 2ff2d2dd0a
commit 61b11b9431
4 changed files with 5 additions and 0 deletions

View file

@ -396,6 +396,8 @@ build_libretro_generic_makefile() {
if [ "${PLATFORM}" = "windows" ] || [ "${PLATFORM}" = "unix" ]; then
${STRIP:=strip} -s ${OUT}/${CORENAM}
elif [ "${PLATFORM}" = "android" -a ! -z "${STRIPPATH+x}" ]; then
${NDK_ROOT}/${STRIPPATH} -s ${OUT}/${CORENAM}
fi
echo "COPY CMD: cp -v ${OUT}/${ORIGNAM} ${OUTPUT}" 2>&1 | tee -a "$LOGFILE"

View file

@ -14,3 +14,4 @@ CORE_JOB YES
ABI_OVERRIDE arm64-v8a
API_LEVEL 21
CMAKE cmake
STRIPPATH toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip

View file

@ -14,3 +14,4 @@ CORE_JOB YES
ABI_OVERRIDE armeabi-v7a
API_LEVEL 9
CMAKE cmake
STRIPPATH toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip

View file

@ -14,3 +14,4 @@ CORE_JOB YES
ABI_OVERRIDE x86
API_LEVEL 9
CMAKE cmake
STRIPPATH toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-strip