Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [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" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8df9e8826734226d08cb412babfa599c" |
| 10 | |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 11 | SRC_URI = "git://git@github.com/KhronosGroup/Vulkan-ValidationLayers.git;branch=sdk-1.3.250;protocol=https \ |
| 12 | file://0001-scripts-CMakeLists.txt-append-to-CMAKE_FIND_ROOT_PAT.patch \ |
| 13 | " |
| 14 | SRCREV = "1541e00a63cd125f15d231d5a8059ebe66503b25" |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | REQUIRED_DISTRO_FEATURES = "vulkan" |
| 19 | |
| 20 | DEPENDS = "vulkan-headers vulkan-loader spirv-headers spirv-tools glslang" |
| 21 | |
| 22 | # BUILD_TESTS - Not required for OE builds |
| 23 | # USE_ROBIN_HOOD_HASHING - Provides substantial performance improvements on all platforms. |
| 24 | # Yocto project doesn't contain a recipe for package so disabled it. |
| 25 | EXTRA_OECMAKE = "\ |
| 26 | -DBUILD_TESTS=OFF \ |
| 27 | -DUSE_ROBIN_HOOD_HASHING=OFF \ |
| 28 | -DGLSLANG_INSTALL_DIR=${STAGING_LIBDIR} \ |
| 29 | -DVULKAN_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \ |
| 30 | -DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \ |
| 31 | " |
| 32 | |
| 33 | 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" |
| 34 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" |
| 35 | |
| 36 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}" |
| 37 | |
| 38 | inherit cmake features_check pkgconfig |
| 39 | |
| 40 | FILES:${PN} += "${datadir}/vulkan" |
| 41 | |
| 42 | SOLIBS = ".so" |
| 43 | FILES_SOLIBSDEV = "" |
| 44 | |
| 45 | # These recipes need to be updated in lockstep with each other: |
| 46 | # glslang, vulkan-headers, vulkan-loader, vulkan-tools, |
| 47 | # vulkan-validation-layers, spirv-headers, spirv-tools |
| 48 | # The tags versions should always be sdk-x.y.z, as this is what |
| 49 | # upstream considers a release. |
| 50 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |