From 1b185d157555fc03fddfd15e952bf05ad6dc704f Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 21 Jan 2014 07:20:51 -0800 Subject: [PATCH] use ccache for jni if present --- xwords4/android/XWords4/jni/Android.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xwords4/android/XWords4/jni/Android.mk b/xwords4/android/XWords4/jni/Android.mk index 4e251209a..0dc8af81b 100644 --- a/xwords4/android/XWords4/jni/Android.mk +++ b/xwords4/android/XWords4/jni/Android.mk @@ -89,5 +89,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 :=