home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 March / Gamestar_82_2006-03_dvd.iso / DVDStar / Editace / quake4_sdkv10.exe / source / framework / BuildDefines.h next >
C/C++ Source or Header  |  2005-11-14  |  2KB  |  92 lines

  1.  
  2. /*
  3. ===============================================================================
  4.  
  5.     Preprocessor settings for compiling different versions.
  6.  
  7. ===============================================================================
  8. */
  9.  
  10. // useful for network debugging, turns off 'LAN' checks, all IPs are classified 'internet'
  11. #ifndef ID_NOLANADDRESS
  12.     #define ID_NOLANADDRESS 0
  13. #endif
  14.  
  15. #ifndef ID_VERSIONTAG
  16.     #define ID_VERSIONTAG ""
  17.     //#define ID_VERSIONTAG ".MP"
  18. #endif
  19.  
  20. // let .dds be loaded from FS without altering pure state. only for developement.
  21. #ifndef ID_PURE_ALLOWDDS
  22.     #define ID_PURE_ALLOWDDS 0
  23. #endif
  24.  
  25. // build an exe with no CVAR_CHEAT controls
  26. #ifndef ID_ALLOW_CHEATS
  27.     #define ID_ALLOW_CHEATS 0
  28. #endif
  29.  
  30. #ifndef ID_ENABLE_CURL
  31. // http/ftp and ingame patch download are off until patch 1
  32. #define ID_ENABLE_CURL 0
  33. /*
  34.     #if !defined( _XENON ) && !defined( ID_DEDICATED )
  35.         #define ID_ENABLE_CURL 1
  36.     #else
  37.         #define ID_ENABLE_CURL 0
  38.     #endif
  39. */
  40. #endif
  41.  
  42. // fake a pure client. useful to connect an all-debug client to a server
  43. #ifndef ID_FAKE_PURE
  44.     #define ID_FAKE_PURE 0
  45. #endif
  46.  
  47. // don't do backtraces in release builds.
  48. // atm, we have no useful way to reconstruct the trace, so let's leave it off
  49. #define ID_BT_STUB
  50. #ifndef ID_BT_STUB
  51.     #if defined( __linux__ )
  52.         #if defined( _DEBUG )
  53.             #define ID_BT_STUB
  54.         #endif
  55.     #else
  56.         #define ID_BT_STUB
  57.     #endif
  58. #endif
  59.  
  60. #ifndef ID_ENFORCE_KEY
  61. #    if !defined( ID_DEDICATED ) && !defined( ID_DEMO_BUILD )
  62. #        define ID_ENFORCE_KEY 1
  63. #    else
  64. // twhitaker: just leave it undefined
  65. // TTimo: that breaks the ability to control it from command line settings with !win32 builds, but I can live with it
  66. //#        define ID_ENFORCE_KEY 0
  67. #    endif
  68. #endif
  69.  
  70. // verify checksums in clientinfo traffic
  71. // NOTE: this makes the network protocol incompatible
  72. #ifndef ID_CLIENTINFO_TAGS
  73.     #define ID_CLIENTINFO_TAGS 0
  74. #endif
  75.  
  76. // if this is defined, the executable positively won't work with any paks other
  77. // than the demo pak, even if productid is present.
  78. //#define ID_DEMO_BUILD
  79.  
  80. #if !defined( _WIN32 )
  81.     #define TMP_PBUFFSTUB
  82. #endif
  83.  
  84. // string patchlevel, so I can tag my local modifications from the win32 build tree ( have no access to AutoVersion.h stuff )
  85. #ifndef ID_PATCHLEVEL
  86.     #if defined( __linux__ ) || defined( MACOS_X )
  87.         #define ID_PATCHLEVEL ".0"
  88.     #else
  89.         #define ID_PATCHLEVEL ""
  90.     #endif
  91. #endif
  92.