mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 06:14:32 +00:00
df7a094765
After second thought version.py does not do anything useful. Meson has built-in function vcs_tag that mostly replicate what version.py did. For the build time we can just use __DATE__ and __TIME__. Of course this changes time string format a little, but in my opinion it looks nicer in fact. Also it will use local time, instead UTC. But I would argue that date string is only informative for users to check how old the specific mpv build is. It doesn't have to be precise, it weren't for years anyway before recent change.
9 lines
197 B
Meson
9 lines
197 B
Meson
version_h = vcs_tag(
|
|
command: ['git', 'describe', '--always', '--tags', '--dirty'],
|
|
input: 'version.h.in',
|
|
output: 'version.h',
|
|
replace_string: '@VERSION@',
|
|
)
|
|
|
|
sources += version_h
|