diff options
-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/*" |