From 3758173149325a16d2044be01a70ad3b4fa7260d Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Fri, 26 Aug 2011 13:29:20 -0700 Subject: [PATCH] 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 Signed-off-by: Chad Versace --- src/mesa/Android.mk | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/mesa/Android.mk b/src/mesa/Android.mk index 67808d491ac..5f0f4aff908 100644 --- a/src/mesa/Android.mk +++ b/src/mesa/Android.mk @@ -82,6 +82,35 @@ include $(MESA_COMMON_MK) 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 # -- 2.30.2