* [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE
@ 2015-06-03 8:38 Robert Yang
2015-06-03 8:38 ` [PATCH 1/2] gtk+/cairo: enable x11 or directfb Robert Yang
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Robert Yang @ 2015-06-03 8:38 UTC (permalink / raw)
To: openembedded-core
Hello,
After the two patches, yocto's world build would be OK without x11 in
DISTRO_FEATURE.
// Robert
The following changes since commit 968973d55d4b33e1a929ed4cdf9387fcaba2d93f:
qt4: unconditionally disable gstreamer 0.10 support in qt webkit (2015-05-30 22:25:12 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/nox11
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/nox11
Robert Yang (2):
gtk+/cairo: enable x11 or directfb
libsdl: depends on libglu when both x11 and opengl
meta/recipes-gnome/gtk+/gtk+.inc | 5 ++---
meta/recipes-graphics/cairo/cairo.inc | 8 ++++++--
meta/recipes-graphics/libsdl/libsdl_1.2.15.bb | 3 ++-
3 files changed, 10 insertions(+), 6 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] gtk+/cairo: enable x11 or directfb
2015-06-03 8:38 [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE Robert Yang
@ 2015-06-03 8:38 ` Robert Yang
2015-06-03 8:38 ` [PATCH 2/2] libsdl: depends on libglu when both x11 and opengl Robert Yang
2015-06-18 7:27 ` [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE Robert Yang
2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2015-06-03 8:38 UTC (permalink / raw)
To: openembedded-core
The gtk+2 requires whether x11 or directfb to build, so we need enable
either of them. The cairo can be built without x11 or directfb, but gtk+
requires cairo, so enable x11 or directfb for cairo, too.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/recipes-gnome/gtk+/gtk+.inc | 5 ++---
meta/recipes-graphics/cairo/cairo.inc | 8 ++++++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
index 1c0558c..fcfb86f 100644
--- a/meta/recipes-gnome/gtk+/gtk+.inc
+++ b/meta/recipes-gnome/gtk+/gtk+.inc
@@ -14,9 +14,8 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender
DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \
cairo gdk-pixbuf"
-PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
- ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
-"
+# Requires x11 or directfb
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', 'directfb', d)}"
PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
# without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE
diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc
index 1e45318..f6474bc 100644
--- a/meta/recipes-graphics/cairo/cairo.inc
+++ b/meta/recipes-graphics/cairo/cairo.inc
@@ -17,8 +17,12 @@ LICENSE_${PN}-perf-utils = "GPLv3+"
X11DEPENDS = "virtual/libx11 libsm libxrender libxext"
DEPENDS = "libpng fontconfig pixman glib-2.0 zlib"
-PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \
- ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
+# Build cairo-xlib or cairo-directfb for gtk+
+PACKAGECONFIG ??= " ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', 'directfb', d)} \
+ "
+
+# No directfb-native, so set PACKAGECONFIG to null when no x11
+PACKAGECONFIG_class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}"
PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] libsdl: depends on libglu when both x11 and opengl
2015-06-03 8:38 [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE Robert Yang
2015-06-03 8:38 ` [PATCH 1/2] gtk+/cairo: enable x11 or directfb Robert Yang
@ 2015-06-03 8:38 ` Robert Yang
2015-06-18 7:27 ` [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE Robert Yang
2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2015-06-03 8:38 UTC (permalink / raw)
To: openembedded-core
The libglu requires both opengl (depends on virtual/libgl) and x11
(needs libGL.so which is provided by mesa when x11 in DISTRO_FEATURES),
so let libsdl depends on libglu when both x11 and opengl in
DISTRO_FEATURES.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/recipes-graphics/libsdl/libsdl_1.2.15.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
index 266bd42..c0d5c6a 100644
--- a/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
+++ b/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
@@ -13,8 +13,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"
PROVIDES = "virtual/libsdl"
DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
- ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl libglu', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxext libxrandr libxrender', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'libglu', '', d)} \
tslib"
DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE
2015-06-03 8:38 [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE Robert Yang
2015-06-03 8:38 ` [PATCH 1/2] gtk+/cairo: enable x11 or directfb Robert Yang
2015-06-03 8:38 ` [PATCH 2/2] libsdl: depends on libglu when both x11 and opengl Robert Yang
@ 2015-06-18 7:27 ` Robert Yang
2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2015-06-18 7:27 UTC (permalink / raw)
To: openembedded-core
Hello,
Any comments on these two patches, please ?
// Robert
On 06/03/2015 04:38 PM, Robert Yang wrote:
> Hello,
>
> After the two patches, yocto's world build would be OK without x11 in
> DISTRO_FEATURE.
>
> // Robert
>
> The following changes since commit 968973d55d4b33e1a929ed4cdf9387fcaba2d93f:
>
> qt4: unconditionally disable gstreamer 0.10 support in qt webkit (2015-05-30 22:25:12 +0100)
>
> are available in the git repository at:
>
> git://git.openembedded.org/openembedded-core-contrib rbt/nox11
> http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/nox11
>
> Robert Yang (2):
> gtk+/cairo: enable x11 or directfb
> libsdl: depends on libglu when both x11 and opengl
>
> meta/recipes-gnome/gtk+/gtk+.inc | 5 ++---
> meta/recipes-graphics/cairo/cairo.inc | 8 ++++++--
> meta/recipes-graphics/libsdl/libsdl_1.2.15.bb | 3 ++-
> 3 files changed, 10 insertions(+), 6 deletions(-)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-18 7:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-03 8:38 [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE Robert Yang
2015-06-03 8:38 ` [PATCH 1/2] gtk+/cairo: enable x11 or directfb Robert Yang
2015-06-03 8:38 ` [PATCH 2/2] libsdl: depends on libglu when both x11 and opengl Robert Yang
2015-06-18 7:27 ` [PATCH 0/2] gtk+/cairo/libsdl: build without x11 in DISTRO_FEATURE Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox