diff mbox

[2/3] intel-gpu-tools: fix some include path problems on android builds

Message ID 1396011300-11605-3-git-send-email-tim.gore@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

tim.gore@intel.com March 28, 2014, 12:54 p.m. UTC
From: tgore <tim.gore@intel.com>

When building within the android tree (specifically in /external)
the compilation fails due to the wrong versions of some header files
getting picked up. This commit adds some include paths to ensure the
correct headers are found

Signed-off-by: Tim Gore <tim.gore@intel.com>
---
 tests/Android.mk | 3 +++
 tools/Android.mk | 3 +++
 2 files changed, 6 insertions(+)
diff mbox

Patch

diff --git a/tests/Android.mk b/tests/Android.mk
index 3069819..9233b2b 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -17,6 +17,9 @@  define add_test
     # Excessive complaining for established cases. Rely on the Linux version warnings.
     LOCAL_CFLAGS += -Wno-sign-compare
 
+    LOCAL_C_INCLUDES = $(LOCAL_PATH)/../lib
+    LOCAL_C_INCLUDES += ${ANDROID_BUILD_TOP}/external/PRIVATE/drm/include/drm
+
     LOCAL_MODULE := $1
     LOCAL_MODULE_TAGS := optional
 
diff --git a/tools/Android.mk b/tools/Android.mk
index a957ec1..8ca67f4 100644
--- a/tools/Android.mk
+++ b/tools/Android.mk
@@ -18,6 +18,9 @@  define add_tool
     # Excessive complaining for established cases. Rely on the Linux version warnings.
     LOCAL_CFLAGS += -Wno-sign-compare
 
+    LOCAL_C_INCLUDES = $(LOCAL_PATH)/../lib
+    LOCAL_C_INCLUDES += ${ANDROID_BUILD_TOP}/external/PRIVATE/drm/include/drm
+
     LOCAL_MODULE := $1
     LOCAL_MODULE_TAGS := optional