| 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 |
#ifndef DXX_VERSID_BUILD_DATE |
| 11 |
#define DXX_VERSID_BUILD_DATE __DATE__ |
| 12 |
#endif |
| 13 |
|
| 14 |
#ifndef DXX_VERSID_BUILD_TIME |
| 15 |
#define DXX_VERSID_BUILD_TIME __TIME__ |
| 16 |
#endif |
| 17 |
|
| 18 |
// "D1X-Rebirth" or "D2X-Rebirth" |
| 19 |
constexpr char g_descent_version[]{'D', DXX_BUILD_DESCENT + '0', 'X', '-', 'R', 'e', 'b', 'i', 'r', 't', 'h', |
| 20 |
#ifdef DESCENT_VERSION_EXTRA |
| 21 |
' ', DESCENT_VERSION_EXTRA, |
| 22 |
#endif |
| 23 |
0}; |
| 24 |
constexpr char g_descent_build_datetime[21] = DXX_VERSID_BUILD_DATE " " DXX_VERSID_BUILD_TIME; |
| 25 |
|
| 26 |
#ifdef DXX_RBE |
| 27 |
#define RECORD_BUILD_VARIABLE(X) extern const char g_descent_##X[]; \ |
| 28 |
constexpr char g_descent_##X[] dxx_compiler_attribute_used = {DESCENT_##X}; |
| 29 |
|
| 30 |
DXX_RBE(RECORD_BUILD_VARIABLE); |
| 31 |
#endif |