summaryrefslogtreecommitdiff
path: root/cmake/files.cmake.ejs
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/files.cmake.ejs
parent13d27c700e4b0590c4f1c365bfa36cf2a07c437d (diff)
downloadqtlocation-mapboxgl-e7e6cffcf354cc3d2427103b628f924bb39d7fb0.tar.gz
[build] convert CMake file list generation code to JavaScript
Bash sorting is weird...
Diffstat (limited to 'cmake/files.cmake.ejs')
-rw-r--r--cmake/files.cmake.ejs13
1 files changed, 13 insertions, 0 deletions
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 ') %>
+
+<% } -%>
+)