[Mesa-dev] [PATCH 09/11] android: dri: correctly set HAVE_LIBDRM

Chih-Wei Huang cwhuang at linux.org.tw
Wed Jul 8 20:24:27 PDT 2015


Emil Velikov 於 西元2015年07月09日 01:07 寫道:
> Set the macro if we're not building swrast alone.
> 
> Cc: Chih-Wei Huang <cwhuang at linux.org.tw>
> Cc: Eric Anholt <eric at anholt.net>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>   src/gallium/targets/dri/Android.mk | 8 +++-----
>   1 file changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/src/gallium/targets/dri/Android.mk b/src/gallium/targets/dri/Android.mk
> index 5ba129b..bccc91a 100644
> --- a/src/gallium/targets/dri/Android.mk
> +++ b/src/gallium/targets/dri/Android.mk
> @@ -35,17 +35,15 @@ endif
>   
>   LOCAL_SRC_FILES := target.c
>   
> -LOCAL_CFLAGS := -DDRI_TARGET -DHAVE_LIBDRM
> +LOCAL_CFLAGS := -DDRI_TARGET
>   
>   LOCAL_SHARED_LIBRARIES := \
>   	libdl \
>   	libglapi \
>   	libexpat \
>   
> -# swrast only?
> -ifeq ($(MESA_GPU_DRIVERS),swrast)
> -LOCAL_CFLAGS += -D__NOT_HAVE_DRM_H
> -else
> +ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),)
> +LOCAL_CFLAGS += -DHAVE_LIBDRM
>   LOCAL_SHARED_LIBRARIES += libdrm
>   endif

Looks good to me.

Reviewed-by: Chih-Wei Huang <cwhuang at linux.org.tw>





More information about the mesa-dev mailing list