summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-12-09 14:14:11 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-12-09 14:14:11 +0100
commit917c0168abcb964d2b7f75ff7bae80e0b5e61c8c (patch)
treef93a216fff9b007edcad391fa779c46a0c5eefbe /src
parent318ef5d44314814f4dd7da2ba8c532b0119bdb35 (diff)
downloadqtlocation-mapboxgl-917c0168abcb964d2b7f75ff7bae80e0b5e61c8c.tar.gz
don't include the source file in every library
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/version_info.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mbgl/util/version_info.cpp b/src/mbgl/util/version_info.cpp
new file mode 100644
index 0000000000..1d649d2b69
--- /dev/null
+++ b/src/mbgl/util/version_info.cpp
@@ -0,0 +1,14 @@
+#include <mbgl/util/version.hpp>
+
+namespace mbgl {
+namespace version {
+
+const int major = MBGL_VERSION_MAJOR;
+const int minor = MBGL_VERSION_MINOR;
+const int patch = MBGL_VERSION_PATCH;
+const char *revision = MBGL_VERSION_REV;
+const char *string = MBGL_VERSION_STRING;
+const unsigned int number = MBGL_VERSION;
+
+}
+} \ No newline at end of file