aboutsummaryrefslogtreecommitdiff
path: root/revision_data.h.in.cmake
blob: f2852bf89cf97c82154e22882e0e4b4a12c90db1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef TRINITYCORE_REVISION_DATA_H
#define TRINITYCORE_REVISION_DATA_H

// Git commit information
#define TRINITY_GIT_COMMIT_HASH     "@rev_hash@"
#define TRINITY_GIT_COMMIT_DATE     "@rev_date@"
#define TRINITY_GIT_COMMIT_BRANCH   R"(@rev_branch@)"

// Build OS information
#define TRINITY_BUILD_HOST_SYSTEM                   R"(@TRINITY_BUILD_HOST_SYSTEM@)"
#define TRINITY_BUILD_HOST_SYSTEM_VERSION           R"(@TRINITY_BUILD_HOST_SYSTEM_RELEASE@)"
#cmakedefine TRINITY_BUILD_HOST_DISTRO_NAME              R"(@TRINITY_BUILD_HOST_DISTRO_NAME@)"
#cmakedefine TRINITY_BUILD_HOST_DISTRO_VERSION_ID        R"(@TRINITY_BUILD_HOST_DISTRO_VERSION_ID@)"

// Build target information
#define TRINITY_BUILD_PROCESSOR     R"(@CMAKE_SYSTEM_PROCESSOR@)"

// CMake build information
#define TRINITY_BUILD_CMAKE_COMMAND             R"(@CMAKE_COMMAND@)"
#define TRINITY_BUILD_CMAKE_VERSION             R"(@CMAKE_VERSION@)"
#define TRINITY_BUILD_CMAKE_SOURCE_DIRECTORY    R"(@CMAKE_SOURCE_DIR@)"
#define TRINITY_BUILD_CMAKE_BUILD_DIRECTORY     R"(@BUILDDIR@)"

// Database updater base information
#define DATABASE_MYSQL_EXECUTABLE   R"(@MYSQL_EXECUTABLE@)"
#define DATABASE_FULL_DATABASE      "TDB_full_world_1120.25081_2025_08_16.sql"
#define DATABASE_HOTFIXES_DATABASE  "TDB_full_hotfixes_1120.25081_2025_08_16.sql"

// Windows resource defines
#define TRINITY_COMPANYNAME_STR         "TrinityCore Developers"
#define TRINITY_LEGALCOPYRIGHT_STR      "(c)2008-@rev_year@ TrinityCore"
#define TRINITY_FILEVERSION             0,0,0
#define TRINITY_FILEVERSION_STR         "@rev_hash@ @rev_date@ (@rev_branch@ branch)"
#define TRINITY_PRODUCTVERSION          TRINITY_FILEVERSION
#define TRINITY_PRODUCTVERSION_STR      TRINITY_FILEVERSION_STR

#endif // TRINITYCORE_REVISION_DATA_H