mirror of https://github.com/mpv-player/mpv
build: restrict git describe to top level source directory
fix version determination when building mpv from release tarball extracted within another git repository
This commit is contained in:
parent
0c4812aa72
commit
8efa6c3837
|
@ -1,5 +1,8 @@
|
||||||
version_h = vcs_tag(
|
version_h = vcs_tag(
|
||||||
command: ['git', 'describe', '--always', '--tags', '--dirty'],
|
command: ['git',
|
||||||
|
'--git-dir=' + join_paths(source_root, '.git'),
|
||||||
|
'--work-tree=' + source_root,
|
||||||
|
'describe', '--always', '--tags', '--dirty'],
|
||||||
input: 'version.h.in',
|
input: 'version.h.in',
|
||||||
output: 'version.h',
|
output: 'version.h',
|
||||||
replace_string: '@VERSION@',
|
replace_string: '@VERSION@',
|
||||||
|
|
Loading…
Reference in New Issue