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.

46 lines
1.7 KiB

  1. //-----------------------------------------------------------------------------
  2. // source_base.vpc
  3. //
  4. // This is the base VPC file that is included by all others, on all platforms.
  5. //
  6. // Project Script
  7. //-----------------------------------------------------------------------------
  8. // Set which branch we are building out of.
  9. // This is one file we expect to be different between branches and so it must be merged carefully
  10. // Rel branch:
  11. $Conditional CSTRIKE_TRUNK_BUILD "0"
  12. $Conditional CSTRIKE_STAGING_BUILD "0"
  13. $Conditional CSTRIKE_REL_BUILD "1"
  14. // Telemetry is disabled in rel, unless you use /DRAD_TELEMETRY_ENABLED on the vpc command line.
  15. $Conditional RAD_TELEMETRY_DISABLED "1" [ $CSTRIKE_REL_BUILD && !$RAD_TELEMETRY_ENABLED ]
  16. $Configuration "Debug"
  17. {
  18. $Compiler
  19. {
  20. // Pass on appropriate branch define to preprocessor
  21. $PreprocessorDefinitions "VPC"
  22. $PreprocessorDefinitions "$BASE;CSTRIKE_TRUNK_BUILD=1" [ $CSTRIKE_TRUNK_BUILD ]
  23. $PreprocessorDefinitions "$BASE;CSTRIKE_STAGING_BUILD=1" [ $CSTRIKE_STAGING_BUILD ]
  24. $PreprocessorDefinitions "$BASE;CSTRIKE_REL_BUILD=1" [ $CSTRIKE_REL_BUILD ]
  25. $PreprocessorDefinitions "$BASE;RAD_TELEMETRY_DISABLED" [ $RAD_TELEMETRY_DISABLED ]
  26. }
  27. }
  28. $Configuration "Release"
  29. {
  30. $Compiler
  31. {
  32. // Pass on appropriate branch define to preprocessor
  33. $PreprocessorDefinitions "VPC"
  34. $PreprocessorDefinitions "$BASE;CSTRIKE_TRUNK_BUILD=1" [ $CSTRIKE_TRUNK_BUILD ]
  35. $PreprocessorDefinitions "$BASE;CSTRIKE_STAGING_BUILD=1" [ $CSTRIKE_STAGING_BUILD ]
  36. $PreprocessorDefinitions "$BASE;CSTRIKE_REL_BUILD=1" [ $CSTRIKE_REL_BUILD ]
  37. $PreprocessorDefinitions "$BASE;RAD_TELEMETRY_DISABLED" [ $RAD_TELEMETRY_DISABLED ]
  38. }
  39. }