From 286db002f8c85fee0d65d05c845fb1878fcd11a6 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 19 Oct 2019 22:09:52 +0200 Subject: meson: fix version generation from git run_command() was only run at configure time, meaning the generated version (that was passed on to the sources via -DFUZZEL_VERSION) became stale. Fix by implementing a shell script that generates a header file, and wrap this in a custom target that is run every time (but the generated file is only updated when the version changes) --- doc/meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/meson.build b/doc/meson.build index 01738d43..66a9b183 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -1,3 +1,5 @@ +sh = find_program('sh', native: true) + scdoc = dependency('scdoc', native: true) scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) -- cgit v1.3