2 Copyright (C) 2003, 2010 - Wolfire Games
3 Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
5 This file is part of Lugaru.
7 Lugaru is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 Lugaru 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.
17 You should have received a copy of the GNU General Public License
18 along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
21 /** Version number is either MAJOR.MINOR, or MAJOR.MINOR.PATCH if PATCH != 0 */
22 const unsigned int VERSION_MAJOR = @LUGARU_VERSION_MAJOR@;
23 const unsigned int VERSION_MINOR = @LUGARU_VERSION_MINOR@;
24 const unsigned int VERSION_PATCH = @LUGARU_VERSION_PATCH@;
25 const std::string VERSION_NUMBER = "@LUGARU_VERSION_NUMBER@";
27 /** Set to "" for stable (tagged) builds, "-dev" for dev builds */
28 const std::string VERSION_SUFFIX = "@LUGARU_VERSION_SUFFIX@";
29 /** Set to 7-char git commit hash if available, otherwise "" */
30 const std::string VERSION_HASH = "@LUGARU_VERSION_HASH@";
31 /** Optional release string, e.g. for distro packages release number */
32 const std::string VERSION_RELEASE = "@LUGARU_VERSION_RELEASE@";
34 /** Final string built from the above constants, following the scheme
35 * defined in CMakeLists.txt, typically:
36 * MAJOR.MINOR[.PATCH][-dev] [(git HASH)] [[RELEASE]]
39 * "1.2-dev (git ab12c34)"
40 * "1.2-dev (git ab12c34) [OSS Lugaru official]"
41 * "1.3.1 [Mageia 1.3.1-2.mga6]"
43 const std::string VERSION_STRING = "@LUGARU_VERSION_STRING@";
45 /** Build type (Release, Debug, RelWithDebInfo) to output to the terminal */
46 const std::string VERSION_BUILD_TYPE = "@CMAKE_BUILD_TYPE@";