2014-06-01 17:55:23 +00:00
|
|
|
/*
|
2018-09-02 00:57:29 +00:00
|
|
|
* This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
|
2014-06-01 17:55:23 +00:00
|
|
|
* It is copyright by its individual contributors, as recorded in the
|
|
|
|
* project's Git history. See COPYING.txt at the top level for license
|
|
|
|
* terms and a link to the Git history.
|
|
|
|
*/
|
2014-09-13 22:09:32 +00:00
|
|
|
#include "dxxsconf.h"
|
2013-03-03 01:03:33 +00:00
|
|
|
#include "vers_id.h"
|
|
|
|
|
|
|
|
#if defined(DXX_BUILD_DESCENT_I)
|
2022-10-02 19:51:36 +00:00
|
|
|
#define DXX_NAME_NUMBER '1'
|
2013-03-03 01:03:33 +00:00
|
|
|
#elif defined(DXX_BUILD_DESCENT_II)
|
2022-10-02 19:51:36 +00:00
|
|
|
#define DXX_NAME_NUMBER '2'
|
2014-07-26 17:40:12 +00:00
|
|
|
#else
|
|
|
|
#error "Must set DXX_BUILD_DESCENT_I or DXX_BUILD_DESCENT_II"
|
2013-03-03 01:03:33 +00:00
|
|
|
#endif
|
|
|
|
|
2015-03-11 02:19:15 +00:00
|
|
|
#ifndef DXX_VERSID_BUILD_DATE
|
|
|
|
#define DXX_VERSID_BUILD_DATE __DATE__
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DXX_VERSID_BUILD_TIME
|
|
|
|
#define DXX_VERSID_BUILD_TIME __TIME__
|
|
|
|
#endif
|
|
|
|
|
2022-10-02 19:51:36 +00:00
|
|
|
// "D1X-Rebirth " or "D2X-Rebirth "
|
|
|
|
constexpr char g_descent_version[] = {'D', DXX_NAME_NUMBER, 'X', '-', 'R', 'e', 'b', 'i', 'r', 't', 'h', ' ', DESCENT_VERSION_EXTRA};
|
2016-07-23 04:10:42 +00:00
|
|
|
constexpr char g_descent_build_datetime[21] = DXX_VERSID_BUILD_DATE " " DXX_VERSID_BUILD_TIME;
|
2013-11-16 22:59:17 +00:00
|
|
|
|
2014-09-13 22:09:32 +00:00
|
|
|
#ifdef DXX_RBE
|
2013-11-16 22:59:17 +00:00
|
|
|
#define RECORD_BUILD_VARIABLE(X) extern const char g_descent_##X[]; \
|
2022-10-02 19:51:36 +00:00
|
|
|
constexpr char g_descent_##X[] __attribute_used = {DESCENT_##X};
|
2013-11-16 22:59:17 +00:00
|
|
|
|
2014-09-13 22:09:32 +00:00
|
|
|
DXX_RBE(RECORD_BUILD_VARIABLE);
|
2013-11-16 22:59:17 +00:00
|
|
|
#endif
|