buildnum.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : Combat *
  23. * *
  24. * $Archive:: /Commando/Code/Commando/buildnum.h $*
  25. * *
  26. * Author:: Steve Tall *
  27. * *
  28. * $Modtime:: 10/29/01 9:58p $*
  29. * *
  30. * $Revision:: 2 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. /*
  36. **
  37. ** This is just a placeholder for the build number.
  38. ** A post build step will stamp the build number into here.
  39. **
  40. */
  41. class BuildInfoClass
  42. {
  43. public:
  44. /*
  45. ** Build types.
  46. */
  47. typedef enum {
  48. BUILD_RELEASE,
  49. BUILD_DEBUG,
  50. BUILD_PROFILE
  51. } BuildType;
  52. /*
  53. ** Gets the 32 bit build number.
  54. */
  55. static unsigned long Get_Build_Number(void);
  56. /*
  57. ** Gets the 32 bit build number as a human readable string.
  58. */
  59. static char *Get_Build_Number_String(void);
  60. /*
  61. ** Gets the name of the person who built this executable.
  62. */
  63. static char *Get_Builder_Name(void);
  64. /*
  65. ** Gets the date this executable was built on.
  66. */
  67. static char *Get_Build_Date_String(void);
  68. /*
  69. ** Gets the initials of the person who built this executable.
  70. */
  71. static char *Get_Builder_Initials(void);
  72. /*
  73. ** Get a composite build number string with the works.
  74. */
  75. static char *Get_Build_Version_String(void);
  76. /*
  77. ** Get build type.
  78. */
  79. static BuildType Get_Build_Type(void);
  80. static char *Get_Build_Type_String(void);
  81. /*
  82. ** Dump build info to the log file
  83. */
  84. static void Log_Build_Info(void);
  85. /*
  86. ** Lots of build info together.
  87. */
  88. static char *Composite_Build_Info(void);
  89. private:
  90. static char BuildNumber [64];
  91. static char BuildDate [64];
  92. };