[Mesa-dev] [PATCH 1/5] mesa: Build libmesa_dricore.a for Android

Chia-I Wu olv at lunarg.com
Mon Aug 29 20:50:01 PDT 2011


On Tue, Aug 30, 2011 at 2:50 AM, Chad Versace <chad at chad-versace.us> wrote:
> libmesa_dricore.a is analogous to the libmesa.a built by the Autoconf
> build.
>
> v2
> ----
> - Change libmesa_dricore from a shared library to a static library.
>  I decided to make this change after realizing that libmesa_dricore.so
>  indiscriminately exported all its symbols.
Reviewed-by: Chia-I Wu <olv at lunarg.com>

> CC: Ian Romanick <idr at freedesktop.org>
> CC: Chia-I Wu <olv at lunarg.com>
> Signed-off-by: Chad Versace <chad at chad-versace.us>
> ---
>  src/mesa/Android.mk |   29 +++++++++++++++++++++++++++++
>  1 files changed, 29 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/Android.mk b/src/mesa/Android.mk
> index 67808d4..5f0f4af 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.
> --
> 1.7.6
>
>



-- 
olv at LunarG.com


More information about the mesa-dev mailing list