mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
Improve what build information we print to the log at startup. New feature: compilers, their versions, and big-endianness. Removed: C++, as it is now mandatory.
git-svn-id: https://svn.eduke32.com/eduke32@6142 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
25b942de74
commit
576ff98f4d
7 changed files with 55 additions and 24 deletions
|
@ -58,9 +58,10 @@ extern const char *s_buildTimestamp;
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
extern const char *s_buildInfo;
|
||||
|
||||
//// FUNCTIONS
|
||||
extern void PrintBuildInfo(void);
|
||||
|
||||
extern void clearDefNamePtr(void);
|
||||
|
||||
void G_AddGroup(const char *buffer);
|
||||
|
|
|
@ -8,22 +8,54 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
const char* s_buildInfo =
|
||||
#ifdef BITNESS64
|
||||
"(64-bit)"
|
||||
void PrintBuildInfo(void)
|
||||
{
|
||||
buildprint(
|
||||
"Built ", s_buildTimestamp, ", "
|
||||
|
||||
#if defined __INTEL_COMPILER
|
||||
"ICC ", __INTEL_COMPILER / 100, ".", __INTEL_COMPILER % 100, " " __INTEL_COMPILER_BUILD_DATE " (" __VERSION__ ")"
|
||||
#elif defined __clang__
|
||||
"clang "
|
||||
# ifdef DEBUGGINGAIDS
|
||||
__clang_version__
|
||||
# else
|
||||
, __clang_major__, ".", __clang_minor__, ".", __clang_patchlevel__,
|
||||
# endif
|
||||
#elif defined _MSC_VER
|
||||
"MSVC ",
|
||||
# if defined _MSC_FULL_VER
|
||||
_MSC_FULL_VER / 10000000, ".", _MSC_FULL_VER % 10000000 / 100000, ".", _MSC_FULL_VER % 100000, ".", _MSC_BUILD,
|
||||
# else
|
||||
_MSC_VER / 100, ".", _MSC_VER % 100,
|
||||
# endif
|
||||
#elif defined __GNUC__
|
||||
"GCC "
|
||||
# ifdef DEBUGGINGAIDS
|
||||
__VERSION__
|
||||
# else
|
||||
, __GNUC__, ".", __GNUC_MINOR__,
|
||||
# if defined __GNUC_PATCHLEVEL__
|
||||
".", __GNUC_PATCHLEVEL__,
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
"(32-bit)"
|
||||
"Unknown"
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined(__cplusplus)
|
||||
#ifdef _MSC_VER
|
||||
" MSVC"
|
||||
", "
|
||||
#ifdef BITNESS64
|
||||
"64"
|
||||
#else
|
||||
"32"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
" C++"
|
||||
"-bit "
|
||||
#if B_BIG_ENDIAN == 1
|
||||
"big-endian"
|
||||
#endif
|
||||
" build"
|
||||
#endif
|
||||
;
|
||||
"\n");
|
||||
|
||||
// TODO: architecture, OS, maybe build and feature settings
|
||||
}
|
||||
|
||||
// def/clipmap handling
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ void wii_open(void)
|
|||
|
||||
CON_GetMetrics(&ConsoleExtent.x, &ConsoleExtent.y);
|
||||
print_centered(ConsoleExtent.x, AppProperName, s_buildRev);
|
||||
print_centered(ConsoleExtent.x, "Compiled", s_buildTimestamp);
|
||||
print_centered(ConsoleExtent.x, "Built", s_buildTimestamp);
|
||||
|
||||
VIDEO_WaitVSync();
|
||||
if (vmode->viTVMode&VI_NON_INTERLACE)
|
||||
|
|
|
@ -62,7 +62,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||
|
||||
extern const char *s_buildRev;
|
||||
extern const char *s_buildTimestamp;
|
||||
extern const char *s_buildInfo;
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
|
@ -8443,9 +8442,8 @@ int32_t ExtPreInit(int32_t argc,char const * const * argv)
|
|||
|
||||
OSD_SetLogFile("mapster32.log");
|
||||
OSD_SetVersion("Mapster32",0,2);
|
||||
initprintf("Mapster32 %s %s\n", s_buildRev, s_buildInfo);
|
||||
initprintf("Compiled %s\n", s_buildTimestamp);
|
||||
// initprintf("Copyright (c) 2008 EDuke32 team\n");
|
||||
initprintf("Mapster32 %s\n", s_buildRev);
|
||||
PrintBuildInfo();
|
||||
|
||||
G_CheckCommandLine(argc,argv);
|
||||
|
||||
|
|
|
@ -6108,8 +6108,8 @@ int app_main(int argc, char const * const * argv)
|
|||
|
||||
wm_setapptitle(APPNAME);
|
||||
|
||||
initprintf(HEAD2 " %s %s\n", s_buildRev, s_buildInfo);
|
||||
initprintf("Compiled %s\n", s_buildTimestamp);
|
||||
initprintf(HEAD2 " %s\n", s_buildRev);
|
||||
PrintBuildInfo();
|
||||
|
||||
if (!g_useCwd)
|
||||
G_AddSearchPaths();
|
||||
|
|
|
@ -93,8 +93,8 @@ int32_t ExtPreInit(int32_t argc,char const * const * argv)
|
|||
|
||||
OSD_SetLogFile("testeditor.log");
|
||||
OSD_SetVersion(AppProperName,0,2);
|
||||
initprintf("%s %s %s\n", AppProperName, s_buildRev, s_buildInfo);
|
||||
initprintf("Compiled %s\n", s_buildTimestamp);
|
||||
initprintf("%s %s\n", AppProperName, s_buildRev);
|
||||
PrintBuildInfo();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -467,8 +467,8 @@ int32_t app_main(int32_t argc, char const * const * argv)
|
|||
OSD_SetParameters(0,2, 0,0, 4,0);
|
||||
|
||||
OSD_SetLogFile("testgame.log");
|
||||
initprintf("%s %s %s\n", AppProperName, s_buildRev, s_buildInfo);
|
||||
initprintf("Compiled %s\n", s_buildTimestamp);
|
||||
initprintf("%s %s\n", AppProperName, s_buildRev);
|
||||
PrintBuildInfo();
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
OSD_RegisterFunction("restartvid","restartvid: reinitialise the video mode",osdcmd_restartvid);
|
||||
|
|
Loading…
Reference in a new issue