diff options
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-common.inc | 10 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-dri.inc | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-common.inc b/meta/recipes-graphics/mesa/mesa-common.inc index 838ce11c78..1ff08fb53f 100644 --- a/meta/recipes-graphics/mesa/mesa-common.inc +++ b/meta/recipes-graphics/mesa/mesa-common.inc | |||
@@ -28,10 +28,15 @@ EXTRA_OECONF = "--disable-glu \ | |||
28 | --disable-glut \ | 28 | --disable-glut \ |
29 | --enable-shared-glapi" | 29 | --enable-shared-glapi" |
30 | 30 | ||
31 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} egl gles" | 31 | PACKAGECONFIG ??= "egl gles \ |
32 | ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}\ | ||
33 | ${@base_contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}\ | ||
34 | " | ||
32 | 35 | ||
33 | X11_DEPS = "xf86driproto glproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes" | 36 | X11_DEPS = "xf86driproto glproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes" |
34 | PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" | 37 | PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" |
38 | PACKAGECONFIG[wayland] = ",,wayland" | ||
39 | |||
35 | 40 | ||
36 | # Multiple virtual/gl providers being built breaks staging | 41 | # Multiple virtual/gl providers being built breaks staging |
37 | EXCLUDE_FROM_WORLD = "1" | 42 | EXCLUDE_FROM_WORLD = "1" |
@@ -48,6 +53,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | |||
48 | libgles1-mesa libgles1-mesa-dev \ | 53 | libgles1-mesa libgles1-mesa-dev \ |
49 | libgles2-mesa libgles2-mesa-dev \ | 54 | libgles2-mesa libgles2-mesa-dev \ |
50 | libgles3-mesa libgles3-mesa-dev \ | 55 | libgles3-mesa libgles3-mesa-dev \ |
56 | libwayland-egl libwayland-egl-dev \ | ||
51 | " | 57 | " |
52 | 58 | ||
53 | do_install_append () { | 59 | do_install_append () { |
@@ -89,6 +95,7 @@ FILES_libgles2-mesa = "${libdir}/libGLESv2.so.*" | |||
89 | FILES_libgl-mesa = "${libdir}/libGL.so.*" | 95 | FILES_libgl-mesa = "${libdir}/libGL.so.*" |
90 | FILES_libglapi = "${libdir}/libglapi.so.*" | 96 | FILES_libglapi = "${libdir}/libglapi.so.*" |
91 | FILES_libosmesa = "${libdir}/libOSMesa.so.*" | 97 | FILES_libosmesa = "${libdir}/libOSMesa.so.*" |
98 | FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*" | ||
92 | 99 | ||
93 | FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc" | 100 | FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc" |
94 | FILES_libdricore-dev = "${libdir}/libdricore*.*" | 101 | FILES_libdricore-dev = "${libdir}/libdricore*.*" |
@@ -100,5 +107,6 @@ FILES_libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/p | |||
100 | FILES_libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" | 107 | FILES_libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" |
101 | FILES_libgles3-mesa-dev = "${includedir}/GLES3" | 108 | FILES_libgles3-mesa-dev = "${includedir}/GLES3" |
102 | FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h ${libdir}/pkgconfig/osmesa.pc" | 109 | FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h ${libdir}/pkgconfig/osmesa.pc" |
110 | FILES_libwayland-egl-dev = "${libdir}/pkgconfig/wayland-egl.pc ${libdir}/libwayland-egl.*" | ||
103 | 111 | ||
104 | FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/*" | 112 | FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/*" |
diff --git a/meta/recipes-graphics/mesa/mesa-dri.inc b/meta/recipes-graphics/mesa/mesa-dri.inc index 07544abd45..1f6ec78c68 100644 --- a/meta/recipes-graphics/mesa/mesa-dri.inc +++ b/meta/recipes-graphics/mesa/mesa-dri.inc | |||
@@ -13,6 +13,7 @@ PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable- | |||
13 | 13 | ||
14 | EGL_PLATFORMS = "drm" | 14 | EGL_PLATFORMS = "drm" |
15 | EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'x11', ',x11', '', d)}" | 15 | EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'x11', ',x11', '', d)}" |
16 | EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'wayland', ',wayland', '', d)}" | ||
16 | PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl" | 17 | PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl" |
17 | 18 | ||
18 | python populate_packages_prepend() { | 19 | python populate_packages_prepend() { |