specialbuilds.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***********************************************************************************************
  19. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : Commando *
  23. * *
  24. * $Archive:: /Commando/Code/Combat/specialbuilds.h $*
  25. * *
  26. * $Author:: Bhayes $*
  27. * *
  28. * $Modtime:: 3/18/02 11:54a $*
  29. * *
  30. * $Revision:: 5 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if defined(_MSV_VER)
  36. #pragma once
  37. #endif
  38. #ifndef SPECIALBUILDS_H
  39. #define SPECIALBUILDS_H
  40. //
  41. // N.B. Any file that references any of the following special build defines
  42. // must include this file.
  43. //
  44. //-----------------------------------------------------------------------------
  45. // DEFINES
  46. //-----------------------------------------------------------------------------
  47. // Uncomment the BETASERVER define to build a BETASERVER
  48. // this is actually the same as a FULL build, just points to
  49. // different registry entries
  50. //
  51. // #define BETASERVER
  52. //
  53. // Uncomment the BETACLIENT define to omit single-player and
  54. // hosting functionality.
  55. //
  56. // #define BETACLIENT
  57. //
  58. // Uncomment the FREEDEDICATEDSERVER define to permit only dedicated
  59. // hosting.
  60. //
  61. // #define FREEDEDICATEDSERVER
  62. //
  63. // Uncomment the MULTIPLAYERDEMO define to build the MP demo.
  64. //
  65. // #define MULTIPLAYERDEMO
  66. //-----------------------------------------------------------------------------
  67. // COMPILE-TIME WARNINGS
  68. //-----------------------------------------------------------------------------
  69. #ifdef BETASERVER
  70. #pragma message("*** BETASERVER is defined ***")
  71. #endif // BETACLIENT
  72. #ifdef BETACLIENT
  73. #pragma message("*** BETACLIENT is defined ***")
  74. #endif // BETACLIENT
  75. #ifdef FREEDEDICATEDSERVER
  76. #pragma message("*** FREEDEDICATEDSERVER is defined ***")
  77. #endif // FREEDEDICATEDSERVER
  78. #ifdef MULTIPLAYERDEMO
  79. #pragma message("*** MULTIPLAYERDEMO is defined ***")
  80. #endif // MULTIPLAYERDEMO
  81. //
  82. // Disallow specialbuild defines to be used together.
  83. //
  84. #if defined(BETASERVER) && defined(FREEDEDICATEDSERVER)
  85. #error "*** ERROR: specialbuild defines should be mutually exclusive.***"
  86. #endif
  87. #if defined(BETASERVER) && defined(MULTIPLAYERDEMO)
  88. #error "*** ERROR: specialbuild defines should be mutually exclusive.***"
  89. #endif
  90. #if defined(BETASERVER) && defined(BETACLIENT)
  91. #error "*** ERROR: specialbuild defines should be mutually exclusive.***"
  92. #endif
  93. #if defined(BETACLIENT) && defined(FREEDEDICATEDSERVER)
  94. #error "*** ERROR: specialbuild defines should be mutually exclusive.***"
  95. #endif
  96. #if defined(BETACLIENT) && defined(MULTIPLAYERDEMO)
  97. #error "*** ERROR: specialbuild defines should be mutually exclusive.***"
  98. #endif
  99. #if defined(FREEDEDICATEDSERVER) && defined(MULTIPLAYERDEMO)
  100. #error "*** ERROR: specialbuild defines should be mutually exclusive.***"
  101. #endif
  102. //-----------------------------------------------------------------------------
  103. #endif // SPECIALBUILDS_H
  104. /*
  105. //
  106. // 11/07/01 - BETASERVER define no longer needed.
  107. //
  108. // If you uncomment the BETASERVER define, the server will perform exe matching based only
  109. // on the exe resource version number and the strings.tdb internal version number.
  110. // This is a less stringent compatibility test than normal.
  111. // Do not use unless absolutely necessary.
  112. // Only compatible with clients that have BETACLIENT defined.
  113. //
  114. //#define BETASERVER
  115. */
  116. /*
  117. #ifdef BETASERVER
  118. #pragma message("*** BETASERVER is defined ***")
  119. #endif // BETASERVER
  120. */
  121. // Define BETASERVER to create a server and then define BETACLIENT to create a client.