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.

174 lines
4.0 KiB

  1. //-----------------------------------------------------------------------------
  2. // SHADERAPIDX10.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $macro SRCDIR "..\.."
  7. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  8. $Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  9. $Configuration "Debug"
  10. {
  11. $General
  12. {
  13. $OutputDirectory ".\Debug_dx10"
  14. $IntermediateDirectory ".\Debug_dx10"
  15. }
  16. }
  17. $Configuration "Release"
  18. {
  19. $General
  20. {
  21. $OutputDirectory ".\Release_dx10"
  22. $IntermediateDirectory ".\Release_dx10"
  23. }
  24. }
  25. // Common Configuration
  26. $Configuration
  27. {
  28. $Compiler
  29. {
  30. $AdditionalIncludeDirectories "$BASE;$SRCDIR\dx10sdk\include;..\"
  31. $PreprocessorDefinitions "$BASE;SHADERAPIDX10;SHADER_DLL_EXPORT;PROTECTED_THINGS_ENABLE;strncpy=use_Q_strncpy_instead;_snprintf=use_Q_snprintf_instead"
  32. $PreprocessorDefinitions "$BASE;USE_ACTUAL_DX" [$WIN32]
  33. // $AdditionalOptions "/FC"
  34. }
  35. }
  36. $Project "shaderapidx10"
  37. {
  38. $Folder "Source Files"
  39. {
  40. // Shared riles
  41. $File "cvballoctracker.cpp"
  42. $File "shaderdevicebase.cpp"
  43. $File "shaderapibase.cpp"
  44. $File "meshbase.cpp"
  45. // DX10 related files
  46. $File "ShaderDeviceDx10.cpp" \
  47. "ShaderAPIDx10.cpp" \
  48. "MeshDx10.cpp" \
  49. "InputLayoutDx10.cpp" \
  50. "ShaderShadowDx10.cpp"
  51. {
  52. $Configuration
  53. {
  54. $Compiler
  55. {
  56. $PreprocessorDefinitions "$BASE;DX10"
  57. }
  58. }
  59. }
  60. // DX9 related files
  61. $File "ColorFormatDX8.cpp"
  62. $File "d3d_async.cpp"
  63. $File "$SRCDIR\public\filesystem_helpers.cpp"
  64. $File "HardwareConfig.cpp"
  65. $File "MeshDX8.cpp"
  66. $File "Recording.cpp"
  67. $File "ShaderAPIDX8.cpp"
  68. $File "ShaderDeviceDX8.cpp"
  69. $File "ShaderShadowDX8.cpp"
  70. $File "TextureDX8.cpp"
  71. $File "TransitionTable.cpp"
  72. $File "vertexdecl.cpp"
  73. $File "VertexShaderDX8.cpp"
  74. $File "wmi.cpp"
  75. }
  76. $Folder "DirectX Header Files"
  77. {
  78. $File "$SRCDIR\dx10sdk\include\d3d10.h"
  79. $File "$SRCDIR\dx10sdk\include\d3dx10.h"
  80. $File "$SRCDIR\dx10sdk\include\d3dx10core.h"
  81. $File "$SRCDIR\dx10sdk\include\d3dx10math.h"
  82. $File "$SRCDIR\dx10sdk\include\d3dx10math.inl"
  83. $File "$SRCDIR\dx10sdk\include\d3dx10mesh.h"
  84. $File "$SRCDIR\dx10sdk\include\d3dx10tex.h"
  85. }
  86. $Folder "Public Header Files"
  87. {
  88. $File "$SRCDIR\public\shaderapi\ishaderdevice.h"
  89. $File "$SRCDIR\public\shaderapi\ishaderutil.h"
  90. $File "$SRCDIR\public\shaderapi\ishaderapi.h"
  91. $File "$SRCDIR\public\shaderapi\ishaderdynamic.h"
  92. $File "$SRCDIR\public\shaderapi\ishadershadow.h"
  93. $File "$SRCDIR\public\materialsystem\idebugtextureinfo.h"
  94. $File "$SRCDIR\public\materialsystem\ivballoctracker.h"
  95. $File "$SRCDIR\public\materialsystem\shader_vcs_version.h"
  96. }
  97. $Folder "Header Files"
  98. {
  99. // Shared files
  100. $File "meshbase.h"
  101. $File "shaderdevicebase.h"
  102. $File "shaderapibase.h"
  103. $File "shaderapi_global.h"
  104. $File "HardwareConfig.h"
  105. // DX10 related files
  106. $File "ShaderDeviceDx10.h"
  107. $File "ShaderAPIDx10.h"
  108. $File "MeshDx10.h"
  109. $File "ShaderShadowDx10.h"
  110. $File "shaderapidx10_global.h"
  111. $File "inputlayoutdx10.h"
  112. // DX9 related files
  113. $File "TransitionTable.h"
  114. $File "vertexdecl.h"
  115. $File "ColorFormatDX8.h"
  116. $File "d3d_async.h"
  117. $File "dynamicib.h"
  118. $File "dynamicvb.h"
  119. $File "IMeshDX8.h"
  120. $File "locald3dtypes.h"
  121. $File "Recording.h"
  122. $File "ShaderAPIDX8.h"
  123. $File "ShaderAPIDX8_Global.h"
  124. $File "ShaderShadowDX8.h"
  125. $File "stubd3ddevice.h"
  126. $File "TextureDX8.h"
  127. $File "VertexShaderDX8.h"
  128. $File "wmi.h"
  129. }
  130. $Folder "Link Libraries"
  131. {
  132. $DynamicFile "$SRCDIR\lib\public\tier2.lib"
  133. $DynamicFile "$SRCDIR\lib\public\bitmap.lib"
  134. $DynamicFile "$SRCDIR\lib\public\mathlib.lib"
  135. $DynamicFile "$SRCDIR\lib\common\vc7\bzip2.lib"
  136. $File "$SRCDIR\dx10sdk\lib\x86\d3d9.lib"
  137. $File "$SRCDIR\dx10sdk\lib\x86\d3d10.lib"
  138. $File "$SRCDIR\dx10sdk\lib\x86\dxgi.lib"
  139. $File "$SRCDIR\dx10sdk\lib\x86\d3dx10.lib" \
  140. "$SRCDIR\dx10sdk\lib\x86\d3dx9.lib"
  141. {
  142. $Configuration "Debug"
  143. {
  144. $ExcludedFromBuild "Yes"
  145. }
  146. }
  147. $File "$SRCDIR\dx10sdk\lib\x86\d3dx10d.lib" \
  148. "$SRCDIR\dx10sdk\lib\x86\d3dx9d.lib"
  149. {
  150. $Configuration "Release"
  151. {
  152. $ExcludedFromBuild "Yes"
  153. }
  154. }
  155. }
  156. }