diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-03-08 15:21:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-10 14:50:10 +0000 |
commit | 3835f04fc35228178fdac5d4f7c8a72b9568c330 (patch) | |
tree | 017146c7cfab02eaa626cafdc94a072a07871102 /meta/recipes-graphics/vulkan/vulkan_1.0.39.1.bb | |
parent | c09a6bd8e26ed1e1bbfdf8e711cd3ed1e58ceaee (diff) | |
download | poky-3835f04fc35228178fdac5d4f7c8a72b9568c330.tar.gz |
vulkan: Add recipe for Vulkan common loader
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>
Diffstat (limited to 'meta/recipes-graphics/vulkan/vulkan_1.0.39.1.bb')
-rw-r--r-- | meta/recipes-graphics/vulkan/vulkan_1.0.39.1.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-graphics/vulkan/vulkan_1.0.39.1.bb b/meta/recipes-graphics/vulkan/vulkan_1.0.39.1.bb new file mode 100644 index 0000000000..45d1c493e2 --- /dev/null +++ b/meta/recipes-graphics/vulkan/vulkan_1.0.39.1.bb | |||
@@ -0,0 +1,34 @@ | |||
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/" | ||
7 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers" | ||
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=a87cd5442291c23d1fce4eece4cfde9d" | ||
13 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers.git;branch=sdk-1.0.39 \ | ||
14 | file://demos-Don-t-build-tri-or-cube.patch \ | ||
15 | file://0001-Use-getenv-if-secure_getenv-does-not-exist.patch \ | ||
16 | " | ||
17 | SRCREV = "9c21ed0fb275589c3af6118aec9ef4f1d1544dc1" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | |||
22 | inherit cmake python3native lib_package distro_features_check | ||
23 | ANY_OF_DISTRO_FEATURES = "x11 wayland" | ||
24 | |||
25 | EXTRA_OECMAKE = "-DBUILD_WSI_MIR_SUPPORT=OFF \ | ||
26 | -DBUILD_LAYERS=OFF \ | ||
27 | -DBUILD_TESTS=OFF" | ||
28 | |||
29 | # must choose x11 or wayland or both | ||
30 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '' ,d)} \ | ||
31 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '' ,d)}" | ||
32 | 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" | ||
33 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" | ||
34 | |||