diff options
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 7d602b10e6..c68461a510 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
| @@ -231,17 +231,10 @@ CFLAGS:append:armv6 = " -DMISSING_64BIT_ATOMICS" | |||
| 231 | # Remove the mesa dependency on mesa-dev, as mesa is empty | 231 | # Remove the mesa dependency on mesa-dev, as mesa is empty |
| 232 | DEV_PKG_DEPENDENCY = "" | 232 | DEV_PKG_DEPENDENCY = "" |
| 233 | 233 | ||
| 234 | # Khronos documentation says that include/GLES2/gl2ext.h can be used for | ||
| 235 | # OpenGL ES 3 specification as well as for OpenGL ES 2. | ||
| 236 | # There can be applications including GLES2/gl2ext.h instead of GLES3/gl3ext.h | ||
| 237 | # meaning we should probably bring in GLES2/gl2ext.h if someone asks for | ||
| 238 | # development package of libgles3. | ||
| 239 | RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev" | ||
| 240 | |||
| 241 | # GLES2 and GLES3 implementations are packaged in a single library in libgles2-mesa. | 234 | # GLES2 and GLES3 implementations are packaged in a single library in libgles2-mesa. |
| 242 | # Add a dependency so the GLES3 dev package is associated with its implementation. | 235 | # Add a dependency so the GLES3 dev package is associated with its implementation. |
| 243 | RDEPENDS:libgles2-mesa += "libgles3-mesa" | 236 | RPROVIDES:libgles2-mesa += "libgles3-mesa" |
| 244 | ALLOW_EMPTY:libgles3-mesa = "1" | 237 | RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev" |
| 245 | 238 | ||
| 246 | RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools spirv-llvm-translator', '', d)}" | 239 | RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools spirv-llvm-translator', '', d)}" |
| 247 | 240 | ||
| @@ -253,7 +246,6 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | |||
| 253 | libgbm libgbm-dev \ | 246 | libgbm libgbm-dev \ |
| 254 | libgles1-mesa libgles1-mesa-dev \ | 247 | libgles1-mesa libgles1-mesa-dev \ |
| 255 | libgles2-mesa libgles2-mesa-dev \ | 248 | libgles2-mesa libgles2-mesa-dev \ |
| 256 | libgles3-mesa libgles3-mesa-dev \ | ||
| 257 | libopencl-mesa libopencl-mesa-dev \ | 249 | libopencl-mesa libopencl-mesa-dev \ |
| 258 | libxatracker libxatracker-dev \ | 250 | libxatracker libxatracker-dev \ |
| 259 | mesa-megadriver mesa-vulkan-drivers \ | 251 | mesa-megadriver mesa-vulkan-drivers \ |
| @@ -278,8 +270,7 @@ python __anonymous() { | |||
| 278 | ("opengl", "libgl", "libgl1"), | 270 | ("opengl", "libgl", "libgl1"), |
| 279 | ("glvnd", "libglx",), | 271 | ("glvnd", "libglx",), |
| 280 | ("gles", "libgles1", "libglesv1-cm1"), | 272 | ("gles", "libgles1", "libglesv1-cm1"), |
| 281 | ("gles", "libgles2", "libglesv2-2"), | 273 | ("gles", "libgles2", "libglesv2-2", "libgles3"), |
| 282 | ("gles", "libgles3",), | ||
| 283 | ("opencl", "libopencl",)): | 274 | ("opencl", "libopencl",)): |
| 284 | if not p[0] in pkgconfig: | 275 | if not p[0] in pkgconfig: |
| 285 | continue | 276 | continue |
| @@ -353,8 +344,7 @@ FILES:libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/g | |||
| 353 | FILES:libglx-mesa-dev = "${libdir}/libGLX*.*" | 344 | FILES:libglx-mesa-dev = "${libdir}/libGLX*.*" |
| 354 | FILES:libglapi-dev = "${libdir}/libglapi.*" | 345 | FILES:libglapi-dev = "${libdir}/libglapi.*" |
| 355 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" | 346 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" |
| 356 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${libdir}/pkgconfig/glesv2.pc" | 347 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${includedir}/GLES3 ${libdir}/pkgconfig/glesv2.pc" |
| 357 | FILES:libgles3-mesa-dev = "${includedir}/GLES3" | ||
| 358 | FILES:libopencl-mesa-dev = "${libdir}/lib*OpenCL.so" | 348 | FILES:libopencl-mesa-dev = "${libdir}/lib*OpenCL.so" |
| 359 | FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ | 349 | FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ |
| 360 | ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \ | 350 | ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \ |
