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.

95 lines
2.2 KiB

  1. //-----------------------------------------------------------------------------
  2. // Base Settings for Source(TM) Projects
  3. //-----------------------------------------------------------------------------
  4. $Include "$SRCDIR\vpc_scripts\version.vpc"
  5. $MacroRequired "SRCDIR"
  6. $MacroRequired "OUTBINNAME" "$PROJECTNAME"
  7. $MacroRequired "OUTBINDIR"
  8. $Macro PLATSUBDIR "\."
  9. $Macro LIBPUBLIC "$SRCDIR\lib\public"
  10. $Macro LIBCOMMON "$SRCDIR\lib\common"
  11. // - PPU specific library directories -
  12. // C/C++ langauge support libraries live here:
  13. $Macro SCE_PPU_GCC_LIBROOT "$(SCE_PS3_ROOT)\host-win32\ppu\lib\gcc\ppu-lv2\4.1.1\fno-exceptions"
  14. // Standard libraries and PS3-specific libraries live here
  15. $Macro SCE_PPU_LIBROOT "$(SCE_PS3_ROOT)\target\ppu\lib"
  16. $Include "$SRCDIR\vpc_scripts\source_ppu_prx_ps3_debug.vpc"
  17. $Include "$SRCDIR\vpc_scripts\source_ppu_prx_ps3_release.vpc"
  18. $IgnoreRedundancyWarning "ON"
  19. // Common Configuration
  20. $Configuration
  21. {
  22. $Compiler
  23. {
  24. $PreprocessorDefinitions "$BASE;_MEMTEST" [$MEMTEST]
  25. $PreprocessorDefinitions "$BASE;_LOWVIOLENCE" [$LV]
  26. $PreprocessorDefinitions "$BASE;_CERT" [$CERT]
  27. $PreprocessorDefinitions "$BASE;NO_STEAM" [$NO_STEAM]
  28. $PreprocessorDefinitions "$BASE;MEMOVERRIDE_MODULE=$PROJECTNAME;_DLL_EXT=$_DLL_EXT"
  29. $PreprocessorDefinitions "$BASE;DLLNAME=$OUTBINNAME"
  30. }
  31. $PreBuildEvent
  32. {
  33. $CommandLine "$CRCCHECK" "\n"
  34. }
  35. $PostBuildEvent
  36. {
  37. $CommandLine "$BASE" "\n" \
  38. "copy $(TargetDir)$(TargetName).sprx $OUTBINDIR\$(TargetName).sprx" "\n" \
  39. "copy $(TargetPath) $OUTBINDIR\$(TargetFileName)"
  40. }
  41. }
  42. // Skeleton Project
  43. $Project
  44. {
  45. $Folder "Source Files"
  46. {
  47. $File "$SRCDIR\common\ps3\prx.cpp"
  48. $File "$SRCDIR\public\tier0\memoverride.cpp"
  49. {
  50. $Configuration
  51. {
  52. $Compiler
  53. {
  54. $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
  55. }
  56. }
  57. }
  58. }
  59. $Folder "Link Libraries"
  60. {
  61. $ImpLib "$LIBPUBLIC\tier0"
  62. $Lib "$LIBPUBLIC\interfaces"
  63. $Lib "$LIBPUBLIC\tier1"
  64. $ImpLib "$LIBPUBLIC\vstdlib"
  65. // PS3 PPU assembly functions
  66. // $File "$SRCDIR\utils\ps3\ps3asmppu\ps3asmppu\gettlsglobals.obj"
  67. }
  68. $File "vsi.nul"
  69. {
  70. $Configuration
  71. {
  72. $CustomBuildStep
  73. {
  74. $CommandLine "echo >nul
"
  75. $Outputs "$(IntDir)\vsi.out"
  76. }
  77. }
  78. }
  79. }