Reviewed-by: Tapani Pälli <tapani.pa...@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 <drink...@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
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev