From b17c413de491345b44b9445b8d24fe880870e36e Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 26 Apr 2020 14:29:08 +0200 Subject: [PATCH] Add the generated version header to the file list Otherwise it may not be generated yet on first build. --- meson.build | 2 ++ src/common/config/meson.build | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index de4e49c9..aee1352b 100644 --- a/meson.build +++ b/meson.build @@ -47,6 +47,7 @@ shared_library( 'src/common/serialization.cpp', 'src/plugin/host-bridge.cpp', 'src/plugin/plugin.cpp', + version_header, ], native : true, include_directories : include_dir, @@ -65,6 +66,7 @@ executable( 'src/wine-host/plugin-bridge.cpp', 'src/wine-host/vst-host.cpp', 'src/wine-host/utils.cpp', + version_header, ], native : false, include_directories : include_dir, diff --git a/src/common/config/meson.build b/src/common/config/meson.build index 93a6b3a1..5513065a 100644 --- a/src/common/config/meson.build +++ b/src/common/config/meson.build @@ -1,6 +1,6 @@ # Generate a file containing the last annotated git tag and possibly also the # amount of commits since then and the hash of the last commit -vcs_tag( +version_header = vcs_tag( command : ['git', 'describe', '--always'], input : 'version.h.in', output : 'version.h',