summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/egl-static/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/targets/egl-static/Android.mk')
-rw-r--r--src/gallium/targets/egl-static/Android.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gallium/targets/egl-static/Android.mk b/src/gallium/targets/egl-static/Android.mk
index 8bdbeda..21b6dc2 100644
--- a/src/gallium/targets/egl-static/Android.mk
+++ b/src/gallium/targets/egl-static/Android.mk
@@ -39,13 +39,20 @@ LOCAL_C_INCLUDES := \
$(GALLIUM_TOP)/state_trackers/vega \
$(GALLIUM_TOP)/state_trackers/egl \
$(MESA_TOP)/src/egl/main \
- $(MESA_TOP)/src/mesa \
- $(DRM_TOP)/include/drm \
- $(DRM_TOP)
+ $(MESA_TOP)/src/mesa
# swrast
LOCAL_CFLAGS += -DGALLIUM_SOFTPIPE
+# swrast only
+ifeq ($(MESA_GPU_DRIVERS),swrast)
+LOCAL_CFLAGS += -D_EGL_NO_DRM
+else
+LOCAL_C_INCLUDES += \
+ $(DRM_TOP)/include/drm \
+ $(DRM_TOP)
+endif
+
ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
LOCAL_CFLAGS += -D_EGL_PIPE_I915=1
endif