diff options
author | Ross Burton <ross.burton@intel.com> | 2013-06-20 15:42:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-25 17:44:54 +0100 |
commit | 40ce8cf89b41084c27981a1e3705f2681b56e135 (patch) | |
tree | 4f12436f33f126705a9763e934c728186d959d83 /meta/recipes-graphics/cogl/cogl-1.0.inc | |
parent | d02b5453634e662986e7766871d0bfd3367465d7 (diff) | |
download | poky-40ce8cf89b41084c27981a1e3705f2681b56e135.tar.gz |
cogl: add Wayland support
Add PACKAGECONFIG stanzas for Wayland client and server, and respect the x11 and
wayland DISTRO_FEATURES to enable the relevant backends as appropriate by
default.
(From OE-Core rev: 84ffd212f9ca083301d19b9c7a9720d05c733e5c)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/cogl/cogl-1.0.inc')
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0.inc | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc index c9c6165a88..55eb003f8a 100644 --- a/meta/recipes-graphics/cogl/cogl-1.0.inc +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc | |||
@@ -13,11 +13,12 @@ PACKAGES =+ "${PN}-examples" | |||
13 | AUTOTOOLS_AUXDIR = "${S}/build" | 13 | AUTOTOOLS_AUXDIR = "${S}/build" |
14 | 14 | ||
15 | # Extra DEPENDS for PACKAGECONFIG | 15 | # Extra DEPENDS for PACKAGECONFIG |
16 | EDEPENDS_GL = "virtual/libgl libdrm" | 16 | EDEPENDS_GL = "virtual/libgl libdrm" |
17 | EDEPENDS_GLES2 = "virtual/libgles2" | 17 | EDEPENDS_GLES2 = "virtual/libgles2" |
18 | EDEPENDS_KMS = "libdrm virtual/egl" | 18 | EDEPENDS_KMS = "libdrm virtual/egl" |
19 | EDEPENDS_EGL = "virtual/egl" | 19 | EDEPENDS_EGL = "virtual/egl" |
20 | EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr" | 20 | EDEPENDS_X11 = "virtual/libx11 libxcomposite libxfixes libxi libxrandr" |
21 | EDEPENDS_WAYLAND = "wayland" | ||
21 | 22 | ||
22 | # Extra RDEPENDS for PACKAGECONFIG | 23 | # Extra RDEPENDS for PACKAGECONFIG |
23 | # This has to be explictly listed, because cogl dlopens the backends | 24 | # This has to be explictly listed, because cogl dlopens the backends |
@@ -34,15 +35,22 @@ EXTRA_OECONF += "--disable-introspection \ | |||
34 | PACKAGECONFIG[gl] = "--enable-gl,--disable-gl,${EDEPENDS_GL},${ERDEPENDS_GL}" | 35 | PACKAGECONFIG[gl] = "--enable-gl,--disable-gl,${EDEPENDS_GL},${ERDEPENDS_GL}" |
35 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}" | 36 | PACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,${EDEPENDS_GLES2}, ${ERDEPENDS_GLES2}" |
36 | 37 | ||
37 | # egl backends | 38 | # EGL backends |
38 | PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}" | 39 | PACKAGECONFIG[egl-kms] = "--enable-kms-egl-platform,--disable-kms-egl-platform,${EDEPENDS_KMS}" |
39 | PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform" | 40 | PACKAGECONFIG[egl-null] = "--enable-null-egl-platform,--disable-null-egl-platform" |
40 | PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11}" | 41 | PACKAGECONFIG[egl-x11] = "--enable-xlib-egl-platform,--disable-xlib-egl-platform,${EDEPENDS_X11}" |
42 | PACKAGECONFIG[egl-wayland] = "--enable-wayland-egl-platform,--disable-wayland-egl-platform,${EDEPENDS_WAYLAND}" | ||
41 | 43 | ||
42 | # glx | 44 | # GLX |
43 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11}" | 45 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,${EDEPENDS_GL} ${EDEPENDS_X11}" |
44 | 46 | ||
45 | # Default to GLX | 47 | # Wayland server-side |
46 | PACKAGECONFIG ??= "gl glx" | 48 | PACKAGECONFIG[wayland-server] = "--enable-wayland-egl-server,--disable-wayland-egl-server,${EDEPENDS_WAYLAND}" |
49 | |||
50 | # Respect the DISTRO_FEATURES to pull in GLX or Wayland as appropriate by | ||
51 | # default. | ||
52 | PACKAGECONFIG ??= "gl \ | ||
53 | ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \ | ||
54 | ${@base_contains('DISTRO_FEATURES', 'x11', 'glx', '', d)}" | ||
47 | 55 | ||
48 | FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" | 56 | FILES_${PN}-examples = "${bindir}/* ${datadir}/cogl/examples-data/*" |