From c8d1875a2f6390ab9be80176bd28bfb4894f2fde Mon Sep 17 00:00:00 2001 From: Anton Oreskin Date: Wed, 23 Sep 2026 18:37:14 +0200 Subject: [PATCH] Install Vulkan runtime tools without redundant build headers --- README.md | 6 +++++- setup.vsh | 14 +++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7cab42f..8e979d1 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,11 @@ v run ~/.vmodules/antono2/vulkan/setup.vsh From a source checkout, use `v run setup.vsh`. The script supports Ubuntu and Debian, Fedora, Arch, openSUSE, macOS, and Windows with winget. -It installs native Vulkan tools and the VPM module, then verifies the result. +On Linux it installs a C compiler, Vulkan runtime tools, and the VPM module; +the bundled headers and Volk need no distribution development packages. The +macOS and Windows helpers still use the Vulkan SDK to provide runtime tooling, +but its headers are not required to compile this module. The script then +verifies the result. For a read-only support check, run: ```sh diff --git a/setup.vsh b/setup.vsh index a641bd4..8060b7d 100644 --- a/setup.vsh +++ b/setup.vsh @@ -27,22 +27,22 @@ fn run(command string) ! { fn install_linux() ! { if command_exists('apt-get') { run('sudo apt-get update')! - run('sudo apt-get install -y build-essential libvulkan-dev libvulkan-volk-dev mesa-vulkan-drivers vulkan-tools')! + run('sudo apt-get install -y build-essential libvulkan1 mesa-vulkan-drivers vulkan-tools')! return } if command_exists('dnf') { - run('sudo dnf install -y gcc gcc-c++ vulkan-headers vulkan-loader-devel volk-devel vulkan-tools mesa-vulkan-drivers')! + run('sudo dnf install -y gcc gcc-c++ vulkan-loader vulkan-tools mesa-vulkan-drivers')! return } if command_exists('pacman') { - run('sudo pacman -S --needed --noconfirm base-devel vulkan-headers vulkan-icd-loader vulkan-tools volk')! + run('sudo pacman -S --needed --noconfirm base-devel vulkan-icd-loader vulkan-tools')! return } if command_exists('zypper') { - run('sudo zypper --non-interactive install -y gcc gcc-c++ vulkan-devel vulkan-tools volk-devel')! + run('sudo zypper --non-interactive install -y gcc gcc-c++ vulkan-tools')! return } - return error('unsupported Linux package manager; install Vulkan headers, the loader, Volk, vulkaninfo, and a Vulkan ICD, then rerun with --check') + return error('unsupported Linux package manager; install a C compiler, the Vulkan loader, vulkaninfo, and a Vulkan ICD, then rerun with --check') } fn install_macos() ! { @@ -248,7 +248,7 @@ fn check() bool { println(' Install or update the GPU vendor driver; the SDK does not provide a hardware driver.') } } else { - println('[warning] vulkaninfo is unavailable; SDK/loader runtime verification was skipped') + println('[warning] vulkaninfo is unavailable; Vulkan loader/device verification was skipped') } return ok } @@ -280,5 +280,5 @@ fn main() { eprintln('\nSetup is incomplete. Resolve the missing items above and rerun with --check.') exit(1) } - println('\nVulkan development prerequisites are ready.') + println('\nVulkan module build prerequisites are ready; check runtime warnings above.') }