summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/Android.mk
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-08-25 21:36:19 +0800
committerChia-I Wu <[email protected]>2011-08-27 18:02:11 +0800
commit09b5f1fd61bfbb5afdaee81687a9c74c70a62b8a (patch)
treee38f04d23943d6a28b5ee0defb2eb50ca4f08fbf /src/gallium/state_trackers/egl/Android.mk
parent534df791878ed90cf7c2e4f14482ff03b7c41e77 (diff)
android: make DRM optional
For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
Diffstat (limited to 'src/gallium/state_trackers/egl/Android.mk')
-rw-r--r--src/gallium/state_trackers/egl/Android.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/egl/Android.mk b/src/gallium/state_trackers/egl/Android.mk
index e459bd4655e..13b013babc4 100644
--- a/src/gallium/state_trackers/egl/Android.mk
+++ b/src/gallium/state_trackers/egl/Android.mk
@@ -45,8 +45,14 @@ LOCAL_CFLAGS := -DHAVE_ANDROID_BACKEND
LOCAL_C_INCLUDES := \
$(GALLIUM_TOP)/state_trackers/egl \
$(GALLIUM_TOP)/winsys/sw \
- $(MESA_TOP)/src/egl/main \
- $(DRM_GRALLOC_TOP)
+ $(MESA_TOP)/src/egl/main
+
+# swrast only
+ifeq ($(MESA_GPU_DRIVERS),swrast)
+LOCAL_CFLAGS += -DANDROID_BACKEND_NO_DRM
+else
+LOCAL_C_INCLUDES += $(DRM_GRALLOC_TOP)
+endif
LOCAL_MODULE := libmesa_st_egl