
On Mon, May 03, 2021 at 10:35:07AM +0200, Michal Privoznik wrote:
So far we have three places where glib version is recorded: meson.build and then in config.h. The latter is so well hidden that it's easy to miss when bumping minimal glib version in the former. With a bit of python^Wmeson string magic GLIB_VERSION_MIN_REQUIRED and GLIB_VERSION_MAX_ALLOWED macros can be defined to match glib_version from meson.build.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> ---
v2 of:
https://listman.redhat.com/archives/libvir-list/2021-April/msg01300.html
diff to v1: - Introduced new glib_version_str variable per Pavel's suggestion
config.h | 10 ---------- meson.build | 8 ++++++++ 2 files changed, 8 insertions(+), 10 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>