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.

177 lines
4.2 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_win32_base.vpc"
  9. $Configuration "Debug"
  10. {
  11. $General
  12. {
  13. $OutputDirectory ".\Debug_dx10$PLATSUBDIR"
  14. $IntermediateDirectory ".\Debug_dx10$PLATSUBDIR"
  15. }
  16. }
  17. $Configuration "Release"
  18. {
  19. $General
  20. {
  21. $OutputDirectory ".\Release_dx10$PLATSUBDIR"
  22. $IntermediateDirectory ".\Release_dx10$PLATSUBDIR"
  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" [$WINDOWS||$X360]
  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 "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. $File "dx9asmtogl2.cpp" [!$PS3]
  76. }
  77. $Folder "DirectX Header Files"
  78. {
  79. $File "$SRCDIR\dx10sdk\include\d3d10.h"
  80. $File "$SRCDIR\dx10sdk\include\d3dx10.h"
  81. $File "$SRCDIR\dx10sdk\include\d3dx10core.h"
  82. $File "$SRCDIR\dx10sdk\include\d3dx10math.h"
  83. $File "$SRCDIR\dx10sdk\include\d3dx10math.inl"
  84. $File "$SRCDIR\dx10sdk\include\d3dx10mesh.h"
  85. $File "$SRCDIR\dx10sdk\include\d3dx10tex.h"
  86. }
  87. $Folder "Public Header Files"
  88. {
  89. $File "$SRCDIR\public\shaderapi\ishaderdevice.h"
  90. $File "$SRCDIR\public\shaderapi\ishaderutil.h"
  91. $File "$SRCDIR\public\shaderapi\ishaderapi.h"
  92. $File "$SRCDIR\public\shaderapi\ishaderdynamic.h"
  93. $File "$SRCDIR\public\shaderapi\ishadershadow.h"
  94. $File "$SRCDIR\public\materialsystem\idebugtextureinfo.h"
  95. $File "$SRCDIR\public\materialsystem\ivballoctracker.h"
  96. $File "$SRCDIR\public\materialsystem\shader_vcs_version.h"
  97. }
  98. $Folder "Header Files"
  99. {
  100. // Shared files
  101. $File "meshbase.h"
  102. $File "shaderdevicebase.h"
  103. $File "shaderapibase.h"
  104. $File "shaderapi_global.h"
  105. $File "HardwareConfig.h"
  106. // DX10 related files
  107. $File "ShaderDeviceDx10.h"
  108. $File "ShaderAPIDx10.h"
  109. $File "MeshDx10.h"
  110. $File "ShaderShadowDx10.h"
  111. $File "shaderapidx10_global.h"
  112. $File "inputlayoutdx10.h"
  113. // DX9 related files
  114. $File "TransitionTable.h"
  115. $File "vertexdecl.h"
  116. $File "CMaterialSystemStats.h"
  117. $File "ColorFormatDX8.h"
  118. $File "d3d_async.h"
  119. $File "dynamicib.h"
  120. $File "dynamicvb.h"
  121. $File "IMeshDX8.h"
  122. $File "locald3dtypes.h"
  123. $File "Recording.h"
  124. $File "ShaderAPIDX8.h"
  125. $File "ShaderAPIDX8_Global.h"
  126. $File "ShaderShadowDX8.h"
  127. $File "stubd3ddevice.h"
  128. $File "TextureDX8.h"
  129. $File "VertexShaderDX8.h"
  130. $File "wmi.h"
  131. }
  132. $Folder "Link Libraries"
  133. {
  134. $File "$SRCDIR\lib\public\tier2.lib"
  135. $File "$SRCDIR\lib\public\bitmap.lib"
  136. $File "$SRCDIR\lib\public\mathlib.lib"
  137. $File "$SRCDIR\lib\common\vc7\bzip2.lib" [!$VS2015]
  138. $File "$SRCDIR\lib\common\vc14\bzip2.lib" [$VS2015]
  139. $File "$SRCDIR\lib\public\videocfg.lib"
  140. $File "$SRCDIR\dx10sdk\lib\x86\d3d9.lib"
  141. $File "$SRCDIR\dx10sdk\lib\x86\d3d10.lib"
  142. $File "$SRCDIR\dx10sdk\lib\x86\dxgi.lib"
  143. $File "$SRCDIR\dx10sdk\lib\x86\d3dx10.lib" \
  144. "$SRCDIR\dx10sdk\lib\x86\d3dx9.lib"
  145. {
  146. $Configuration "Debug"
  147. {
  148. $ExcludedFromBuild "Yes"
  149. }
  150. }
  151. $File "$SRCDIR\dx10sdk\lib\x86\d3dx10d.lib" \
  152. "$SRCDIR\dx10sdk\lib\x86\d3dx9d.lib"
  153. {
  154. $Configuration "Release"
  155. {
  156. $ExcludedFromBuild "Yes"
  157. }
  158. }
  159. }
  160. }