Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.5 KiB

  1. @echo off
  2. setlocal
  3. set TTEXE=..\..\devtools\bin\timeprecise.exe
  4. if not exist %TTEXE% goto no_ttexe
  5. goto no_ttexe_end
  6. :no_ttexe
  7. set TTEXE=time /t
  8. :no_ttexe_end
  9. rem echo.
  10. rem echo ~~~~~~ buildallshaders %* ~~~~~~
  11. %TTEXE% -cur-Q
  12. set tt_all_start=%ERRORLEVEL%
  13. set tt_all_chkpt=%tt_start%
  14. set sourcedir="shaders"
  15. set targetdir="..\..\..\game\hl2\shaders"
  16. set BUILD_SHADER=call buildshaders.bat
  17. set ARG_X360=-x360
  18. set ARG_EXTRA=
  19. REM ****************
  20. REM usage: buildallshaders [-pc | -x360]
  21. REM ****************
  22. set ALLSHADERS_CONFIG=pc
  23. if /i "%1" == "-x360" goto shcfg_x360
  24. goto shcfg_end
  25. :shcfg_x360
  26. set ALLSHADERS_CONFIG=x360
  27. :shcfg_end
  28. REM ****************
  29. REM PC SHADERS
  30. REM ****************
  31. if /i "%ALLSHADERS_CONFIG%" == "pc" (
  32. %BUILD_SHADER% stdshader_dx9_20b
  33. %BUILD_SHADER% stdshader_dx9_20b_new -dx9_30
  34. %BUILD_SHADER% stdshader_dx9_30 -dx9_30 -force30
  35. rem %BUILD_SHADER% stdshader_dx10 -dx10
  36. )
  37. REM ****************
  38. REM X360 SHADERS
  39. REM ****************
  40. if /i "%ALLSHADERS_CONFIG%" == "x360" (
  41. %BUILD_SHADER% stdshader_dx9_20b %ARG_X360% %ARG_EXTRA%
  42. %BUILD_SHADER% stdshader_dx9_20b_new %ARG_X360% %ARG_EXTRA%
  43. rem %BUILD_SHADER% stdshader_dx9_30 %ARG_X360% %ARG_EXTRA%
  44. rem %BUILD_SHADER% stdshader_dx10 %ARG_X360% %ARG_EXTRA%
  45. )
  46. REM ****************
  47. REM END
  48. REM ****************
  49. :end
  50. rem echo.
  51. if not "%dynamic_shaders%" == "1" (
  52. rem echo Finished full buildallshaders %*
  53. ) else (
  54. rem echo Finished dynamic buildallshaders %*
  55. )
  56. rem %TTEXE% -diff %tt_all_start% -cur
  57. rem echo.