summaryrefslogtreecommitdiff
path: root/lib/Android.mk
diff options
context:
space:
mode:
authorTim Gore <tim.gore@intel.com>2014-07-24 17:38:22 +0100
committerThomas Wood <thomas.wood@intel.com>2014-07-25 14:46:51 +0100
commit57bd86068a319b218796d0bea92258b44ee143a0 (patch)
treec37f9322d2f0432671f1556271bcf51fc4eacad0 /lib/Android.mk
parent8408e00e623b52f18ad0795122593741197fa2f4 (diff)
intel-gpu-tools: fix version.h creation in android
commit 743dc7997aa9f5210055896940d87c88983dcda6 breaks the build under Android because version.h is not created. This happens because the android make executes from the ANDROID_BUILD_TOP directory rather than from the directory containing the source files, so we need to differentiate between Android and linux builds. This is V2 of this patch based on Thomas Wood's suggestion. Signed-off-by: Tim Gore <tim.gore@intel.com> [Thomas: Fix distcheck issues] Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/Android.mk')
-rw-r--r--lib/Android.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Android.mk b/lib/Android.mk
index 6f444a08..5739c80a 100644
--- a/lib/Android.mk
+++ b/lib/Android.mk
@@ -1,6 +1,7 @@
LOCAL_PATH := $(call my-dir)
GPU_TOOLS_PATH := $(LOCAL_PATH)/..
+IGT_LIB_PATH := $(LOCAL_PATH)
# FIXME: autogenerate this info #
$(GPU_TOOLS_PATH)/config.h:
@@ -13,7 +14,7 @@ include $(LOCAL_PATH)/Makefile.sources
include $(CLEAR_VARS)
LOCAL_GENERATED_SOURCES := \
- $(GPU_TOOLS_PATH)/lib/version.h \
+ $(IGT_LIB_PATH)/version.h \
$(GPU_TOOLS_PATH)/config.h
LOCAL_C_INCLUDES += \