summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2013-12-17 01:17:33 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-19 21:00:16 (GMT)
commit5582d5c707b552ca9a6cf0fa26d4a81b6b9bcd4b (patch)
treed2676e33b311f3dbf06ddd7953396b9df20efad0
parent6386eda4a75d8dd997039e411e55fb41bb2364b9 (diff)
downloadbuildroot-5582d5c707b552ca9a6cf0fa26d4a81b6b9bcd4b.tar.gz
buildroot-5582d5c707b552ca9a6cf0fa26d4a81b6b9bcd4b.tar.bz2
cairo: Build with GLESv2 and VG backends if possible
Signed-Off-By: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/cairo/cairo.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk
index 347bb75..aa03a27 100644
--- a/package/cairo/cairo.mk
+++ b/package/cairo/cairo.mk
@@ -54,6 +54,20 @@ else
CAIRO_CONF_OPT += --disable-directfb
endif
+ifeq ($(BR2_PACKAGE_HAS_OPENGL_ES),y)
+ CAIRO_CONF_OPT += --enable-glesv2
+ CAIRO_DEPENDENCIES += libgles
+else
+ CAIRO_CONF_OPT += --disable-glesv2
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_OPENVG),y)
+ CAIRO_CONF_OPT += --enable-vg
+ CAIRO_DEPENDENCIES += libopenvg
+else
+ CAIRO_CONF_OPT += --disable-vg
+endif
+
ifeq ($(BR2_PACKAGE_XORG7),y)
CAIRO_CONF_OPT += --enable-xlib --enable-xcb --with-x
CAIRO_DEPENDENCIES += xlib_libX11 xlib_libXext