Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
configure.ac | 4 +---
meson.build | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 64d4f56b509..4ba70bb43b5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,7 +104,5 @@ m4_if(m4_version_compare([2.61a.100],
[GNUmakefile=$GNUmakefile])])
AC_CONFIG_FILES([\
- Makefile \
- .color_coded \
- .ycm_extra_conf.py])
+ Makefile])
AC_OUTPUT
diff --git a/meson.build b/meson.build
index 2519b48b63f..d14223829e2 100644
--- a/meson.build
+++ b/meson.build
@@ -2303,6 +2303,25 @@ configure_file(
run_command('scripts/meson-change-perms.sh', 'a+x', 'run')
+# generate developer tooling files
+tooling_files = [
+ '.color_coded.in',
+ '.ycm_extra_conf.py.in',
+]
+
+tooling_conf = configuration_data()
+tooling_conf.set('abs_top_builddir', meson.build_root())
+tooling_conf.set('abs_top_srcdir', meson.source_root())
+
+foreach file : tooling_files
+ configure_file(
+ input: file,
+ output: '@BASENAME@',
+ configuration: tooling_conf,
+ )
+endforeach
+
+
# print configuration summary
driver_summary = {
--
2.26.2