summaryrefslogtreecommitdiffstats
path: root/src/loader/Android.mk
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-07-07 15:42:15 +0100
committerEmil Velikov <[email protected]>2015-07-22 16:35:25 +0100
commit1c328b8aa79b0644160082b7e9e02df18ab3ca48 (patch)
tree7e3c057ea39b0065bf0d45eefc767654ef99243c /src/loader/Android.mk
parent72c784347bf66b61385cb57bb666033e5234ba69 (diff)
loader: use HAVE_LIBDRM instead of ! __NOT_HAVE_DRM_H
Double negatives in English language are normally avoided, plus the former seems cleaner and more consistent. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/loader/Android.mk')
-rw-r--r--src/loader/Android.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/loader/Android.mk b/src/loader/Android.mk
index 92d9fd20d3c..869056564ce 100644
--- a/src/loader/Android.mk
+++ b/src/loader/Android.mk
@@ -33,10 +33,8 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
$(LOADER_C_FILES)
-# 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