Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "Vulkan Utilities and Tools" |
| 2 | DESCRIPTION = "Assist development by enabling developers to verify their applications correct use of the Vulkan API." |
| 3 | HOMEPAGE = "https://www.khronos.org/vulkan/" |
| 4 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Tools" |
| 5 | SECTION = "libs" |
| 6 | |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 9 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-Tools.git;branch=main;protocol=https" |
| 10 | SRCREV = "a7da7027ca9fd0901639f02619c226da9c6036f1" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 14 | inherit cmake features_check pkgconfig |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 15 | ANY_OF_DISTRO_FEATURES = "x11 wayland" |
| 16 | REQUIRED_DISTRO_FEATURES = "vulkan" |
| 17 | |
| 18 | DEPENDS += "vulkan-headers vulkan-loader" |
| 19 | |
| 20 | EXTRA_OECMAKE = "\ |
| 21 | -DBUILD_TESTS=OFF \ |
| 22 | -DBUILD_CUBE=OFF \ |
| 23 | -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ |
| 24 | " |
| 25 | |
| 26 | # must choose x11 or wayland or both |
| 27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" |
| 28 | |
| 29 | 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" |
| 30 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" |
| 31 | |
Andrew Geissler | 028142b | 2023-05-05 11:29:21 -0500 | [diff] [blame] | 32 | # These recipes need to be updated in lockstep with each other: |
| 33 | # glslang, vulkan-headers, vulkan-loader, vulkan-tools, spirv-headers, spirv-tools |
| 34 | # The tags versions should always be sdk-x.y.z, as this is what |
| 35 | # upstream considers a release. |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 36 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |