blob: e464f6c2a74413b9627e5118dc359731739a1196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 2017 Marc-Antoine Perennou <keruspe@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
SCM_EXTERNAL_REFS="
submodules/googletest:googletest
"
SCM_SECONDARY_REPOSITORIES="
googletest
"
SCM_googletest_REPOSITORY="https://github.com/google/googletest.git"
require github [ user=KhronosGroup pn=Vulkan-LoaderAndValidationLayers tag=sdk-${PV} ] \
python [ blacklist=2 multibuild=false has_bin=false has_lib=false ] \
cmake [ api=2 ]
SUMMARY="Vulkan loader and validation layers"
DESCRIPTION="
Vulkan is an Explicit API, enabling direct control over how GPUs actually work. No (or very little)
validation or error checking is done inside a Vulkan driver. Applications have full control and
responsibility. Any errors in how Vulkan is used often result in a crash. This project provides
standard validation layers that can be enabled to ease development by helping developers verify
their applications correctly use the Vulkan API.
"
HOMEPAGE="https://www.khronos.org/vulkan/"
LICENCES="Apache-2.0"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS="X wayland"
DEPENDENCIES="
build:
virtual/pkg-config
build+run:
X? (
x11-libs/libxcb
x11-libs/libX11
)
wayland? ( sys-libs/wayland )
"
BUGS_TO="keruspe@exherbo.org"
CMAKE_SRC_CONFIGURE_PARAMS=(
-DUSE_CCACHE:BOOL=FALSE
-DBUILD_ICD:BOOL=TRUE
-DBUILD_LOADER:BOOL=TRUE
-DBUILD_SHARED_LIBS:BOOL=TRUE
-DBUILD_VKJSON:BOOL=TRUE
# Those need glsl and spirv
-DBUILD_DEMOS:BOOL=FALSE
-DBUILD_GMOCK:BOOL=FALSE
-DBUILD_GTEST:BOOL=FALSE
-DBUILD_TESTS:BOOL=FALSE
-DBUILD_LAYERS:BOOL=FALSE
-DBUILD_WSI_MIR_SUPPORT:BOOL=FALSE
$(exhost --is-native -q || echo -DCMAKE_ASM-ATT_FLAGS="--32" )
)
CMAKE_SRC_CONFIGURE_OPTION_BUILDS=(
"X WSI_XCB_SUPPORT"
"X WSI_XLIB_SUPPORT"
"wayland WSI_WAYLAND_SUPPORT"
)
src_install() {
cmake_src_install
keepdir /etc/vulkan/icd.d
}
|