2014-03-15 16:59:03 +00:00
|
|
|
/*
|
|
|
|
* Compiles date and time.
|
|
|
|
*
|
|
|
|
* Kalaron: Can't this be somewhere else instead of in an extra c file?
|
|
|
|
* Alam: Code::Block, XCode and the Makefile touch this file to update
|
|
|
|
* the timestamp
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-01-29 00:03:41 +00:00
|
|
|
#if (defined(CMAKECONFIG))
|
|
|
|
#include "config.h"
|
2016-01-14 15:37:58 +00:00
|
|
|
const char *compbranch = SRB2_COMP_BRANCH;
|
2015-01-29 00:03:41 +00:00
|
|
|
const char *comprevision = SRB2_COMP_REVISION;
|
2023-08-01 02:29:45 +00:00
|
|
|
const char *compnote = SRB2_COMP_NOTE;
|
|
|
|
const char *comptype = CMAKE_BUILD_TYPE;
|
|
|
|
const int compoptimized = SRB2_COMP_OPTIMIZED;
|
2015-01-29 00:03:41 +00:00
|
|
|
|
|
|
|
#elif (defined(COMPVERSION))
|
2014-03-15 16:59:03 +00:00
|
|
|
#include "comptime.h"
|
2015-01-29 00:03:41 +00:00
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
#else
|
2016-01-14 12:31:48 +00:00
|
|
|
const char *compbranch = "Unknown";
|
2014-03-15 16:59:03 +00:00
|
|
|
const char *comprevision = "illegal";
|
2015-01-29 00:03:41 +00:00
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
#endif
|
|
|
|
|
2023-08-01 02:29:45 +00:00
|
|
|
const int compuncommitted =
|
|
|
|
#if (defined(COMPVERSION_UNCOMMITTED))
|
|
|
|
1;
|
|
|
|
#else
|
|
|
|
0;
|
|
|
|
#endif
|
|
|
|
|
2014-03-15 16:59:03 +00:00
|
|
|
const char *compdate = __DATE__;
|
|
|
|
const char *comptime = __TIME__;
|