fixup version reports
- Pango and Cairo now describe both their compile time and runtime versions - Boost now states that it is the compile time version, afaik wesnoth cannot determine what boost versions it is linked against.
This commit is contained in:
parent
aa0ec207e3
commit
e9fdef9bd3
2 changed files with 11 additions and 2 deletions
11
src/font.cpp
11
src/font.cpp
|
@ -38,6 +38,7 @@
|
|||
#include <list>
|
||||
#include <set>
|
||||
#include <stack>
|
||||
#include <sstream>
|
||||
|
||||
#include <cairo-features.h>
|
||||
|
||||
|
@ -322,7 +323,15 @@ namespace font {
|
|||
|
||||
std::string describe_versions()
|
||||
{
|
||||
return std::string("Cairo version: ") + cairo_version_string() + "\nPango version: " + pango_version_string() + "\n";
|
||||
std::stringstream ss;
|
||||
|
||||
ss << "Compiled with Cairo version: " << CAIRO_VERSION_STRING << std::endl;
|
||||
ss << "Running with Cairo version: " << cairo_version_string() << std::endl;
|
||||
|
||||
ss << "Compiled with Pango version: " << PANGO_VERSION_STRING << std::endl;
|
||||
ss << "Running with Pango version: " << pango_version_string() << std::endl;
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
manager::manager()
|
||||
|
|
|
@ -444,7 +444,7 @@ static int process_command_args(const commandline_options& cmdline_opts) {
|
|||
}
|
||||
if(cmdline_opts.version) {
|
||||
std::cout << "Battle for Wesnoth" << " " << game_config::version << "\n\n";
|
||||
std::cout << "Boost version: " << BOOST_LIB_VERSION << "\n";
|
||||
std::cout << "Compiled with Boost version: " << BOOST_LIB_VERSION << "\n";
|
||||
std::cout << font::describe_versions();
|
||||
std::cout << describe_SDL_versions();
|
||||
std::cout << sound::describe_versions();
|
||||
|
|
Loading…
Add table
Reference in a new issue