From: Pavel Hrdina Date: Wed, 1 Jul 2020 00:54:36 +0000 (+0200) Subject: meson: generate developer tooling files X-Git-Tag: v6.7.0-rc1~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13c9063e65c5e33044b7ee3c27e1c70f988f37b4;p=thirdparty%2Flibvirt.git meson: generate developer tooling files Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa Reviewed-by: Neal Gompa --- diff --git a/configure.ac b/configure.ac index de8fc2d567..3024609515 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 e93016dfe3..78abeb4dc2 100644 --- a/meson.build +++ b/meson.build @@ -2326,6 +2326,25 @@ configure_file( run_command('chmod', 'a+x', meson.current_build_dir() / '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 = {