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.

94 lines
3.0 KiB

  1. //-----------------------------------------------------------------------------
  2. // SOURCE_XEX_X360_BASE.VPC
  3. //
  4. // Base Settings for Source(TM) Projects
  5. //-----------------------------------------------------------------------------
  6. $Include "$SRCDIR\vpc_scripts\version.vpc"
  7. // 360 must have a xex load address
  8. $Include "$SRCDIR\vpc_scripts\loadaddress.vpc"
  9. $MacroRequired "LOADADDRESS_DEVELOPMENT"
  10. $MacroRequired "LOADADDRESS_RETAIL"
  11. $MacroRequired "SRCDIR"
  12. $MacroRequired "OUTBINNAME" "$PROJECTNAME"
  13. $MacroRequired "OUTBINDIR"
  14. $MacroRequired "DEVKITBINDIR" "."
  15. $Macro PLATSUBDIR "\."
  16. $Macro LIBPUBLIC "$SRCDIR\lib\public"
  17. $Macro LIBCOMMON "$SRCDIR\lib\common"
  18. $Include "$SRCDIR\vpc_scripts\source_xex_x360_debug.vpc"
  19. $Include "$SRCDIR\vpc_scripts\source_xex_x360_release.vpc"
  20. $IgnoreRedundancyWarning "ON"
  21. // Common Configuration
  22. $Configuration
  23. {
  24. $Compiler
  25. {
  26. $PreprocessorDefinitions "$BASE;_MEMTEST" [$MEMTEST]
  27. $PreprocessorDefinitions "$BASE;_LOWVIOLENCE" [$LV]
  28. $PreprocessorDefinitions "$BASE;_X360DEMO" [$X360DEMO]
  29. $PreprocessorDefinitions "$BASE;COMPILER_MSVC;COMPILER_MSVCX360;MEMOVERRIDE_MODULE=$PROJECTNAME;_DLL_EXT=$_DLL_EXT"
  30. }
  31. $PreBuildEvent
  32. {
  33. $CommandLine "if EXIST $OUTBINDIR\$(TargetName).xex for /f $QUOTEdelims=$QUOTE %%A in ('attrib $QUOTE$OUTBINDIR\$(TargetName).xex$QUOTE') do set valveTmpIsReadOnly=$QUOTE%%A$QUOTE" "\n" \
  34. "set valveTmpIsReadOnlyLetter=%valveTmpIsReadOnly:~6,1%" "\n" \
  35. "if $QUOTE%valveTmpIsReadOnlyLetter%$QUOTE==$QUOTER$QUOTE del /q $(TargetDir)$(TargetName).xex" "\n" \
  36. "$CRCCHECK" "\n"
  37. }
  38. $Xbox360ImageConversion
  39. {
  40. // General
  41. $TitleID "0x5841125A"
  42. //$ProjectDefaults "$SRCDIR\common\portal.xml"
  43. }
  44. $PostBuildEvent
  45. {
  46. $CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetName).xex $SRCDIR" "\n" \
  47. "copy $(TargetDir)$(TargetName).xex $OUTBINDIR\$(TargetName).xex" "\n" \
  48. "if exist $(TargetDir)$(TargetName).map copy $(TargetDir)$(TargetName).map $OUTBINDIR\$(TargetName).map" "\n" \
  49. "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $OUTBINDIR\$(TargetName).pdb $SRCDIR" "\n" \
  50. "copy $(TargetDir)$(TargetName).pdb $OUTBINDIR\$(TargetName).pdb" "\n" \
  51. "copy $(TargetDir)$(TargetName).xdb $OUTBINDIR\$(TargetName).xdb" "\n" \
  52. "call $SRCDIR\vpc_scripts\valve_xbcp_wrapper.cmd $(TargetDir)$(TargetName).xex $(RemoteRoot)\$DEVKITBINDIR\$(TargetName).xex" "\n" \
  53. "call $SRCDIR\..\game\bin\CSSVersionNumber.exe $SRCDIR\..\game\platform\resource\css_code_version_local.txt quiet" "\n"
  54. $Description "Publishing to $OUTBINDIR"
  55. $ExcludedFromBuild "No"
  56. }
  57. }
  58. // Skeleton Project
  59. $Project
  60. {
  61. $Folder "Source Files"
  62. {
  63. $File "$SRCDIR\public\tier0\memoverride.cpp"
  64. {
  65. $Configuration
  66. {
  67. $Compiler
  68. {
  69. $Create/UsePrecompiledHeader "Not Using Precompiled Headers"
  70. }
  71. }
  72. }
  73. }
  74. $Folder "Link Libraries"
  75. {
  76. $File "$LIBPUBLIC\tier0_360.lib"
  77. $File "$LIBPUBLIC\tier1_360.lib"
  78. $File "$LIBPUBLIC\interfaces_360.lib"
  79. $File "$LIBPUBLIC\vstdlib_360.lib"
  80. }
  81. }