xoreos  0.0.5
version.cpp
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
25 #include "src/version/version.h"
26 
27 #if defined(HAVE_CONFIG_H)
28  #include "config.h"
29 #endif
30 
31 // Define default values if the real ones can't be determined
32 
33 #ifndef PACKAGE_NAME
34  #define PACKAGE_NAME "xoreos"
35 #endif
36 
37 #ifndef PACKAGE_VERSION
38  #define PACKAGE_VERSION "0.0.5"
39 #endif
40 
41 #ifndef XOREOS_REVDESC
42  #define XOREOS_REVDESC "unknown"
43 #endif
44 
45 #ifndef XOREOS_REV
46  #define XOREOS_REV "unk"
47 #endif
48 
49 #ifndef XOREOS_BUILDDATE
50  #define XOREOS_BUILDDATE __DATE__ " " __TIME__
51 #endif
52 
53 // If we're in full release mode, the revision is ignored
54 #ifdef XOREOS_RELEASE
55  #undef XOREOS_REV
56  #define XOREOS_REV ""
57  #define XOREOS_REVSEP ""
58 #else
59  #define XOREOS_REVSEP "+"
60 #endif
61 
62 // Distributions may append an extra version string
63 #ifdef XOREOS_DISTRO
64  #undef XOREOS_REV
65  #define XOREOS_REV XOREOS_DISTRO
66 #endif
67 
68 namespace Version {
69 
70 static const char *kProjectName = PACKAGE_NAME;
71 static const char *kProjectVersion = PACKAGE_VERSION;
74 
75 static const char *kProjectURL = "https://xoreos.org/";
76 
77 static const char *kProjectAuthors =
78  "Copyright (c) 2010-2018 by the xoreos team.\n"
79  "Please see the AUTHORS file for details.\n"
80  "\n"
81  "This is free software; see the source for copying conditions. There is NO\n"
82  "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.";
83 
84 const char *getProjectName() {
85  return kProjectName;
86 }
87 
88 const char *getProjectVersion() {
89  return kProjectVersion;
90 }
91 
92 const char *getProjectNameVersion() {
93  return kProjectNameVersion;
94 }
95 
98 }
99 
100 const char *getProjectURL() {
101  return kProjectURL;
102 }
103 
104 const char *getProjectAuthors() {
105  return kProjectAuthors;
106 }
107 
108 } // End of namespace Version
static const char * kProjectName
Definition: version.cpp:70
#define XOREOS_REV
Definition: version.cpp:46
#define XOREOS_REVDESC
Definition: version.cpp:42
static const char * kProjectNameVersionFull
Definition: version.cpp:73
static const char * kProjectVersion
Definition: version.cpp:71
#define XOREOS_BUILDDATE
Definition: version.cpp:50
static const char * kProjectAuthors
Definition: version.cpp:77
static const char * kProjectURL
Definition: version.cpp:75
Basic xoreos version information.
const char * getProjectAuthors()
Definition: version.cpp:104
const char * getProjectNameVersion()
Definition: version.cpp:92
#define PACKAGE_VERSION
Definition: version.cpp:38
#define PACKAGE_NAME
Definition: version.cpp:34
const char * getProjectVersion()
Definition: version.cpp:88
const char * getProjectURL()
Definition: version.cpp:100
const char * getProjectNameVersionFull()
Definition: version.cpp:96
static const char * kProjectNameVersion
Definition: version.cpp:72
const char * getProjectName()
Definition: version.cpp:84
#define XOREOS_REVSEP
Definition: version.cpp:59