blob: e5717660308a53ff8034f7956d2b3ad6dfc6e206 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Vulkan Utilities and Tools"
2HOMEPAGE = "https://www.khronos.org/vulkan/"
3BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Tools"
4SECTION = "libs"
5
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
Andrew Geisslerd1e89492021-02-12 15:35:20 -06008SRC_URI = "git://github.com/KhronosGroup/Vulkan-Tools.git;branch=sdk-1.2.162"
9SRCREV = "8f0c2e40d4134f53f82ce48de72c7be92baa6b3d"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010
11S = "${WORKDIR}/git"
12
13inherit cmake features_check
14ANY_OF_DISTRO_FEATURES = "x11 wayland"
15REQUIRED_DISTRO_FEATURES = "vulkan"
16
17DEPENDS += "vulkan-headers vulkan-loader"
18
19EXTRA_OECMAKE = "\
20 -DBUILD_TESTS=OFF \
21 -DBUILD_CUBE=OFF \
22 -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \
23 "
24
25# must choose x11 or wayland or both
26PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
27
28PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr"
29PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
30
31UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"