summaryrefslogtreecommitdiffstats
path: root/src/egl/main/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/Android.mk')
-rw-r--r--src/egl/main/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk
index 25a7c657676..a2933d7abfd 100644
--- a/src/egl/main/Android.mk
+++ b/src/egl/main/Android.mk
@@ -54,6 +54,9 @@ LOCAL_CFLAGS := \
-D_EGL_DRIVER_SEARCH_DIR=\"/system/lib/egl\" \
-D_EGL_OS_UNIX=1
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2
+endif
ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_GALLIUM
endif