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.

102 lines
2.3 KiB

  1. //-----------------------------------------------------------------------------
  2. // STDSHADER_DBG.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $macro SRCDIR "..\.."
  7. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  8. // shader_dll_verify.cpp defines a function called _ftol3. This means that we can't
  9. // link with the bug-fixed ftol3.obj. It also means we can't convert float-to-unsigned.
  10. $Macro DISABLE_FTOL3_OVERRIDE "1"
  11. $include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  12. $Configuration "Debug"
  13. {
  14. $General
  15. {
  16. $OutputDirectory "Debug_dbg" [$WINDOWS]
  17. $IntermediateDirectory "Debug_dbg" [$WINDOWS]
  18. $OutputDirectory "Debug_dbg_360" [$X360]
  19. $IntermediateDirectory "Debug_dbg_360" [$X360]
  20. }
  21. }
  22. $Configuration "Release"
  23. {
  24. $General
  25. {
  26. $OutputDirectory "Release_dbg" [$WINDOWS]
  27. $IntermediateDirectory "Release_dbg" [$WINDOWS]
  28. $OutputDirectory "Release_dbg_360" [$X360]
  29. $IntermediateDirectory "Release_dbg_360" [$X360]
  30. }
  31. }
  32. // Common Configuration
  33. $Configuration
  34. {
  35. $Compiler
  36. {
  37. $AdditionalIncludeDirectories "$BASE;fxctmp9;vshtmp9;..\..\dx9sdk\include" [$WIN32]
  38. $AdditionalIncludeDirectories "$BASE;fxctmp9_360;vshtmp9_360" [$X360]
  39. $PreprocessorDefinitions "$BASE;STDSHADER_DBG_DLL_EXPORT;FAST_MATERIALVAR_ACCESS"
  40. }
  41. $Linker
  42. {
  43. $AdditionalDependencies "$BASE version.lib winmm.lib" [$WIN32]
  44. $ModuleDefinitionFile "xbox\xbox_dbg.def" [$X360]
  45. }
  46. }
  47. $Project "stdshader_dbg"
  48. {
  49. $Folder "Source Files"
  50. {
  51. $File "BaseVSShader.cpp"
  52. $File "debugdepth.cpp"
  53. $File "DebugDrawEnvmapMask.cpp"
  54. $File "debugluxel.cpp"
  55. $File "debugnormalmap.cpp"
  56. $File "debugtangentspace.cpp"
  57. $File "fillrate.cpp"
  58. $Folder "Remove me when VAC2 is out" [$WIN32]
  59. {
  60. $File "..\shader_dll_verify.cpp"
  61. $File "..\shader_dll_verify.h"
  62. }
  63. }
  64. $Folder "Xbox" [$X360]
  65. {
  66. -$File "xbox\xbox.def"
  67. $File "xbox\xbox_dbg.def"
  68. }
  69. $Folder "Header Files"
  70. {
  71. $File "BaseVSShader.h"
  72. }
  73. $Folder "Link Libraries"
  74. {
  75. $File "$SRCDIR\dx9sdk\lib\d3dx9.lib" [$WIN32]
  76. $Lib mathlib
  77. $Lib shaderlib
  78. }
  79. $File "$SRCDIR\devtools\bin\vsh_prep.pl"
  80. $File "$SRCDIR\devtools\bin\psh_prep.pl"
  81. $File "$SRCDIR\devtools\bin\fxc_prep.pl"
  82. $File "$SRCDIR\devtools\bin\updateshaders.pl"
  83. $Shaders "stdshader_dx9_20b.txt"
  84. $Shaders "stdshader_dx9_30.txt"
  85. //$Shaders "stdshader_dx10.txt"
  86. }