summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad@chad-versace.us>2011-08-26 13:29:20 -0700
committerChad Versace <chad@chad-versace.us>2011-08-30 09:32:04 -0700
commit3758173149325a16d2044be01a70ad3b4fa7260d (patch)
tree3cc3bdc21492aa76cb54f9f62a57cc173cb17193
parent5d9e242c3e28046e9c8ae1760533f92841d0cfaf (diff)
mesa: Build libmesa_dricore.a for Android
libmesa_dricore.a is analogous to the libmesa.a built by the Autoconf build. Reviewed-by: Chia-I Wu <olv@lunarg.com> Signed-off-by: Chad Versace <chad@chad-versace.us>
-rw-r--r--src/mesa/Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mesa/Android.mk b/src/mesa/Android.mk
index 67808d491a..5f0f4aff90 100644
--- a/src/mesa/Android.mk
+++ b/src/mesa/Android.mk
@@ -83,6 +83,35 @@ include $(BUILD_STATIC_LIBRARY)
endif # MESA_BUILD_GALLIUM
# ---------------------------------------
+# Build libmesa_dricore for DRI modules
+# ---------------------------------------
+
+ifeq ($(strip $(MESA_BUILD_CLASSIC)),true)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_dricore
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+LOCAL_CFLAGS := \
+ $(common_CFLAGS) \
+ -DFEATURE_GL=1
+
+LOCAL_C_INCLUDES := \
+ $(common_C_INCLUDES)
+
+LOCAL_SRC_FILES := \
+ $(MESA_SOURCES) \
+ $(MESA_CXX_SOURCES) \
+ $(common_ASM)
+
+include $(LOCAL_PATH)/Android.gen.mk
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+endif # MESA_BUILD_CLASSIC
+
+# ---------------------------------------
# Build libmesa_glsl_utils
#
# It is used to avoid circular dependency between core mesa and glsl.