summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-08-19 17:11:34 +0800
committerChia-I Wu <olv@lunarg.com>2011-08-28 21:56:23 +0800
commit099faeef33a2207731986f02b1fd897d91c764c4 (patch)
tree3cd1db7242cd91328239a8878ebd61052961a577 /Android.mk
parent9779f6f5c143506d71420d78bb51b2fa7c995378 (diff)
android: add support for egl_dri2
Add rules to build egl_dri2 and make it a built-in EGL driver of libGLES_mesa. Reviewed-by: Chad Versace <chad@chad-versace.us>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index ed68aec65ca..bc4b74e30ab 100644
--- a/Android.mk
+++ b/Android.mk
@@ -26,7 +26,8 @@
# classic drivers:
# gallium drivers: swrast i915g nouveau r300g r600g vmwgfx
#
-# The main target is libGLES_mesa. There is no classic drivers yet.
+# The main target is libGLES_mesa. For each classic driver enabled, a DRI
+# module will also be built. DRI modules will be loaded by libGLES_mesa.
MESA_TOP := $(call my-dir)
MESA_COMMON_MK := $(MESA_TOP)/Android.common.mk
@@ -76,6 +77,10 @@ SUBDIRS := \
src/mesa \
src/egl/main
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+SUBDIRS += src/egl/drivers/dri2
+endif
+
ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
SUBDIRS += src/gallium
endif
@@ -107,6 +112,10 @@ ifneq ($(MESA_GPU_DRIVERS),swrast)
LOCAL_SHARED_LIBRARIES += libdrm
endif
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+LOCAL_STATIC_LIBRARIES += libmesa_egl_dri2
+endif
+
ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
gallium_DRIVERS :=