Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "3D graphics and compute API common loader" |
| 2 | DESCRIPTION = "Vulkan is a new generation graphics and compute API \ |
| 3 | that provides efficient access to modern GPUs. These packages \ |
| 4 | provide only the common vendor-agnostic library loader, headers and \ |
| 5 | the vulkaninfo utility." |
| 6 | HOMEPAGE = "https://www.khronos.org/vulkan/" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 7 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Loader" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 8 | SECTION = "libs" |
| 9 | |
| 10 | LICENSE = "Apache-2.0" |
| 11 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=99c647ca3d4f6a4b9d8628f757aad156 \ |
| 12 | file://loader/loader.c;endline=25;md5=151b392f46568aaedb4ad22b246237ec" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-Loader.git;nobranch=1 \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | file://demos-Don-t-build-tri-or-cube.patch \ |
| 15 | " |
| 16 | SRCREV = "5998d6f444a85e6381b7a089ebf3f9e86482a31d" |
| 17 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |
| 18 | |
| 19 | S = "${WORKDIR}/git" |
| 20 | |
| 21 | REQUIRED_DISTRO_FEATURES = "vulkan" |
| 22 | |
| 23 | inherit cmake python3native lib_package distro_features_check |
| 24 | ANY_OF_DISTRO_FEATURES = "x11 wayland" |
| 25 | |
| 26 | EXTRA_OECMAKE = "-DBUILD_WSI_MIR_SUPPORT=OFF \ |
| 27 | -DBUILD_LAYERS=OFF \ |
| 28 | -DBUILD_TESTS=OFF" |
| 29 | |
| 30 | # must choose x11 or wayland or both |
| 31 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '' ,d)} \ |
| 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '' ,d)}" |
| 33 | PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON -DDEMOS_WSI_SELECTION=XCB, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF -DDEMOS_WSI_SELECTION=WAYLAND, libxcb libx11 libxrandr" |
| 34 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" |
| 35 | |
| 36 | RRECOMMENDS_${PN} = "mesa-vulkan-drivers" |
| 37 | INSANE_SKIP_${PN}-dev += "dev-elf" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 38 | |
| 39 | # Can't be built with ccache |
| 40 | CCACHE_DISABLE = "1" |