Skip to content

Commit

Permalink
Add Mapnik and GeocoderNLP version information
Browse files Browse the repository at this point in the history
  • Loading branch information
rinigus committed Jan 14, 2024
1 parent 4014063 commit 94b89e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/src/infohub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@

#include <iostream>

#ifdef USE_MAPNIK
#include <mapnik/version.hpp>
#endif
#ifdef USE_VALHALLA
#include <valhalla/valhalla.h>
#endif
#include "geocoder-nlp/src/version.h"

InfoHub* InfoHub::s_instance = nullptr;

Expand Down Expand Up @@ -191,6 +195,13 @@ QString InfoHub::versionLibs()
{
QString version;
QTextStream s(&version);
s << QStringLiteral("GeocoderNLP: ")
<< GEOCODERNLP_VERSION_STRING << "\n";
#ifdef USE_MAPNIK
s << QStringLiteral("Mapnik: ")
<< MAPNIK_VERSION_STRING << "\n";

#endif
#ifdef USE_VALHALLA
s << QStringLiteral("Valhalla: ")
<< VALHALLA_VERSION_MAJOR << "."
Expand Down

0 comments on commit 94b89e3

Please sign in to comment.