android: loader: use the installed libdrm headers
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Jul 2014 23:18:11 +0000 (00:18 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 12 Aug 2014 23:46:56 +0000 (00:46 +0100)
One step closer to the way we handle automake builds.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/loader/Android.mk

index 6890af47342a61b3ffbec88d1a2659348e457326..1c6fdaeccc66e89f957ab96a2f0a0779d0b70047 100644 (file)
@@ -35,11 +35,9 @@ LOCAL_SRC_FILES := \
 
 # swrast only
 ifeq ($(MESA_GPU_DRIVERS),swrast)
-       LOCAL_CFLAGS += -D__NOT_HAVE_DRM_H
+LOCAL_CFLAGS += -D__NOT_HAVE_DRM_H
 else
-LOCAL_C_INCLUDES += \
-       $(DRM_TOP)/include/drm \
-       $(DRM_TOP)
+LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libdrm
 endif
 
 LOCAL_MODULE := libloader