Team Fortress 2 Source Code as on 22/4/2020
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.

39 lines
1.6 KiB

  1. //-----------------------------------------------------------------------------
  2. // SOURCE_REPLAY.VPC
  3. //
  4. // Controls compilation of the replay system via the REPLAY_ENABLE preprocessor
  5. // definition.
  6. //
  7. // The BUILD_REPLAY macro (below) controls the definition of REPLAY_ENABLE
  8. // across multiple projects like engine, TF client & server DLL's, and any
  9. // other games with replay support.
  10. //
  11. // This file serves two purposes:
  12. //
  13. // 1. To provide a single place where replay can be built out of all games,
  14. // in other words the engine, as well as any supported game client/server
  15. // DLL's. This is useful for avoiding shipping any replay code prematurely
  16. // (i.e. when we do staging -> rel integrations), for example.
  17. //
  18. // 1. Any client/server DLL's that don't have REPLAY_ENABLE defined will not
  19. // attempt to load or interact with the replay system, because they will
  20. // not build the code to do so.
  21. //
  22. // If BUILD_REPLAY=1, replay will be built in the engine, and client/server
  23. // projects for supported games - otherwise, it will not.
  24. //
  25. // If you are adding replay support to a specific game, you must include this
  26. // file in both its client_* and server_*.vpc files.
  27. //
  28. // This file should not be included in client_base.vpc or server_base.vpc.
  29. //
  30. // Replay is only loaded for games explicitly specified in engine/replay.cpp
  31. // (see s_pSupportedReplayGames).
  32. //
  33. //-----------------------------------------------------------------------------
  34. $Macro BUILD_REPLAY 1
  35. //-----------------------------------------------------------------------------
  36. $Include "$SRCDIR\vpc_scripts\source_replay_private.vpc" [$BUILD_REPLAY && !$X360]