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.

44 lines
1.4 KiB

  1. //=========== Copyright Valve Corporation, All rights reserved. =============//
  2. //
  3. // Purpose: Common location for hard-coded knowledge about module
  4. // bundles, such as tier2_bundle and tier3_bundle.
  5. //
  6. //===========================================================================//
  7. #pragma once
  8. #include "tier0/platform.h"
  9. // Some places in code, such as vconsole2, have an explicit
  10. // list of DLLs to copy for execution. Make a central point
  11. // to control selecting the right thing based on whether bundles
  12. // are used or not.
  13. #if USE_TIER2_BUNDLE
  14. #define WITH_TIER2_BUNDLE( _Exp ) _Exp
  15. #define WITHOUT_TIER2_BUNDLE( _Exp )
  16. #define WITH_TIER2_BUNDLE_COMMA( _Exp ) _Exp,
  17. #define WITHOUT_TIER2_BUNDLE_COMMA( _Exp )
  18. #else
  19. #define WITH_TIER2_BUNDLE( _Exp )
  20. #define WITHOUT_TIER2_BUNDLE( _Exp ) _Exp
  21. #define WITH_TIER2_BUNDLE_COMMA( _Exp )
  22. #define WITHOUT_TIER2_BUNDLE_COMMA( _Exp ) _Exp,
  23. #endif
  24. #if USE_TIER3_BUNDLE
  25. #define WITH_TIER3_BUNDLE( _Exp ) _Exp
  26. #define WITHOUT_TIER3_BUNDLE( _Exp )
  27. #define WITH_TIER3_BUNDLE_COMMA( _Exp ) _Exp,
  28. #define WITHOUT_TIER3_BUNDLE_COMMA( _Exp )
  29. #else
  30. #define WITH_TIER3_BUNDLE( _Exp )
  31. #define WITHOUT_TIER3_BUNDLE( _Exp ) _Exp
  32. #define WITH_TIER3_BUNDLE_COMMA( _Exp )
  33. #define WITHOUT_TIER3_BUNDLE_COMMA( _Exp ) _Exp,
  34. #endif
  35. // Given a specific module name return the bundled module
  36. // name if the specific module is part of a bundle, otherwise
  37. // return the given module name.
  38. const char *RemapBundledModuleName( const char *pModuleName );