[Mesa-dev] [PATCH 2/8] mesa: Build libmesa_dricore.so for Android

Chia-I Wu olv at lunarg.com
Fri Aug 26 22:28:02 PDT 2011


On Sat, Aug 27, 2011 at 9:53 AM, Chad Versace <chad at chad-versace.us> wrote:
> libmesa_dricore is analogous to the libdricore built by the Autoconf
> build.
>
> Signed-off-by: Chad Versace <chad at chad-versace.us>
With the visibility change, this patch is

Reviewed-by: Chia-I Wu <olv at lunarg.com>
> ---
>  src/mesa/Android.mk |   35 +++++++++++++++++++++++++++++++++++
>  1 files changed, 35 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/Android.mk b/src/mesa/Android.mk
> index 67808d4..ff7d808 100644
> --- a/src/mesa/Android.mk
> +++ b/src/mesa/Android.mk
> @@ -83,6 +83,41 @@ 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 := SHARED_LIBRARIES
> +
> +LOCAL_CFLAGS := \
> +       $(common_CFLAGS) \
> +       -DFEATURE_GL=1
> +
> +LOCAL_C_INCLUDES := \
> +       $(common_C_INCLUDES)
> +
> +LOCAL_SRC_FILES := \
> +        $(MESA_SOURCES) \
> +        $(MESA_CXX_SOURCES) \
> +        $(common_ASM)
> +
> +LOCAL_WHOLE_STATIC_LIBRARIES := \
> +       libmesa_glsl
> +
> +LOCAL_SHARED_LIBRARIES := \
> +       libglapi
> +
> +include $(LOCAL_PATH)/Android.gen.mk
> +include $(MESA_COMMON_MK)
> +include $(BUILD_SHARED_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