Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | SUMMARY = "Vulkan Validation layers" |
| 2 | DESCRIPTION = "Khronos official Vulkan validation layers to assist developers \ |
| 3 | in verifying that their applications correctly use the Vulkan API" |
| 4 | HOMEPAGE = "https://www.khronos.org/vulkan/" |
| 5 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-ValidationLayers" |
| 6 | SECTION = "libs" |
| 7 | |
| 8 | LICENSE = "Apache-2.0 & MIT" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd3c0bc366cd9b6a906e22f0bcb5910f" |
| 10 | |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 11 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-ValidationLayers.git;branch=vulkan-sdk-1.3.275;protocol=https" |
| 12 | SRCREV = "780c65337e111c7385109c7b720d757a778e4fe2" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
| 16 | REQUIRED_DISTRO_FEATURES = "vulkan" |
| 17 | |
| 18 | DEPENDS = "vulkan-headers vulkan-loader spirv-headers spirv-tools glslang vulkan-utility-libraries" |
| 19 | |
| 20 | # BUILD_TESTS - Not required for OE builds |
| 21 | # USE_ROBIN_HOOD_HASHING - Provides substantial performance improvements on all platforms. |
| 22 | # Yocto project doesn't contain a recipe for package so disabled it. |
| 23 | EXTRA_OECMAKE = "\ |
| 24 | -DBUILD_TESTS=OFF \ |
| 25 | -DUSE_ROBIN_HOOD_HASHING=OFF \ |
| 26 | -DGLSLANG_INSTALL_DIR=${STAGING_LIBDIR} \ |
| 27 | -DVULKAN_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \ |
| 28 | -DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \ |
| 29 | " |
| 30 | |
| 31 | PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr" |
| 32 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" |
| 33 | |
| 34 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}" |
| 35 | |
| 36 | inherit cmake features_check pkgconfig |
| 37 | |
| 38 | FILES:${PN} += "${datadir}/vulkan" |
| 39 | |
| 40 | SOLIBS = ".so" |
| 41 | FILES_SOLIBSDEV = "" |
| 42 | |
| 43 | # These recipes need to be updated in lockstep with each other: |
| 44 | # glslang, vulkan-headers, vulkan-loader, vulkan-tools, |
| 45 | # vulkan-validation-layers, spirv-headers, spirv-tools, |
| 46 | # vulkan-utility-libraries. |
| 47 | # The tags versions should always be sdk-x.y.z, as this is what |
| 48 | # upstream considers a release. |
| 49 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |