blob: 0346b380ee76633e9175d6a99adb24ab9762918c [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Vulkan Utilities and Tools"
2DESCRIPTION = "Assist development by enabling developers to verify their applications correct use of the Vulkan API."
3HOMEPAGE = "https://www.khronos.org/vulkan/"
4BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Tools"
5SECTION = "libs"
6
7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
Patrick Williams520786c2023-06-25 16:20:36 -05009SRC_URI = "git://github.com/KhronosGroup/Vulkan-Tools.git;branch=main;protocol=https \
10 file://0001-scripts-CMakeLists.txt-do-not-make-special-arrangeme.patch \
11 "
12SRCREV = "695887a994ef9cc00a7aa3f9c00b31a56ea79534"
Andrew Geissler517393d2023-01-13 08:55:19 -060013
14S = "${WORKDIR}/git"
15
Patrick Williams864cc432023-02-09 14:54:44 -060016inherit cmake features_check pkgconfig
Andrew Geissler517393d2023-01-13 08:55:19 -060017ANY_OF_DISTRO_FEATURES = "x11 wayland"
18REQUIRED_DISTRO_FEATURES = "vulkan"
19
20DEPENDS += "vulkan-headers vulkan-loader"
21
22EXTRA_OECMAKE = "\
23 -DBUILD_TESTS=OFF \
24 -DBUILD_CUBE=OFF \
25 -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \
26 "
27
28# must choose x11 or wayland or both
29PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
30
31PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr"
32PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
33
Andrew Geissler028142b2023-05-05 11:29:21 -050034# These recipes need to be updated in lockstep with each other:
35# glslang, vulkan-headers, vulkan-loader, vulkan-tools, spirv-headers, spirv-tools
36# The tags versions should always be sdk-x.y.z, as this is what
37# upstream considers a release.
Andrew Geissler517393d2023-01-13 08:55:19 -060038UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"