blob: 1794417c36426ed2efca8f182914ca682ab5e846 (
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.236.0
10 _version=sdk-$version
11 release=1
12 source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/$_version/$_name-$version.tar.gz
13 fix_shared.patch)
14
15 build() {
16 patch -d $_name-$version -p1 -i $SRC/fix_shared.patch
17
18 prt-get isinst wayland || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
19
20 cmake -S $_name-$version -B build -G Ninja $PKGMK_VULKAN_VALIDATION_LAYERS \
21 -D CMAKE_INSTALL_PREFIX=/usr \
22 -D CMAKE_INSTALL_LIBDIR=lib \
23 -D CMAKE_BUILD_TYPE=Release \
24 -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
25 -D SPIRV_HEADERS_INSTALL_DIR=/usr \
26 -D VULKAN_HEADERS_INSTALL_DIR=/usr \
27 -D BUILD_TESTS=OFF \
28 -D BUILD_LAYER_SUPPORT_FILES=ON \
29 -D VulkanRegistry_DIR=/usr/share/vulkan/registry \
30 -D USE_ROBIN_HOOD_HASHING=ON \
31 -Wno-dev
32
33 cmake --build build
34 DESTDIR=$PKG cmake --install build
35 }
|