It's possible to build Mesa for Android using the traditional
autotools workflow.  To enable this, let's add the required
pkg-config checks and link against them.
---
 configure.ac        | 3 +++
 src/egl/Makefile.am | 1 +
 2 files changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 3f21cd5..f85538b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2059,6 +2059,9 @@ for plat in $egl_platforms; do
                ;;
 
        android)
+               PKG_CHECK_MODULES([CUTILS], [cutils])
+               PKG_CHECK_MODULES([HARDWARE], [hardware])
+               PKG_CHECK_MODULES([SYNC], [sync])
                ;;
 
        *)
diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
index 304b0d3..e2f3f70 100644
--- a/src/egl/Makefile.am
+++ b/src/egl/Makefile.am
@@ -85,6 +85,7 @@ dri2_backend_FILES += drivers/dri2/platform_surfaceless.c
 endif
 
 if HAVE_EGL_PLATFORM_ANDROID
+libEGL_la_LIBADD += $(SYNC_LIBS) $(HARDWARE_LIBS) $(CUTILS_LIBS)
 AM_CFLAGS += -DHAVE_ANDROID_PLATFORM
 dri2_backend_FILES += drivers/dri2/platform_android.c
 endif
-- 
2.6.6

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to