android: bring in i915_dri and i965_dri automatically
authorChia-I Wu <olv@lunarg.com>
Fri, 25 Nov 2011 12:44:12 +0000 (20:44 +0800)
committerChia-I Wu <olv@lunarg.com>
Sat, 26 Nov 2011 03:42:08 +0000 (11:42 +0800)
Add i915_dri and i965_dri to libGLES_mesa's LOCAL_REQUIRED_MODULES when
enabled.

src/egl/main/Android.mk

index c9e0729d80706b9aaaf8510be36540921fc8fd05..d96da228aa7a109f2106d50dff056e894303e037 100644 (file)
@@ -75,6 +75,10 @@ endif
 ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
 LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2
 LOCAL_STATIC_LIBRARIES += libmesa_egl_dri2
+
+# require i915_dri and/or i965_dri
+LOCAL_REQUIRED_MODULES += \
+       $(addsuffix _dri, $(filter i915 i965, $(MESA_GPU_DRIVERS)))
 endif
 
 ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)