Module: Mesa Branch: master Commit: dc6665422a8fcfce92b8136310f05351aa0cbd5b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc6665422a8fcfce92b8136310f05351aa0cbd5b
Author: Chad Versace <[email protected]> Date: Thu May 31 19:57:55 2018 -0700 gallium: Fix automake for Android (v2) Chromium OS uses Autotools and pkg-config when building Mesa for Android. The gallium drivers were failing to find the headers and libraries for zlib and Android's libbacktrace. v2: - Don't add a check for zlib.pc. configure.ac already checks for zlib.pc elsewhere. [for tfiga] - Check for backtrace.pc separately from the other Android libs. [for tfiga] Reviewed-by: Tomasz Figa <[email protected]> Reviewed-by: Emil Velikov <[email protected]> --- configure.ac | 3 +++ src/gallium/Automake.inc | 6 ++++++ src/gallium/auxiliary/Makefile.am | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index 502b1787c6..f135d05736 100644 --- a/configure.ac +++ b/configure.ac @@ -1836,6 +1836,9 @@ for plat in $platforms; do android) PKG_CHECK_MODULES([ANDROID], [cutils hardware sync]) + if test -n "$with_gallium_drivers"; then + PKG_CHECK_MODULES([BACKTRACE], [backtrace]) + fi DEFINES="$DEFINES -DHAVE_ANDROID_PLATFORM" ;; diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc index 3e21aa71b5..329c8839e1 100644 --- a/src/gallium/Automake.inc +++ b/src/gallium/Automake.inc @@ -59,6 +59,12 @@ GALLIUM_COMMON_LIB_DEPS += \ $(LIBDRM_LIBS) endif +if HAVE_PLATFORM_ANDROID +GALLIUM_COMMON_LIB_DEPS += \ + $(ANDROID_LIBS) \ + $(BACKTRACE_LIBS) +endif + GALLIUM_WINSYS_CFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/include \ diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am index 6b048b8eeb..0390819877 100644 --- a/src/gallium/auxiliary/Makefile.am +++ b/src/gallium/auxiliary/Makefile.am @@ -21,6 +21,10 @@ libgallium_la_SOURCES = \ $(NIR_SOURCES) \ $(GENERATED_SOURCES) +if HAVE_PLATFORM_ANDROID +libgallium_la_SOURCES += util/u_debug_stack_android.cpp +endif + if HAVE_LIBDRM AM_CFLAGS += \ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
