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.

89 lines
2.8 KiB

  1. //-----------------------------------------------------------------------------
  2. // SHADERDX8.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $Macro SRCDIR "..\.."
  7. $Macro SHADERAPIDX9DIR "."
  8. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  9. $Macro OUTBINNAME "shaderapidx9"
  10. //$Macro SCE_PS3_ROOT "$env(SCE_PS3_ROOT)"
  11. $include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  12. // Common Configuration
  13. $Configuration
  14. {
  15. $Compiler
  16. {
  17. $AdditionalIncludeDirectories "$BASE;$SRCDIR\dx9sdk\include;..\" [$WINDOWS && !$GL]
  18. $AdditionalIncludeDirectories "$BASE;$SRCDIR\thirdparty\nvidia\nvapi" [$WINDOWS]
  19. $AdditionalIncludeDirectories "$BASE;$(XEDK)\include\xbox;..\" [$X360]
  20. $AdditionalIncludeDirectories "$BASE;..\" [$PS3||$POSIX||$GL]
  21. $PreprocessorDefinitions "$BASE;SHADERAPIDX9;SHADER_DLL_EXPORT;PROTECTED_THINGS_ENABLE;strncpy=use_Q_strncpy_instead;_snprintf=use_Q_snprintf_instead"
  22. $PreprocessorDefinitions "$BASE;USE_ACTUAL_DX" [( $WINDOWS || $X360 ) && !$GL]
  23. $PreprocessorDefinitions "$BASE;GL_GLEXT_PROTOTYPES;DX_TO_GL_ABSTRACTION" [$GL]
  24. // $AdditionalOptions "/FC"
  25. }
  26. $Linker
  27. {
  28. $SystemFrameworks "Carbon;OpenGL;Quartz;Cocoa;IOKit"
  29. $SystemLibraries "iconv" [$OSXALL]
  30. $AdditionalDependencies "$BASE ws2_32.lib" [$WINDOWS]
  31. $AdditionalDependencies "$BASE libgcm_sys_stub.a libsysutil_stub.a libresc_stub.a libspurs_stub.a" [$PS3]
  32. }
  33. }
  34. $Configuration "Debug"
  35. {
  36. $Linker [$X360]
  37. {
  38. $AdditionalDependencies "$BASE d3dx9d.lib xuirund.lib xuirenderd.lib xaudiod2.lib xmcored.lib"
  39. }
  40. $Linker [$PS3]
  41. {
  42. // NOTE: We refer to our own build of libPSGL but to system version of libPSGLcgc, even though we build and maintain our own version of libPSGLcgc as well
  43. $AdditionalDependencies "$BASE libgcm_cmddbg.a"
  44. }
  45. }
  46. $Configuration "Release"
  47. {
  48. $Linker [$X360]
  49. {
  50. $AdditionalDependencies "$BASE d3dx9.lib xuirun.lib xuirender.lib xaudio2.lib xmcore.lib"
  51. }
  52. // NOTE: We refer to our own build of libPSGL but to system version of libPSGLcgc, even though we build and maintain our own version of libPSGLcgc as well
  53. // Also, there are 2 release build configurations, ultra-opt and opt, which are different by this one thing only: there's no error checking in "ultra", so it'll be ultra-hard to debug RSX crashes. So, it's linked against in CERT builds only
  54. $Linker [$PS3]
  55. {
  56. $AdditionalDependencies "$BASE libgcm_cmd.a"
  57. }
  58. }
  59. $include "shaderapidx9_inc.vpc"
  60. $Project "shaderapidx9"
  61. {
  62. $Folder "Link Libraries"
  63. {
  64. $Lib bitmap
  65. $Lib mathlib
  66. $Lib tier2
  67. $Lib vtf
  68. $Lib videocfg [$WINDOWS||$POSIX]
  69. $ImpLib togl [!$IS_LIB_PROJECT && $GL]
  70. $Lib "$LIBCOMMON\bzip2"
  71. $File "$SRCDIR\dx9sdk\lib$PLATSUBDIR\d3d9.lib" [$WINDOWS && !$GL]
  72. $File "$SRCDIR\dx9sdk\lib$PLATSUBDIR\d3dx9.lib" [$WINDOWS && !$GL]
  73. $File "$SRCDIR\thirdparty\nvidia\nvapi\lib$PLATSUBDIR\nvapi.lib" [$WINDOWS]
  74. }
  75. }