diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-03 15:59:42 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-08 10:59:59 -0600 |
commit | 150b938b4922ec162bcb593c365e3d3616e0dbd7 (patch) | |
tree | edc3cf391f8971e98752fe1c52f8513afeb71cef /src | |
parent | d3ca6c67f1b8fbf5d71c307e71ba89a483ec75bc (diff) | |
download | qtlocation-mapboxgl-150b938b4922ec162bcb593c365e3d3616e0dbd7.tar.gz |
[build, ios, macos] Simplify version portion of user agent string
The X.Y.Z version portion was unreliable, as it pulled from the latest tag regardless of platform. Set version to 0.0.0 and retrieve only the hash, which allows us to drop the node/npm dependency.
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/util/version.cpp | 9 | ||||
-rw-r--r-- | src/mbgl/util/version.hpp | 9 | ||||
-rw-r--r-- | src/mbgl/util/version_info.cpp | 14 |
3 files changed, 18 insertions, 14 deletions
diff --git a/src/mbgl/util/version.cpp b/src/mbgl/util/version.cpp new file mode 100644 index 0000000000..fcb31f0b71 --- /dev/null +++ b/src/mbgl/util/version.cpp @@ -0,0 +1,9 @@ +#include <mbgl/util/version.hpp> + +namespace mbgl { +namespace version { + +const char* revision = MBGL_VERSION_REV; + +} // namespace version +} // namespace mbgl diff --git a/src/mbgl/util/version.hpp b/src/mbgl/util/version.hpp new file mode 100644 index 0000000000..e652016485 --- /dev/null +++ b/src/mbgl/util/version.hpp @@ -0,0 +1,9 @@ +#pragma once + +namespace mbgl { +namespace version { + +extern const char* revision; + +} // namespace version +} // namespace mbgl diff --git a/src/mbgl/util/version_info.cpp b/src/mbgl/util/version_info.cpp deleted file mode 100644 index f0fb139bca..0000000000 --- a/src/mbgl/util/version_info.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#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; - -} // namespace version -} // namespace mbgl |