Name spirv-tools
Description API and commands for processing SPIR-V modules
Version 2025.1~rc1-1
Package Base
Homepage https://github.com/KhronosGroup/SPIRV-Tools
Maintainers ['Debian X Strike Force <debian-x@lists.debian.org>']
Contributors []
Distro-repo https://salsa.debian.org/xorg-team/vulkan/spirv-tools
Sources ['https://sources.debian.org/data/main/s/spirv-tools/2025.1~rc1-1/debian/watch', 'https://sources.debian.org/src/spirv-tools/2025.1~rc1-1/debian/patches/disable-shared-harder.diff', 'https://sources.debian.org/src/spirv-tools/2025.1~rc1-1/debian/patches/series']
Dependencies ['libc6', 'libstdc++6']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'cmake', 'python3', 'spirv-headers']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 2cc272ef1340cf0b47de6c5fcccaf91574d7a8f4061abb718d6c639463e85aab
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=optimize=-lto

%:
	dh $@ 

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DSPIRV-Headers_SOURCE_DIR=/usr \
		-DBUILD_SHARED_LIBS=OFF \
		-DSPIRV_TOOLS_BUILD_STATIC=ON \
		-DSPIRV_TOOLS_LIBRARY_TYPE=STATIC

override_dh_auto_test:

override_dh_install:
	dh_install


gentarball: SOURCE=spirv-tools
gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
gentarball:
	git archive --format=tar upstream-unstable --prefix=$(SOURCE)-$(UV)/ | gzip -9 > \
		../$(SOURCE)_$(UV).orig.tar.gz