[Mesa-dev] [PATCH] automake: egl: Android: Add libEGL dependencies

Tapani Pälli tapani.palli at intel.com
Fri Aug 26 07:50:30 UTC 2016


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

On 05/24/2016 08:39 AM, Nicolas Boichat wrote:
> platform_android.c needs to link with cutils, hardware, and sync
> libraries, as well as drm_gralloc libs.
>
> Also add appropriate tests in configure.ac.
>
> Signed-off-by: Nicolas Boichat <drinkcat at google.com>
> ---
>  configure.ac        | 6 ++++++
>  src/egl/Makefile.am | 3 +++
>  2 files changed, 9 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 47c138a..1228b9d 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1993,6 +1993,12 @@ for plat in $egl_platforms; do
>  		;;
>
>  	android)
> +		AC_CHECK_LIB([cutils],[__android_log_print],[],
> +			[AC_MSG_ERROR([cutils library not found])])
> +		AC_CHECK_LIB([hardware],[hw_get_module],[],
> +			[AC_MSG_ERROR([hardware library not found])])
> +		AC_CHECK_LIB([sync],[sync_wait],[],
> +			[AC_MSG_ERROR([sync library not found])])
>  		;;
>
>  	*)
> diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
> index 95ee6cc..2649d3f 100644
> --- a/src/egl/Makefile.am
> +++ b/src/egl/Makefile.am
> @@ -85,6 +85,9 @@ dri2_backend_FILES += drivers/dri2/platform_surfaceless.c
>  endif
>
>  if HAVE_EGL_PLATFORM_ANDROID
> +libEGL_la_LIBADD += -lcutils -lhardware -lsync
> +libEGL_la_LIBADD += $(DRM_GRALLOC_LIBS)
> +AM_CFLAGS += $(DRM_GRALLOC_CFLAGS)
>  AM_CFLAGS += -DHAVE_ANDROID_PLATFORM
>  dri2_backend_FILES += drivers/dri2/platform_android.c
>  endif
>


More information about the mesa-dev mailing list