Counter Strike : Global Offensive Source Code
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.

100 lines
2.8 KiB

  1. //-----------------------------------------------------------------------------
  2. // STDSHADER_DX9.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $Macro SRCDIR "..\.."
  7. $Macro STDSHADERSDIR "."
  8. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  9. // shader_dll_verify.cpp defines a function called _ftol3. This means that we can't
  10. // link with the bug-fixed ftol3.obj. It also means we can't convert float-to-unsigned.
  11. $Conditional DISABLE_FTOL3_OVERRIDE "1"
  12. $Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  13. $Configuration "Debug"
  14. {
  15. $General
  16. {
  17. $OutputDirectory "Debug_dx9$PLATSUBDIR" [$WINDOWS]
  18. $IntermediateDirectory "Debug_dx9$PLATSUBDIR" [$WINDOWS]
  19. $OutputDirectory "Debug_dx9_360" [$X360]
  20. $IntermediateDirectory "Debug_dx9_360" [$X360]
  21. }
  22. }
  23. $Configuration "Release"
  24. {
  25. $General
  26. {
  27. $OutputDirectory "Release_dx9$PLATSUBDIR" [$WINDOWS]
  28. $IntermediateDirectory "Release_dx9$PLATSUBDIR" [$WINDOWS]
  29. $OutputDirectory "Release_dx9_360" [$X360]
  30. $IntermediateDirectory "Release_dx9_360" [$X360]
  31. }
  32. }
  33. // Common Configuration
  34. $Configuration
  35. {
  36. $Compiler
  37. {
  38. $AdditionalIncludeDirectories "$BASE;fxctmp9;vshtmp9;" [$WINDOWS||$POSIX]
  39. $AdditionalIncludeDirectories "$BASE;..\..\dx9sdk\include" [$WINDOWS]
  40. $AdditionalIncludeDirectories "$BASE;fxctmp9_360;vshtmp9_360" [$X360]
  41. $AdditionalIncludeDirectories "$BASE;fxctmp9_ps3" [$PS3]
  42. $AdditionalIncludeDirectories "$BASE;.."
  43. $PreprocessorDefinitions "$BASE;STDSHADER_DX9_DLL_EXPORT;FAST_MATERIALVAR_ACCESS"
  44. $PreprocessorDefinitions "$BASE;USE_ACTUAL_DX" [ ( $WINDOWS||$X360 ) && !$GL ]
  45. }
  46. $Linker [!$PS3]
  47. {
  48. $AdditionalDependencies "$BASE version.lib winmm.lib" [$WINDOWS]
  49. $ModuleDefinitionFile "xbox\xbox_dx9.def" [$X360]
  50. $SystemLibraries "iconv" [$OSXALL]
  51. }
  52. }
  53. $include "stdshader_dx9_inc.vpc"
  54. $Project "stdshader_dx9"
  55. {
  56. $Folder "Xbox" [$X360]
  57. {
  58. $File "xbox\xbox_dx9.def"
  59. }
  60. $Folder "Link Libraries"
  61. {
  62. $Lib mathlib
  63. $Lib shaderlib
  64. $File "$SRCDIR\dx9sdk\lib\d3dx9.lib" [$WINDOWS && !$GL]
  65. }
  66. $File "$SRCDIR\devtools\bin\vsh_prep.pl"
  67. $File "$SRCDIR\devtools\bin\psh_prep.pl"
  68. $File "$SRCDIR\devtools\bin\fxc_prep.pl"
  69. $File "$SRCDIR\devtools\bin\updateshaders.pl"
  70. $File "$SRCDIR\devtools\bin\copyshaderincfiles.pl"
  71. $File "$SRCDIR\devtools\bin\copyshaders.pl"
  72. $File "$SRCDIR\devtools\bin\p4autocheckout.pl"
  73. $File "$SRCDIR\devtools\bin\p4revertshadertargets.pl"
  74. $File "$SRCDIR\devtools\bin\valve_perl_helpers.pl"
  75. $File "$SRCDIR\devtools\bin\checkshaderchecksums.pl"
  76. $File "buildallshaders.bat"
  77. $File "buildshaders.bat"
  78. $File "buildincs.bat"
  79. $Shaders "stdshader_dx9_20b.txt" [!$PS3]
  80. $Shaders "stdshader_dx9_20b_new.txt" [!$PS3]
  81. $Shaders "stdshader_dx9_30.txt" [!$PS3]
  82. $Shaders "stdshader_ps3.txt" [$PS3]
  83. //$Shaders "stdshader_dx10.txt"
  84. }