2018-08-02 01:07:15 +10:00
|
|
|
# Description: Vulkan validation layers, 32bit
|
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2023-11-11 19:30:20 +01:00
|
|
|
# Depends on: robin-hood-hashing-32 spirv-tools-32 vulkan-utility-libraries-32 vulkan-validation-layers xorg-libxrandr-32
|
2020-07-24 18:37:50 +10:00
|
|
|
# Optional: wayland-32
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
name=vulkan-validation-layers-32
|
2023-11-11 19:30:20 +01:00
|
|
|
_name=Vulkan-ValidationLayers
|
2024-03-22 22:10:35 +01:00
|
|
|
version=1.3.280.0
|
2023-11-11 19:30:20 +01:00
|
|
|
_version=vulkan-sdk-$version
|
2022-06-16 17:04:45 +02:00
|
|
|
release=1
|
2023-11-11 19:30:20 +01:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/$_version/$_name-$version.tar.gz)
|
2023-06-04 00:37:31 +02:00
|
|
|
|
2018-08-02 01:07:15 +10:00
|
|
|
build() {
|
2021-04-11 01:54:39 +10:00
|
|
|
prt-get isinst wayland-32 || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
|
2023-11-11 19:30:20 +01:00
|
|
|
cmake -S $_name-$_version -B build -G Ninja $PKGMK_VULKAN_VALIDATION_LAYERS \
|
2021-04-11 01:54:39 +10:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib32 \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
|
2022-11-06 09:02:30 +00:00
|
|
|
-D SPIRV_HEADERS_INSTALL_DIR=/usr \
|
|
|
|
-D VULKAN_HEADERS_INSTALL_DIR=/usr \
|
2022-02-20 23:06:05 +11:00
|
|
|
-D USE_ROBIN_HOOD_HASHING=ON \
|
2024-01-21 10:51:24 +01:00
|
|
|
-D BUILD_TESTS=OFF \
|
2020-11-01 16:49:43 +11:00
|
|
|
-Wno-dev
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2020-06-07 18:42:30 +10:00
|
|
|
cmake --build build
|
2022-11-06 09:02:30 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2023-11-11 19:30:20 +01:00
|
|
|
rm -r $PKG/usr/share
|
2018-08-02 01:07:15 +10:00
|
|
|
}
|