summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-01-10 16:04:06 -0800
committerKonstantin Käfer <mail@kkaefer.com>2018-01-24 08:35:31 -0800
commite7e6cffcf354cc3d2427103b628f924bb39d7fb0 (patch)
tree0622789f5a19ecb22b4ce1195ae769f45fa04998 /cmake
parent13d27c700e4b0590c4f1c365bfa36cf2a07c437d (diff)
downloadqtlocation-mapboxgl-e7e6cffcf354cc3d2427103b628f924bb39d7fb0.tar.gz
[build] convert CMake file list generation code to JavaScript
Bash sorting is weird...
Diffstat (limited to 'cmake')
-rw-r--r--cmake/benchmark-files.cmake19
-rw-r--r--cmake/core-files.cmake3
-rw-r--r--cmake/files.cmake.ejs13
-rw-r--r--cmake/test-files.cmake59
4 files changed, 51 insertions, 43 deletions
diff --git a/cmake/benchmark-files.cmake b/cmake/benchmark-files.cmake
index 9161209128..fdafcf30f9 100644
--- a/cmake/benchmark-files.cmake
+++ b/cmake/benchmark-files.cmake
@@ -1,30 +1,27 @@
-# Do not edit. Regenerate this with ./scripts/generate-benchmark-files.sh
+# This file is generated. Do not edit. Regenerate this with scripts/generate-cmake-files.js
set(MBGL_BENCHMARK_FILES
# api
benchmark/api/query.benchmark.cpp
benchmark/api/render.benchmark.cpp
+ # benchmark
+ benchmark/include/mbgl/benchmark.hpp
+ benchmark/src/main.cpp
+ benchmark/src/mbgl/benchmark/benchmark.cpp
+ benchmark/src/mbgl/benchmark/stub_geometry_tile_feature.hpp
+
# function
benchmark/function/camera_function.benchmark.cpp
benchmark/function/composite_function.benchmark.cpp
benchmark/function/source_function.benchmark.cpp
- # include/mbgl
- benchmark/include/mbgl/benchmark.hpp
-
# parse
benchmark/parse/filter.benchmark.cpp
benchmark/parse/tile_mask.benchmark.cpp
benchmark/parse/vector_tile.benchmark.cpp
- # src
- benchmark/src/main.cpp
-
- # src/mbgl/benchmark
- benchmark/src/mbgl/benchmark/benchmark.cpp
- benchmark/src/mbgl/benchmark/stub_geometry_tile_feature.hpp
-
# util
benchmark/util/dtoa.benchmark.cpp
+
)
diff --git a/cmake/core-files.cmake b/cmake/core-files.cmake
index 8148fcdc88..24d5262799 100644
--- a/cmake/core-files.cmake
+++ b/cmake/core-files.cmake
@@ -1,4 +1,4 @@
-# Do not edit. Regenerate this with ./scripts/generate-core-files.sh
+# This file is generated. Do not edit. Regenerate this with scripts/generate-cmake-files.js
set(MBGL_CORE_FILES
# actor
@@ -740,4 +740,5 @@ set(MBGL_CORE_FILES
src/mbgl/util/version.cpp
src/mbgl/util/version.hpp
src/mbgl/util/work_request.cpp
+
)
diff --git a/cmake/files.cmake.ejs b/cmake/files.cmake.ejs
new file mode 100644
index 0000000000..57126509ed
--- /dev/null
+++ b/cmake/files.cmake.ejs
@@ -0,0 +1,13 @@
+<%
+ const name = locals.name;
+ const groups = locals.groups;
+-%>
+# This file is generated. Do not edit. Regenerate this with scripts/generate-cmake-files.js
+
+set(MBGL_<%- snakeCaseUpper(name) %>_FILES
+<% for (const key of Object.keys(groups).sort()) { -%>
+ # <%- key %>
+ <%- groups[key].sort().join('\n ') %>
+
+<% } -%>
+)
diff --git a/cmake/test-files.cmake b/cmake/test-files.cmake
index 73f1546308..790198a55e 100644
--- a/cmake/test-files.cmake
+++ b/cmake/test-files.cmake
@@ -1,4 +1,4 @@
-# Do not edit. Regenerate this with ./scripts/generate-test-files.sh
+# This file is generated. Do not edit. Regenerate this with scripts/generate-cmake-files.js
set(MBGL_TEST_FILES
# actor
@@ -29,9 +29,6 @@ set(MBGL_TEST_FILES
test/gl/context.test.cpp
test/gl/object.test.cpp
- # include/mbgl
- test/include/mbgl/test.hpp
-
# map
test/map/map.test.cpp
test/map/prefetch.test.cpp
@@ -55,23 +52,6 @@ set(MBGL_TEST_FILES
test/sprite/sprite_loader.test.cpp
test/sprite/sprite_parser.test.cpp
- # src/mbgl/test
- test/src/mbgl/test/fake_file_source.hpp
- test/src/mbgl/test/fixture_log_observer.cpp
- test/src/mbgl/test/fixture_log_observer.hpp
- test/src/mbgl/test/getrss.cpp
- test/src/mbgl/test/getrss.hpp
- test/src/mbgl/test/stub_file_source.cpp
- test/src/mbgl/test/stub_file_source.hpp
- test/src/mbgl/test/stub_geometry_tile_feature.hpp
- test/src/mbgl/test/stub_layer_observer.hpp
- test/src/mbgl/test/stub_render_source_observer.hpp
- test/src/mbgl/test/stub_style_observer.hpp
- test/src/mbgl/test/stub_tile_observer.hpp
- test/src/mbgl/test/test.cpp
- test/src/mbgl/test/util.cpp
- test/src/mbgl/test/util.hpp
-
# storage
test/storage/asset_file_source.test.cpp
test/storage/default_file_source.test.cpp
@@ -85,6 +65,15 @@ set(MBGL_TEST_FILES
test/storage/resource.test.cpp
test/storage/sqlite.test.cpp
+ # style
+ test/style/filter.test.cpp
+ test/style/properties.test.cpp
+ test/style/source.test.cpp
+ test/style/style.test.cpp
+ test/style/style_image.test.cpp
+ test/style/style_layer.test.cpp
+ test/style/style_parser.test.cpp
+
# style/conversion
test/style/conversion/function.test.cpp
test/style/conversion/geojson_options.test.cpp
@@ -97,9 +86,6 @@ set(MBGL_TEST_FILES
test/style/expression/expression.test.cpp
test/style/expression/util.test.cpp
- # style
- test/style/filter.test.cpp
-
# style/function
test/style/function/camera_function.test.cpp
test/style/function/composite_function.test.cpp
@@ -107,13 +93,23 @@ set(MBGL_TEST_FILES
test/style/function/interval_stops.test.cpp
test/style/function/source_function.test.cpp
- # style
- test/style/properties.test.cpp
- test/style/source.test.cpp
- test/style/style.test.cpp
- test/style/style_image.test.cpp
- test/style/style_layer.test.cpp
- test/style/style_parser.test.cpp
+ # test
+ test/include/mbgl/test.hpp
+ test/src/mbgl/test/fake_file_source.hpp
+ test/src/mbgl/test/fixture_log_observer.cpp
+ test/src/mbgl/test/fixture_log_observer.hpp
+ test/src/mbgl/test/getrss.cpp
+ test/src/mbgl/test/getrss.hpp
+ test/src/mbgl/test/stub_file_source.cpp
+ test/src/mbgl/test/stub_file_source.hpp
+ test/src/mbgl/test/stub_geometry_tile_feature.hpp
+ test/src/mbgl/test/stub_layer_observer.hpp
+ test/src/mbgl/test/stub_render_source_observer.hpp
+ test/src/mbgl/test/stub_style_observer.hpp
+ test/src/mbgl/test/stub_tile_observer.hpp
+ test/src/mbgl/test/test.cpp
+ test/src/mbgl/test/util.cpp
+ test/src/mbgl/test/util.hpp
# text
test/text/cross_tile_symbol_index.test.cpp
@@ -156,4 +152,5 @@ set(MBGL_TEST_FILES
test/util/token.test.cpp
test/util/unique_any.test.cpp
test/util/url.test.cpp
+
)