diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-02-27 14:02:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 11:17:45 +0000 |
commit | 254bfb107134702d8d1e0bfbdd1b011212e8c291 (patch) | |
tree | 188ddf3ea786bc1b913904330e4f95125bd6def4 /meta/recipes-gnome | |
parent | dec5650bc292aa3c4a0a04ace72d2cf762e9620b (diff) | |
download | poky-254bfb107134702d8d1e0bfbdd1b011212e8c291.tar.gz |
recipes: Make use of the new bb.utils.filter() function
(From OE-Core rev: 0a1427bf9aeeda6bee2cc0af8da4ea5fd90aef6f)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r-- | meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb | 2 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+.inc | 4 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3.inc | 6 |
3 files changed, 4 insertions, 8 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb index 98e5090bc8..a188f5473b 100644 --- a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb +++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.36.1.bb | |||
@@ -29,7 +29,7 @@ LIBV = "2.10.0" | |||
29 | GDK_PIXBUF_LOADERS ?= "png jpeg" | 29 | GDK_PIXBUF_LOADERS ?= "png jpeg" |
30 | 30 | ||
31 | PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS}" | 31 | PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS}" |
32 | PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${GDK_PIXBUF_LOADERS}" | 32 | PACKAGECONFIG_linuxstdbase = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${GDK_PIXBUF_LOADERS}" |
33 | PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}" | 33 | PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}" |
34 | 34 | ||
35 | PACKAGECONFIG[png] = "--with-libpng,--without-libpng,libpng" | 35 | PACKAGECONFIG[png] = "--with-libpng,--without-libpng,libpng" |
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc index b9b4721780..558bc485ad 100644 --- a/meta/recipes-gnome/gtk+/gtk+.inc +++ b/meta/recipes-gnome/gtk+/gtk+.inc | |||
@@ -21,9 +21,7 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender | |||
21 | DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native \ | 21 | DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native \ |
22 | cairo gdk-pixbuf" | 22 | cairo gdk-pixbuf" |
23 | 23 | ||
24 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ | 24 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'directfb x11', d)}" |
25 | ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ | ||
26 | " | ||
27 | 25 | ||
28 | PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}" | 26 | PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}" |
29 | # without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE | 27 | # without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE |
diff --git a/meta/recipes-gnome/gtk+/gtk+3.inc b/meta/recipes-gnome/gtk+/gtk+3.inc index 9c104e28c0..27da844fea 100644 --- a/meta/recipes-gnome/gtk+/gtk+3.inc +++ b/meta/recipes-gnome/gtk+/gtk+3.inc | |||
@@ -40,10 +40,8 @@ do_compile_prepend() { | |||
40 | export GIR_EXTRA_LIBS_PATH="${B}/gdk/.libs" | 40 | export GIR_EXTRA_LIBS_PATH="${B}/gdk/.libs" |
41 | } | 41 | } |
42 | 42 | ||
43 | PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "x11", "", d)} \ | 43 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl wayland x11', d)} \ |
44 | ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl", "", d)} \ | 44 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'glx', '', d)}" |
45 | ${@bb.utils.contains("DISTRO_FEATURES", "opengl x11", "glx", "", d)} \ | ||
46 | ${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)}" | ||
47 | 45 | ||
48 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,at-spi2-atk fontconfig libx11 libxext libxcursor libxi libxdamage libxrandr libxrender libxcomposite libxfixes" | 46 | PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,at-spi2-atk fontconfig libx11 libxext libxcursor libxi libxdamage libxrandr libxrender libxcomposite libxfixes" |
49 | # this is provided by oe-core patch that removes epoxy/gl dependency from a X11 build | 47 | # this is provided by oe-core patch that removes epoxy/gl dependency from a X11 build |