summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/Android.mk
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-07-07 15:57:41 +0100
committerEmil Velikov <[email protected]>2015-07-22 16:35:25 +0100
commit9ab5b644ef64ee23f88a6687cc541ee4e745234a (patch)
treeee48ab8d85d85c8b7511451bc4494b13982d27c6 /src/mesa/drivers/dri/common/Android.mk
parent1c328b8aa79b0644160082b7e9e02df18ab3ca48 (diff)
dri/common: use HAVE_LIBDRM over __NOT_HAVE_DRM_H
See previous commit message for details. Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/Android.mk')
-rw-r--r--src/mesa/drivers/dri/common/Android.mk13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/common/Android.mk b/src/mesa/drivers/dri/common/Android.mk
index 6986f5e8cb4..6e29bafe4d7 100644
--- a/src/mesa/drivers/dri/common/Android.mk
+++ b/src/mesa/drivers/dri/common/Android.mk
@@ -43,10 +43,8 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(LOCAL_PATH) \
$(intermediates)
-# 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
@@ -110,13 +108,6 @@ LOCAL_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_C_INCLUDES := \
$(MESA_DRI_C_INCLUDES)
-# swrast only
-ifeq ($(MESA_GPU_DRIVERS),swrast)
-LOCAL_CFLAGS := -D__NOT_HAVE_DRM_H
-else
-LOCAL_SHARED_LIBRARIES := libdrm
-endif
-
LOCAL_SRC_FILES := $(megadriver_stub_FILES)
include $(MESA_COMMON_MK)