From cee519f80118853fe20264c1cc9ff827d66a621f Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Fri, 24 May 2013 14:47:48 +0300 Subject: [PATCH] In Android.mk: skip if cmake is not present Skip the whole configuration/compilation of apitrace from Android.mk if cmake is not present in the system. --- Android.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Android.mk b/Android.mk index ad742f3..7d1581d 100644 --- a/Android.mk +++ b/Android.mk @@ -7,6 +7,11 @@ # This may work in other than FirefoxOS environments, but has not been tested. # +ifeq ($(shell which cmake),) +$(shell echo "CMake not found, will not compile apitrace" >&2) +else # cmake +$(shell echo "CMake found, will compile apitrace" >&2) + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -77,3 +82,5 @@ $(linked_module): apitrace_private_target $(hide) # apitrace: copy apitrace executable to where the build system expects it $(hide) mkdir -p $(dir $@) $(hide) cp $(MY_APITRACE_BUILD_ROOT_TARGET)/apitrace$(TARGET_EXECUTABLE_SUFFIX) $@ + +endif # cmake -- 2.45.2