-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vulkan-tools: initial commit, v1.3.261.1
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
drwxr-xr-x root/root usr/ | ||
drwxr-xr-x root/root usr/bin/ | ||
-rwxr-xr-x root/root usr/bin/vkcube | ||
-rwxr-xr-x root/root usr/bin/vkcubepp | ||
-rwxr-xr-x root/root usr/bin/vulkaninfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
23ed257292516fbef2bbe09b0f3aad69 Vulkan-Tools-sdk-1.3.261.1.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Description: Vulkan tools | ||
# URL: https://www.khronos.org/vulkan/ | ||
# Depends on: glslang vulkan-loader | ||
# Optional: wayland | ||
|
||
name=vulkan-tools | ||
version=1.3.261.1 | ||
release=1 | ||
source=https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-$version/Vulkan-Tools-sdk-$version.tar.gz | ||
|
||
build() { | ||
pkgman isinst wayland || PKGMK_VULKAN_TOOLS=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF' | ||
|
||
cmake -S Vulkan-Tools-sdk-$version -B build -G Ninja \ | ||
$PKGMK_VULKAN_TOOLS \ | ||
-D CMAKE_INSTALL_PREFIX=/usr \ | ||
-D CMAKE_BUILD_TYPE=Release \ | ||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -ffat-lto-objects" \ | ||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -ffat-lto-objects" \ | ||
-D GLSLANG_INSTALL_DIR=/usr \ | ||
-D BUILD_CUBE=True \ | ||
-D BUILD_VULKANINFO=True \ | ||
-D CUBE_WSI_SELECTION='XCB' \ | ||
-D BUILD_WSI_XCB_SUPPORT=True \ | ||
-D BUILD_WSI_XLIB_SUPPORT=True \ | ||
-D BUILD_ICD=OFF \ | ||
-Wno-dev | ||
|
||
ninja -C build -j ${JOBS:-1} -v | ||
DESTDIR=$PKG ninja -C build install | ||
} |