Added CCACHE support for OpenSSL builds.
This commit is contained in:
parent
a14892773c
commit
8b6b4961a6
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user