summaryrefslogtreecommitdiff
path: root/scripts/build-version.py
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 /scripts/build-version.py
parent318ef5d44314814f4dd7da2ba8c532b0119bdb35 (diff)
downloadqtlocation-mapboxgl-917c0168abcb964d2b7f75ff7bae80e0b5e61c8c.tar.gz
don't include the source file in every library
Diffstat (limited to 'scripts/build-version.py')
-rw-r--r--scripts/build-version.py27
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)