From: Fred Morcos Date: Tue, 8 Aug 2023 13:32:38 +0000 (+0200) Subject: Meson: Auth version summary X-Git-Tag: rec-5.1.0-alpha1~80^2~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=266644a9cfcfe05364fba05213bbddad00fdaefe;p=thirdparty%2Fpdns.git Meson: Auth version summary --- diff --git a/meson.build b/meson.build index b7d7effc0f..2e67e80ade 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,7 @@ project( ], ) +# TODO Meson 0.56 introduces meson.project_source_root(). product_source_dir = meson.current_source_dir() product_build_dir = meson.current_build_dir() summary('Source Dir', product_source_dir, section: 'Build') diff --git a/meson/summary/meson.build b/meson/summary/meson.build index d146dadb0d..c0d689c73b 100644 --- a/meson/summary/meson.build +++ b/meson/summary/meson.build @@ -7,7 +7,8 @@ summary('C++ Compiler Command', cxx.cmd_array(), section: 'System') summary('Linker', cxx.get_linker_id(), section: 'System') summary('Name', meson.project_name(), section: 'PowerDNS') -summary('Version', meson.project_version(), section: 'PowerDNS') +summary('Version', product_version, section: 'PowerDNS') +# summary('Version', meson.project_version(), section: 'PowerDNS') # summary('Source Root', meson.project_source_root(), section: 'PowerDNS') # TODO Meson 0.56 # summary('Build Root', meson.project_build_root(), section: 'PowerDNS') # TODO Meson 0.56 diff --git a/meson/version/meson.build b/meson/version/meson.build index 745586b9a0..69b39a7de6 100644 --- a/meson/version/meson.build +++ b/meson/version/meson.build @@ -1,9 +1,7 @@ # Generate version define # Inputs: conf -# TODO Find a way to fix these ../.. because meson.current_source_dir() returns -# $GIT_ROOT/meson/version. Meson 0.56 introduces meson.project_source_root(). -gen_version_prog = find_program('gen-version', dirs: meson.current_source_dir() / '..' / '..' / 'builder-support', required: true) +gen_version_prog = find_program('gen-version', dirs: product_source_dir / 'builder-support', required: true) gen_version_prog_res = run_command(gen_version_prog, check: true) -version = gen_version_prog_res.stdout().strip() -conf.set_quoted('VERSION', version, description: 'Version') +product_version = gen_version_prog_res.stdout().strip() +conf.set_quoted('VERSION', product_version, description: 'Version')