mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 04:59:41 -04:00
* Adds CMAKE_COMMAND and CMAKE_BINARY_DIR to revision_data.h * Move the source and mysql exe path handling out of the DBUpdater. * Make some Config methods const for correctness. * Remove C & CXX flags from revision_data.h (was unused and didn't capture all cxx vars) * Reorder the link order to prevent `ld` from ignoring the file * Ref #15671
84 lines
1.5 KiB
C++
84 lines
1.5 KiB
C++
#include "GitRevision.h"
|
|
#include "CompilerDefs.h"
|
|
#include "revision_data.h"
|
|
|
|
char const* GitRevision::GetHash()
|
|
{
|
|
return _HASH;
|
|
}
|
|
|
|
char const* GitRevision::GetDate()
|
|
{
|
|
return _DATE;
|
|
}
|
|
|
|
char const* GitRevision::GetBranch()
|
|
{
|
|
return _BRANCH;
|
|
}
|
|
|
|
char const* GitRevision::GetCMakeCommand()
|
|
{
|
|
return _CMAKE_COMMAND;
|
|
}
|
|
|
|
char const* GitRevision::GetBuildDirectory()
|
|
{
|
|
return _BUILD_DIRECTORY;
|
|
}
|
|
|
|
char const* GitRevision::GetSourceDirectory()
|
|
{
|
|
return _SOURCE_DIRECTORY;
|
|
}
|
|
|
|
char const* GitRevision::GetMySQLExecutable()
|
|
{
|
|
return _MYSQL_EXECUTABLE;
|
|
}
|
|
|
|
char const* GitRevision::GetFullDatabase()
|
|
{
|
|
return _FULL_DATABASE;
|
|
}
|
|
|
|
char const* GitRevision::GetHotfixesDatabase()
|
|
{
|
|
return _HOTFIXES_DATABASE;
|
|
}
|
|
|
|
#define _PACKAGENAME "TrinityCore"
|
|
|
|
char const* GitRevision::GetFullVersion()
|
|
{
|
|
#if PLATFORM == PLATFORM_WINDOWS
|
|
# ifdef _WIN64
|
|
return _PACKAGENAME " rev. " VER_PRODUCTVERSION_STR " (Win64, " _BUILD_DIRECTIVE ")";
|
|
# else
|
|
return _PACKAGENAME " rev. " VER_PRODUCTVERSION_STR " (Win32, " _BUILD_DIRECTIVE ")";
|
|
# endif
|
|
#else
|
|
return _PACKAGENAME " rev. " VER_PRODUCTVERSION_STR " (Unix, " _BUILD_DIRECTIVE ")";
|
|
#endif
|
|
}
|
|
|
|
char const* GitRevision::GetCompanyNameStr()
|
|
{
|
|
return VER_COMPANYNAME_STR;
|
|
}
|
|
|
|
char const* GitRevision::GetLegalCopyrightStr()
|
|
{
|
|
return VER_LEGALCOPYRIGHT_STR;
|
|
}
|
|
|
|
char const* GitRevision::GetFileVersionStr()
|
|
{
|
|
return VER_FILEVERSION_STR;
|
|
}
|
|
|
|
char const* GitRevision::GetProductVersionStr()
|
|
{
|
|
return VER_PRODUCTVERSION_STR;
|
|
}
|