blob: 7f857973780a56e3e557019f6f23d844735e5fab (
plain)
1 # Description: Vulkan validation layers
2 # URL: https://www.khronos.org/vulkan/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: glslang robin-hood-hashing vulkan-headers xorg-libxrandr
5 # Optional: wayland
6
7 name=vulkan-validation-layers
8 _name=Vulkan-ValidationLayers-sdk
9 version=1.3.216.0
10 _version=sdk-$version
11 #version=1.3.213
12 #_version=v$version
13 #_name=Vulkan-ValidationLayers
14 release=1
15 source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/$_version/$_name-$version.tar.gz
16 add-missing-export.patch
17 fix_shared.patch)
18
19 build() {
20 patch -d $_name-$version -p1 -i $SRC/add-missing-export.patch
21 patch -d $_name-$version -p1 -i $SRC/fix_shared.patch
22
23 prt-get isinst ninja && PKGMK_VULKAN_VALIDATION_LAYERS+=' -G Ninja'
24 prt-get isinst wayland || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
25
26 cmake -S $_name-$version -B build $PKGMK_VULKAN_VALIDATION_LAYERS \
27 -D CMAKE_INSTALL_PREFIX=/usr \
28 -D CMAKE_INSTALL_LIBDIR=lib \
29 -D CMAKE_BUILD_TYPE=Release \
30 -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
31 -D BUILD_TESTS=OFF \
32 -D BUILD_LAYER_SUPPORT_FILES=ON \
33 -D USE_ROBIN_HOOD_HASHING=ON \
34 -Wno-dev
35
36 cmake --build build
37 DESTDIR=$PKG cmake --install build
38 }
|