From 6332bbbcbe3f5a69a4ee6e097cdb64e82c35085b Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 10 Feb 2014 18:24:42 -0800 Subject: [PATCH] use ccache --- xwords4/android/XWords4-bt/jni/Android.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xwords4/android/XWords4-bt/jni/Android.mk b/xwords4/android/XWords4-bt/jni/Android.mk index 26595202b..e1cae54a1 100644 --- a/xwords4/android/XWords4-bt/jni/Android.mk +++ b/xwords4/android/XWords4-bt/jni/Android.mk @@ -90,5 +90,10 @@ LOCAL_LDLIBS := -L${SYSROOT}/usr/lib -llog -lz include $(BUILD_SHARED_LIBRARY) +ifneq ($(shell which ccache),) + TARGET_CC = ccache $(TOOLCHAIN_PREFIX)gcc + TARGET_CXX = ccache $(TOOLCHAIN_PREFIX)g++ +endif + COMMON_SRC_FILES := COMMON_PATH :=