]> git.cworth.org Git - apitrace/commitdiff
In Android.mk: skip if cmake is not present
authorVasil Dimov <vd@FreeBSD.org>
Fri, 24 May 2013 11:47:48 +0000 (14:47 +0300)
committerVasil Dimov <vd@FreeBSD.org>
Fri, 24 May 2013 11:47:48 +0000 (14:47 +0300)
Skip the whole configuration/compilation of apitrace from Android.mk
if cmake is not present in the system.

Android.mk

index ad742f3d3f32fbb59b31e086472ae7a80317051c..7d1581d41abeca442822e50e872c093a656245fd 100644 (file)
@@ -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