[Mesa-dev] [PATCH 2/2] android: libsync is needed on Android 4.2+ for any driver

Tapani Pälli tapani.palli at intel.com
Mon May 6 02:57:03 PDT 2013


On 05/03/2013 10:44 AM, Chia-I Wu wrote:
> Add libsync not only for MESA_BUILD_CLASSIC, but also for MESA_BUILD_GALLIUM.
>
> Signed-off-by: Chia-I Wu <olvaffe at gmail.com>

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

> ---
>   src/egl/main/Android.mk |    8 +++-----
>   1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk
> index b2cbe05..30e5ea7 100644
> --- a/src/egl/main/Android.mk
> +++ b/src/egl/main/Android.mk
> @@ -68,6 +68,9 @@ LOCAL_SHARED_LIBRARIES := \
>   	libcutils \
>   	libgralloc_drm \
>   
> +ifeq ($(shell echo "$(MESA_ANDROID_VERSION) >= 4.2" | bc),1)
> +LOCAL_SHARED_LIBRARIES += libsync
> +endif
>   
>   # add libdrm if there are hardware drivers
>   ifneq ($(MESA_GPU_DRIVERS),swrast)
> @@ -81,11 +84,6 @@ LOCAL_STATIC_LIBRARIES += libmesa_egl_dri2
>   # require i915_dri and/or i965_dri
>   LOCAL_REQUIRED_MODULES += \
>   	$(addsuffix _dri, $(filter i915 i965, $(MESA_GPU_DRIVERS)))
> -
> -ifeq ($(shell echo "$(MESA_ANDROID_VERSION) >= 4.2" | bc),1)
> -    LOCAL_SHARED_LIBRARIES += \
> -        libsync
> -endif
>   endif # MESA_BUILD_CLASSIC
>   
>   ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)



More information about the mesa-dev mailing list