summaryrefslogtreecommitdiff
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-07-07 16:04:27 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-07-22 16:35:25 +0100
commitfe1503fe38602c91e030ca206cb392a26a343f91 (patch)
tree451aac8d59a49acbe9b450bd7155f94fe727c9f9 /src/gallium/targets
parent787995bffb52d955f3046618286d831b76b72119 (diff)
android: dri: correctly set HAVE_LIBDRM
Set the macro if we're not building swrast alone. Cc: Eric Anholt <eric@anholt.net> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/dri/Android.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/targets/dri/Android.mk b/src/gallium/targets/dri/Android.mk
index 5ba129b796..bccc91aa52 100644
--- a/src/gallium/targets/dri/Android.mk
+++ b/src/gallium/targets/dri/Android.mk
@@ -35,17 +35,15 @@ endif
LOCAL_SRC_FILES := target.c
-LOCAL_CFLAGS := -DDRI_TARGET -DHAVE_LIBDRM
+LOCAL_CFLAGS := -DDRI_TARGET
LOCAL_SHARED_LIBRARIES := \
libdl \
libglapi \
libexpat \
-# swrast only?
-ifeq ($(MESA_GPU_DRIVERS),swrast)
-LOCAL_CFLAGS += -D__NOT_HAVE_DRM_H
-else
+ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DHAVE_LIBDRM
LOCAL_SHARED_LIBRARIES += libdrm
endif