diff options
author | Leith Bade <leith@mapbox.com> | 2014-12-10 19:22:25 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-12-10 19:22:25 +1100 |
commit | 6bb1a5a146bcffde0f5f25587413c5fb076890b5 (patch) | |
tree | b8141fb0de4d565ffbe92d53ebdb26bb8412f370 /scripts | |
parent | c38bd5e40355493fb23b6efbe3a3063cfc9cbe3b (diff) | |
parent | 392150dd4856e1e576a9fa91c52873936504e755 (diff) | |
download | qtlocation-mapboxgl-6bb1a5a146bcffde0f5f25587413c5fb076890b5.tar.gz |
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Conflicts:
include/mbgl/platform/default/headless_view.hpp
platform/default/glfw_view.cpp
platform/default/headless_view.cpp
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build-version.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/scripts/build-version.py b/scripts/build-version.py index 8261aea536..b768f7f43c 100644 --- a/scripts/build-version.py +++ b/scripts/build-version.py @@ -60,30 +60,3 @@ header_path = os.path.join(output_dir, 'include/mbgl/util/version.hpp') mkdir_p(os.path.dirname(header_path)) with open(header_path, 'w') as f: f.write(header) -source = """// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. -#include <mbgl/util/version.hpp> - -namespace mbgl {{ -namespace version {{ - -const int major = {major}; -const int minor = {minor}; -const int patch = {patch}; -const char *revision = "{rev}"; -const char *string = "{major}.{minor}.{patch}"; -const unsigned int number = 0x{major:02x}{minor:02x}{patch:02x}; - -}} -}} -""".format( - major = tag[0], - minor = tag[1], - patch = tag[2], - rev = rev -) - -# Note: We can't use version.cpp since libuv already has a file named version.c. -# Having another one here would overwrite that file and cause missing symbols errors. -source_path = os.path.join(output_dir, 'src/mbgl/util/mbgl_version.cpp') -mkdir_p(os.path.dirname(source_path)) -with open(source_path, 'w') as f: f.write(source) |