Skip to content

Commit

Permalink
build: show git version used during configuration
Browse files Browse the repository at this point in the history
Show which git version is used when configuration phase.

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Jul 12, 2024
1 parent 10f2d52 commit c3004a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ conf = configuration_data()

version_tag = get_option('version-tag')
if version_tag != ''
conf.set('GIT_VERSION', '"@0@"'.format(version_tag))
conf.set('GIT_VERSION', '"@0@"'.format(version_tag))
else
r = run_command('scripts/meson-vcs-tag.sh',
meson.current_source_dir(),
Expand Down Expand Up @@ -306,4 +306,8 @@ if meson.version().version_compare('>=0.53.0')
'Python 3': py3_dep.found(),
}
summary(dep_dict, section: 'Dependencies')
conf_dict = {
'git version': conf.get('GIT_VERSION'),
}
summary(conf_dict, section: 'Configuration')
endif

0 comments on commit c3004a7

Please sign in to comment.