diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-07-11 15:26:21 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-17 14:01:37 +0100 |
commit | 2d339f752a025325dede17fdaae781f9422aa87f (patch) | |
tree | 6c4810a61ae70a0ec8c455ec68bce5229d15a8ad /meta/recipes-graphics/vulkan/vulkan-demos_git.bb | |
parent | 75b147e8a5a474aa8e3846828211d1718587e470 (diff) | |
download | poky-2d339f752a025325dede17fdaae781f9422aa87f.tar.gz |
vulkan-demos: Add recipe
Sascha Willems collection of Vulkan demos is useful as a smoke testing
tool.
* Add patch to install binaries and data.
* Add patch to fix build on X86
* Use a combination of patch and do_install_append to avoid some 3D
models with unclear licensing.
(From OE-Core rev: 88a6fa37e7ec2e68cdb2374f2a5371a6f44b3d67)
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-demos_git.bb')
-rw-r--r-- | meta/recipes-graphics/vulkan/vulkan-demos_git.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-graphics/vulkan/vulkan-demos_git.bb b/meta/recipes-graphics/vulkan/vulkan-demos_git.bb new file mode 100644 index 0000000000..fcd9e7b7c8 --- /dev/null +++ b/meta/recipes-graphics/vulkan/vulkan-demos_git.bb | |||
@@ -0,0 +1,36 @@ | |||
1 | DESCRIPTION = "Collection of Vulkan examples" | ||
2 | LICENSE = "MIT" | ||
3 | DEPENDS = "zlib" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=dcf473723faabf17baa9b5f2207599d0 \ | ||
6 | file://triangle/triangle.cpp;endline=12;md5=bccd1bf9cadd9e10086cf7872157e4fa" | ||
7 | |||
8 | SRC_URI = "git://github.com/SaschaWillems/Vulkan.git \ | ||
9 | file://0001-Support-installing-demos-support-out-of-tree-builds.patch \ | ||
10 | file://0001-Don-t-build-demos-with-questionably-licensed-data.patch \ | ||
11 | file://0001-Fix-build-on-x86.patch \ | ||
12 | " | ||
13 | SRCREV = "18df00c7b4677b0889486e16977857aa987947e2" | ||
14 | UPSTREAM_CHECK_GITTAGREGEX = "These are not the releases you're looking for" | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | inherit cmake distro_features_check | ||
18 | DEPENDS = "vulkan assimp" | ||
19 | |||
20 | do_install_append () { | ||
21 | # Remove assets that have uncertain licenses | ||
22 | rm ${D}${datadir}/vulkan-demos/models/armor/* \ | ||
23 | ${D}${datadir}/vulkan-demos/models/sibenik/* \ | ||
24 | ${D}${datadir}/vulkan-demos/models/vulkanscene* \ | ||
25 | ${D}${datadir}/vulkan-demos/models/plants.dae \ | ||
26 | ${D}${datadir}/vulkan-demos/textures/texturearray_plants* | ||
27 | } | ||
28 | |||
29 | EXTRA_OECMAKE = "-DRESOURCE_INSTALL_DIR=${datadir}/vulkan-demos" | ||
30 | |||
31 | ANY_OF_DISTRO_FEATURES = "x11 wayland" | ||
32 | |||
33 | # Can only pick one of [wayland,xcb] | ||
34 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', 'xcb' ,d)}" | ||
35 | PACKAGECONFIG[wayland] = "-DUSE_WAYLAND_WSI=ON, -DUSE_WAYLAND_WSI=OFF, wayland" | ||
36 | PACKAGECONFIG[xcb] = ",,libxcb" | ||