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.

247 lines
6.9 KiB

  1. //-----------------------------------------------------------------------------
  2. // STDSHADER_DX9.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_dx9" [$WINDOWS]
  17. $IntermediateDirectory "Debug_dx9" [$WINDOWS]
  18. $OutputDirectory "Debug_dx9_360" [$X360]
  19. $IntermediateDirectory "Debug_dx9_360" [$X360]
  20. }
  21. }
  22. $Configuration "Release"
  23. {
  24. $General
  25. {
  26. $OutputDirectory "Release_dx9" [$WINDOWS]
  27. $IntermediateDirectory "Release_dx9" [$WINDOWS]
  28. $OutputDirectory "Release_dx9_360" [$X360]
  29. $IntermediateDirectory "Release_dx9_360" [$X360]
  30. }
  31. }
  32. // Common Configuration
  33. $Configuration
  34. {
  35. $Compiler
  36. {
  37. $AdditionalIncludeDirectories "$BASE;fxctmp9;vshtmp9;" [$WIN32||$POSIX]
  38. $AdditionalIncludeDirectories "$BASE;..\..\dx9sdk\include" [$WIN32]
  39. $AdditionalIncludeDirectories "$BASE;fxctmp9_360;vshtmp9_360" [$X360]
  40. $PreprocessorDefinitions "$BASE;STDSHADER_DX9_DLL_EXPORT;FAST_MATERIALVAR_ACCESS"
  41. $PreprocessorDefinitions "$BASE;USE_ACTUAL_DX" [($WIN32||$X360) && !$GL]
  42. }
  43. $Linker
  44. {
  45. $AdditionalDependencies "$BASE version.lib winmm.lib" [$WIN32]
  46. $ModuleDefinitionFile "xbox\xbox_dx9.def" [$X360]
  47. $SystemLibraries "iconv" [$OSXALL]
  48. }
  49. }
  50. $Project "stdshader_dx9"
  51. {
  52. $Folder "Source Files"
  53. {
  54. $File "aftershock.cpp"
  55. $File "aftershock_helper.cpp"
  56. $File "AccumBuff4Sample.cpp"
  57. $File "accumbuff5sample.cpp"
  58. $File "BaseVSShader.cpp"
  59. $File "bik_dx90.cpp"
  60. $File "Bloom.cpp"
  61. $File "BlurFilterX.cpp"
  62. $File "BlurFilterY.cpp"
  63. $File "BufferClearObeyStencil_dx9.cpp"
  64. $File "cable_dx9.cpp"
  65. $File "cloak.cpp"
  66. $File "cloak_blended_pass_helper.cpp"
  67. $File "cloak_dx9_helper.cpp"
  68. $File "cloud_dx9.cpp"
  69. $File "colorcorrection.cpp"
  70. $File "compositor.cpp"
  71. $File "core_dx9.cpp"
  72. $File "color_projection.cpp"
  73. $File "debugmrttexture.cpp"
  74. $File "debugmorphaccumulator_dx9.cpp" [$WIN32]
  75. $File "DebugTextureView.cpp"
  76. $File "DecalBaseTimesLightmapAlphaBlendSelfIllum_dx9.cpp"
  77. $File "DecalModulate_dx9.cpp"
  78. $File "depthwrite.cpp"
  79. $File "Downsample.cpp"
  80. $File "downsample_nohdr.cpp"
  81. $File "Engine_Post_dx9.cpp"
  82. $File "emissive_scroll_blended_pass_helper.cpp"
  83. $File "eye_refract.cpp"
  84. $File "eye_refract_helper.cpp"
  85. $File "eyes_dx8_dx9_helper.cpp"
  86. $File "eyes_dx9.cpp"
  87. $File "eyeglint_dx9.cpp"
  88. $File "filmdust_dx8_dx9.cpp"
  89. $File "filmgrain_dx8_dx9.cpp"
  90. $File "flesh_interior_blended_pass_helper.cpp"
  91. $File "floatcombine.cpp"
  92. $File "floatcombine_autoexpose.cpp"
  93. $File "floattoscreen.cpp"
  94. $File "floattoscreen_vanilla.cpp"
  95. $File "HDRCombineTo16Bit.cpp"
  96. $File "HDRSelectRange.cpp"
  97. $File "hsl_filmgrain_pass1.cpp"
  98. $File "hsl_filmgrain_pass2.cpp"
  99. $File "hsv.cpp"
  100. $File "introscreenspaceeffect.cpp"
  101. $File "lightmappedgeneric_dx9.cpp"
  102. $File "lightmappedgeneric_dx9_helper.cpp"
  103. $File "lightmappedreflective.cpp"
  104. $File "modulate_dx9.cpp"
  105. $File "MonitorScreen_dx9.cpp"
  106. $File "morphaccumulate_dx9.cpp" [$WIN32]
  107. $File "morphweight_dx9.cpp" [$WIN32]
  108. $File "motion_blur_dx9.cpp"
  109. $File "occlusion_dx9.cpp"
  110. $File "particlelitgeneric_dx9.cpp"
  111. $File "particlelitgeneric_dx9_helper.cpp"
  112. $File "particlesphere_dx9.cpp"
  113. $File "portal.cpp"
  114. $File "portalstaticoverlay.cpp"
  115. $File "portal_refract.cpp"
  116. $File "portal_refract_helper.cpp"
  117. $File "pyro_vision.cpp"
  118. $File "refract.cpp"
  119. $File "refract_dx9_helper.cpp"
  120. $File "rendertargetblit_x360.cpp" [$X360]
  121. $File "sample4x4.cpp"
  122. $File "sample4x4_blend.cpp"
  123. $File "screenspace_general.cpp"
  124. $File "sfm_blurfilterx.cpp"
  125. $File "sfm_blurfiltery.cpp"
  126. $File "sfm_downsample.cpp"
  127. $File "sfm_integercombine.cpp"
  128. $File "shadow.cpp"
  129. $File "shadowbuild_dx9.cpp"
  130. $File "shadowmodel_dx9.cpp"
  131. $File "shatteredglass.cpp"
  132. $File "showz.cpp"
  133. $File "skin_dx9_helper.cpp"
  134. $File "sky_dx9.cpp"
  135. $File "sky_hdr_dx9.cpp"
  136. $File "sprite_dx9.cpp"
  137. $File "spritecard.cpp"
  138. $File "teeth.cpp"
  139. $File "TreeLeaf.cpp"
  140. $File "unlitgeneric_dx9.cpp"
  141. $File "unlittwotexture_dx9.cpp"
  142. $File "vertexlitgeneric_dx9.cpp"
  143. $File "vertexlitgeneric_dx9_helper.cpp"
  144. $File "volume_clouds.cpp"
  145. $File "volume_clouds_helper.cpp"
  146. $File "vortwarp_dx9.cpp"
  147. $File "vr_distort_hud.cpp"
  148. $File "vr_distort_texture.cpp"
  149. $File "warp.cpp"
  150. $File "water.cpp"
  151. $File "weapon_sheen_pass_helper.cpp"
  152. $File "windowimposter_dx90.cpp"
  153. $File "wireframe_dx9.cpp"
  154. $File "worldtwotextureblend.cpp"
  155. $File "worldvertexalpha.cpp"
  156. $File "worldvertextransition.cpp"
  157. $File "worldvertextransition_dx8_helper.cpp"
  158. $File "writez_dx9.cpp"
  159. $File "writestencil_dx9.cpp"
  160. $Folder "Remove me when VAC2 is out" [$WIN32]
  161. {
  162. $File "$SRCDIR\tier1\checksum_crc.cpp"
  163. $File "$SRCDIR\tier1\checksum_md5.cpp"
  164. $File "..\shader_dll_verify.cpp"
  165. $File "..\shader_dll_verify.h"
  166. }
  167. // 360 collapes stdshader_dbg.dll into stdshader_dx9.dll
  168. $Folder "stdshader_dbg Files" [$X360]
  169. {
  170. $File "debugdepth.cpp"
  171. $File "DebugDrawEnvmapMask.cpp"
  172. $File "debugluxel.cpp"
  173. $File "debugnormalmap.cpp"
  174. $File "debugtangentspace.cpp"
  175. $File "fillrate.cpp"
  176. // dead shader, but hl2 models have it
  177. $File "eyeball.cpp"
  178. }
  179. }
  180. $Folder "Xbox" [$X360]
  181. {
  182. -$File "xbox\xbox.def"
  183. $File "xbox\xbox_dx9.def"
  184. }
  185. $Folder "Header Files"
  186. {
  187. $File "BaseVSShader.h"
  188. $File "cloak_dx9_helper.h"
  189. $File "common_fxc.h"
  190. $File "common_hlsl_cpp_consts.h"
  191. $File "common_ps_fxc.h"
  192. $File "common_vertexlitgeneric_dx9.h"
  193. $File "common_vs_fxc.h"
  194. $File "lightmappedgeneric_dx9_helper.h"
  195. $File "lightmappedgeneric_ps2_3_x.h"
  196. $File "refract_dx9_helper.h"
  197. $File "shader_constant_register_map.h"
  198. $File "skin_dx9_helper.h"
  199. $File "particlelitgeneric_dx9_helper.h"
  200. $File "vertexlitgeneric_dx95_helper.h"
  201. $File "vortwarp_vs20_helper.h"
  202. $File "worldvertextransition_dx8_helper.h"
  203. $File "water_ps2x_helper.h"
  204. }
  205. $Folder "Link Libraries" [$WIN32]
  206. {
  207. $File "$SRCDIR\dx9sdk\lib\d3dx9.lib"
  208. }
  209. $Folder "Link Libraries"
  210. {
  211. $Lib mathlib
  212. $Lib shaderlib
  213. }
  214. $File "$SRCDIR\devtools\bin\vsh_prep.pl"
  215. $File "$SRCDIR\devtools\bin\psh_prep.pl"
  216. $File "$SRCDIR\devtools\bin\fxc_prep.pl"
  217. $File "$SRCDIR\devtools\bin\updateshaders.pl"
  218. $File "$SRCDIR\devtools\bin\copyshaders.pl"
  219. $File "$SRCDIR\devtools\bin\p4autocheckout.pl"
  220. $File "$SRCDIR\devtools\bin\p4revertshadertargets.pl"
  221. $File "$SRCDIR\devtools\bin\valve_perl_helpers.pl"
  222. $File "$SRCDIR\devtools\bin\checkshaderchecksums.pl"
  223. $File "buildallshaders.bat"
  224. $File "buildshaders.bat"
  225. $Shaders "stdshader_dx9_20b.txt"
  226. $Shaders "stdshader_dx9_30.txt"
  227. //$Shaders "stdshader_dx10.txt"
  228. }