mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
8efa6c3837
fix version determination when building mpv from release tarball extracted within another git repository
12 lines
299 B
Meson
12 lines
299 B
Meson
version_h = vcs_tag(
|
|
command: ['git',
|
|
'--git-dir=' + join_paths(source_root, '.git'),
|
|
'--work-tree=' + source_root,
|
|
'describe', '--always', '--tags', '--dirty'],
|
|
input: 'version.h.in',
|
|
output: 'version.h',
|
|
replace_string: '@VERSION@',
|
|
)
|
|
|
|
sources += version_h
|