cairo: Build with GLESv2 and VG backends if possible
authorPaul Cercueil <paul@crapouillou.net>
Tue, 17 Dec 2013 01:17:33 +0000 (02:17 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 19 Dec 2013 21:00:16 +0000 (22:00 +0100)
Signed-Off-By: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cairo/cairo.mk

index 347bb75250deeb214f897f8cc6088bd766099fd1..aa03a27858323433dde171c1321b662a243b8b10 100644 (file)
@@ -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