OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
q_version.h
1/*
2===========================================================================
3Copyright (C) 2024 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23// q_version.h -- file versioning
24
25#pragma once
26
27#include <q_version.generated.h>
28
29//
30// Version
31//
32// These values are the only one that must be set for the version
33#define PRODUCT_VERSION_MAJOR 0
34#define PRODUCT_VERSION_MINOR 82
35#define PRODUCT_VERSION_PATCH 0
36#define PRODUCT_VERSION_SUFFIX PRODUCT_VERSION_STAGE
37
38//
39// Generated version info
40//
41
42#ifdef GIT_REVISION_BUILD_NUMBER
43# define PRODUCT_VERSION_BUILD_NUMBER GIT_REVISION_BUILD_NUMBER
44#else
45# define PRODUCT_VERSION_BUILD_NUMBER 0
46#endif
47
48#ifdef GIT_BRANCH_NAME
49# define PRODUCT_VERSION_BRANCH GIT_BRANCH_NAME
50#endif
51
52#ifdef GIT_REVISION_HASH
53# define PRODUCT_VERSION_REVISION GIT_REVISION_HASH
54#endif
55
56#ifdef GIT_REVISION_HASH_ABBREVIATED
57# define PRODUCT_VERSION_REVISION_SHORT GIT_REVISION_HASH_ABBREVIATED
58#endif
59
60#ifdef GIT_REVISION_DATE
61# define PRODUCT_VERSION_DATE GIT_REVISION_DATE
62#else
63# define PRODUCT_VERSION_DATE __DATE__
64#endif
65
66#define Q3_VERSION PRODUCT_VERSION_FULL
67
68//
69// Version display
70//
71#define PRODUCT_VERSION_NUMBER_STRING XSTRING(PRODUCT_VERSION_MAJOR) "." XSTRING(PRODUCT_VERSION_MINOR) "." XSTRING(PRODUCT_VERSION_PATCH)
72
73#define PRODUCT_VERSION PRODUCT_VERSION_NUMBER_STRING
74
75#ifdef PRODUCT_VERSION_SUFFIX
76# define PRODUCT_VERSION_1 PRODUCT_VERSION "-" PRODUCT_VERSION_SUFFIX
77#else
78# define PRODUCT_VERSION_1 PRODUCT_VERSION
79#endif
80
81# define PRODUCT_VERSION_2 PRODUCT_VERSION_1 "+" XSTRING(PRODUCT_VERSION_BUILD_NUMBER)
82
83#ifdef PRODUCT_VERSION_REVISION
84# define PRODUCT_VERSION_3 PRODUCT_VERSION_2 "." PRODUCT_VERSION_REVISION_SHORT
85#else
86# define PRODUCT_VERSION_3 PRODUCT_VERSION_2
87#endif
88
89#define PRODUCT_VERSION_FULL PRODUCT_VERSION_3
90
91#define PRODUCT_NAME_FULL PRODUCT_NAME " - v" PRODUCT_VERSION_1
92
93/*
94//
95// Version
96//
97// These values are the only one that must be set for the version
98extern const unsigned int PRODUCT_VERISON_MAJOR;
99extern const unsigned int PRODUCT_VERISON_MINOR;
100extern const unsigned int PRODUCT_VERISON_PATCH;
101extern const char* PRODUCT_VERSION_STAGE;
102
103extern const char* PRODUCT_VERSION_BRANCH;
104extern const char* PRODUCT_VERSION_REVISION_HASH;
105extern const char* PRODUCT_VERSION_REVISION_DATE;
106*/