mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
3835f04fc3
Add a recipe for vulkan loader library and the vulkaninfo binary. Vulkan can be built to support X11 or wayland or both. There is currently no support for building tests, validation layers or even the demos as that would require a bunch of otherwise unnecessary dependencies. Fix the build on musl by defaulting to getenv() if secure_getenv() is not available. (From OE-Core rev: ce0acee244cdae287fa0d3b048d371627a69a030) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
1.6 KiB
BlitzBasic
35 lines
1.6 KiB
BlitzBasic
SUMMARY = "3D graphics and compute API common loader"
|
|
DESCRIPTION = "Vulkan is a new generation graphics and compute API \
|
|
that provides efficient access to modern GPUs. These packages \
|
|
provide only the common vendor-agnostic library loader, headers and \
|
|
the vulkaninfo utility."
|
|
HOMEPAGE = "https://www.khronos.org/vulkan/"
|
|
BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers"
|
|
SECTION = "libs"
|
|
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=99c647ca3d4f6a4b9d8628f757aad156 \
|
|
file://loader/loader.c;endline=25;md5=a87cd5442291c23d1fce4eece4cfde9d"
|
|
SRC_URI = "git://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git;branch=sdk-1.0.39 \
|
|
file://demos-Don-t-build-tri-or-cube.patch \
|
|
file://0001-Use-getenv-if-secure_getenv-does-not-exist.patch \
|
|
"
|
|
SRCREV = "9c21ed0fb275589c3af6118aec9ef4f1d1544dc1"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
|
inherit cmake python3native lib_package distro_features_check
|
|
ANY_OF_DISTRO_FEATURES = "x11 wayland"
|
|
|
|
EXTRA_OECMAKE = "-DBUILD_WSI_MIR_SUPPORT=OFF \
|
|
-DBUILD_LAYERS=OFF \
|
|
-DBUILD_TESTS=OFF"
|
|
|
|
# must choose x11 or wayland or both
|
|
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '' ,d)} \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '' ,d)}"
|
|
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"
|
|
PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
|
|
|