The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
build_info.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015 - 2016 by Ignacio Riquelme Morelle <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef BUILD_CONFIG_HPP_INCLUDED
16 #define BUILD_CONFIG_HPP_INCLUDED
17 
18 #include <string>
19 #include <vector>
20 
21 namespace game_config
22 {
23 
25 {
27 
30 
37 
39 };
40 
42 {
44  bool enabled;
45 
46  optional_feature(const char* n) : name(n), enabled(false) {}
47 };
48 
49 /**
50  * Return a localized features table.
51  */
52 std::vector<optional_feature> optional_features_table();
53 
54 /**
55  * Produce a plain-text report of features suitable for stdout/stderr.
56  */
58 
59 /**
60  * Retrieve the build-time version number of the given library.
61  */
63 
64 /**
65  * Retrieve the runtime version number of the given library.
66  */
68 
69 /**
70  * Retrieve the user-visible name for the given library.
71  */
73 
74 /**
75  * Produce a plain-text report of library versions suitable for stdout/stderr.
76  */
78 
79 } // end namespace game_config
80 
81 #endif
std::string library_versions_report()
Produce a plain-text report of library versions suitable for stdout/stderr.
Definition: build_info.cpp:277
std::string optional_features_report()
Produce a plain-text report of features suitable for stdout/stderr.
Definition: build_info.cpp:317
const std::string & library_build_version(LIBRARY_ID lib)
Retrieve the build-time version number of the given library.
Definition: build_info.cpp:233
const std::string & library_name(LIBRARY_ID lib)
Retrieve the user-visible name for the given library.
Definition: build_info.cpp:251
std::vector< optional_feature > optional_features_table()
Return a localized features table.
Definition: build_info.cpp:223
Game configuration data as global variables.
Definition: build_info.cpp:38
const std::string & library_runtime_version(LIBRARY_ID lib)
Retrieve the runtime version number of the given library.
Definition: build_info.cpp:242
optional_feature(const char *n)
Definition: build_info.hpp:46
GLclampd n
Definition: glew.h:5903
GLsizei const GLcharARB ** string
Definition: glew.h:4503