]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: generate developer tooling files
authorPavel Hrdina <phrdina@redhat.com>
Wed, 1 Jul 2020 00:54:36 +0000 (02:54 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:06 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
configure.ac
meson.build

index de8fc2d567cd6a4bbf33318c942b531c7a11fb21..3024609515d23a614a70e0fbeece87c8bf8174c2 100644 (file)
@@ -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
index e93016dfe36d8966b4e005d852403ea158c00ac2..78abeb4dc28dcb6b8dd1297eb607ce2dd6652b93 100644 (file)
@@ -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 = {