#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --builddir=build-shadercompiler --sourcedir=Sources/ShaderCompiler
	dh_auto_configure -- -DNCINE_DOWNLOAD_DEPENDENCIES=OFF -DNCINE_PREFERRED_BACKEND=SDL3 -DNCINE_VERSION_FROM_GIT=OFF -DNCINE_LINUX_PACKAGE=jazz2-native

override_dh_auto_build:
	dh_auto_build --builddir=build-shadercompiler
	./debian/build_shaders.sh
	dh_auto_build

override_dh_clean:
	dh_clean -XSources/Shaders/Generated/ShaderCompilerTypes.h
