#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --builddir=build-shadercompiler --sourcedir=Sources/Utilities/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
	build-shadercompiler/ShaderCompiler --generate-all --shaders-dir Sources/Shaders --out-dir Sources/Shaders/Generated
	dh_auto_build

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