Added CCACHE support for OpenSSL builds.

This commit is contained in:
Armin Novak 2017-01-25 15:19:31 +01:00
parent a14892773c
commit 8b6b4961a6
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,10 @@ if [ -z $NDK_TARGET ]; then
NDK_TARGET=21 NDK_TARGET=21
fi fi
if [ -z $CCACHE ]; then
CCACHE=$(which ccache)
fi
if [ -z $ANDROID_NDK ]; then if [ -z $ANDROID_NDK ]; then
ANDROID_NDK="missing" ANDROID_NDK="missing"
fi fi

View File

@ -30,7 +30,7 @@ function build {
common_run export CROSS_SYSROOT=$ANDROID_NDK/platforms/android-$NDK_TARGET/$PLATFORM_PREFIX common_run export CROSS_SYSROOT=$ANDROID_NDK/platforms/android-$NDK_TARGET/$PLATFORM_PREFIX
common_run export ANDROID_DEV=$ANDROID_NDK/platforms/android-$NDK_TARGET/$PLATFORM_PREFIX/usr common_run export ANDROID_DEV=$ANDROID_NDK/platforms/android-$NDK_TARGET/$PLATFORM_PREFIX/usr
common_run export CROSS_COMPILE=$ARCH_PREFIX common_run export CROSS_COMPILE="$CCACHE $ARCH_PREFIX"
common_run export PATH=$ANDROID_NDK/toolchains/$TOOLCHAIN_PREFIX$COMPILER/prebuilt/$HOST_PLATFORM/bin/:$ORG_PATH common_run export PATH=$ANDROID_NDK/toolchains/$TOOLCHAIN_PREFIX$COMPILER/prebuilt/$HOST_PLATFORM/bin/:$ORG_PATH
echo "CONFIG=$CONFIG" echo "CONFIG=$CONFIG"