diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-01-10 16:04:06 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-01-24 08:35:31 -0800 |
commit | e7e6cffcf354cc3d2427103b628f924bb39d7fb0 (patch) | |
tree | 0622789f5a19ecb22b4ce1195ae769f45fa04998 /cmake/files.cmake.ejs | |
parent | 13d27c700e4b0590c4f1c365bfa36cf2a07c437d (diff) | |
download | qtlocation-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.ejs | 13 |
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 ') %> + +<% } -%> +) |