Subversion Repositories Games.Descent

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
  3.  * It is copyright by its individual contributors, as recorded in the
  4.  * project's Git history.  See COPYING.txt at the top level for license
  5.  * terms and a link to the Git history.
  6.  */
  7. #include "dxxsconf.h"
  8. #include "vers_id.h"
  9.  
  10. #if defined(DXX_BUILD_DESCENT_I)
  11. #define DXX_NAME_NUMBER "1"
  12. #elif defined(DXX_BUILD_DESCENT_II)
  13. #define DXX_NAME_NUMBER "2"
  14. #else
  15. #error "Must set DXX_BUILD_DESCENT_I or DXX_BUILD_DESCENT_II"
  16. #endif
  17.  
  18. #ifndef DXX_VERSID_BUILD_DATE
  19. #define DXX_VERSID_BUILD_DATE   __DATE__
  20. #endif
  21.  
  22. #ifndef DXX_VERSID_BUILD_TIME
  23. #define DXX_VERSID_BUILD_TIME   __TIME__
  24. #endif
  25.  
  26. constexpr char g_descent_version[] = "D" DXX_NAME_NUMBER "X-Rebirth " DESCENT_VERSION_EXTRA;
  27. constexpr char g_descent_build_datetime[21] = DXX_VERSID_BUILD_DATE " " DXX_VERSID_BUILD_TIME;
  28.  
  29. #ifdef DXX_RBE
  30. #define RECORD_BUILD_VARIABLE(X)        extern const char g_descent_##X[];      \
  31.         const char g_descent_##X[] __attribute_used = #X "=" DESCENT_##X;
  32.  
  33. DXX_RBE(RECORD_BUILD_VARIABLE);
  34. #endif
  35.