Files
Triforce-Source/gpu/build-shadertool.bat
ruckus7382sfgsgdf 34b3683441 Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:32:48 -06:00

9 lines
716 B
Batchfile

@echo off
rem Build work\gpu\shadertool.exe against the Eglantine clone's shader recompiler (work\eg\build), with the flags its
rem build uses for the recompiler (work\gpu\sr.rsp, from work\eg\build\build.ninja, warnings-as-errors dropped).
setlocal
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" >nul || exit /b 1
set "ROOT=%~dp0.."
set "B=%ROOT%\work\eg\build"
cl /nologo @"%ROOT%\work\gpu\sr.rsp" "%~dp0shadertool.cpp" /Fo"%ROOT%\work\gpu\\" /Fe"%ROOT%\work\gpu\shadertool.exe" /link "%B%\src\shader_recompiler\shader_recompiler.lib" "%B%\src\common\common.lib" "%B%\_deps\fmt-build\fmt.lib" "%B%\_deps\sirit-build\src\sirit.lib" ole32.lib shell32.lib || exit /b 1