mirror of https://github.com/mpv-player/mpv
build: generate version.h before anything else
This seems to fix issues when building on windows where compiling mpv.rc after a `waf clean` resulted in a failure because version.h was not always present
This commit is contained in:
parent
ed6ae656b0
commit
dc21473907
5
wscript
5
wscript
|
@ -1061,7 +1061,12 @@ def build(ctx):
|
|||
'The project was not configured: run "waf --variant={0} configure" first!'
|
||||
.format(ctx.options.variant))
|
||||
ctx.unpack_dependencies_lists()
|
||||
ctx.add_group('versionh')
|
||||
ctx.add_group('sources')
|
||||
|
||||
ctx.set_group('versionh')
|
||||
__write_version__(ctx)
|
||||
ctx.set_group('sources')
|
||||
ctx.load('wscript_build')
|
||||
|
||||
def init(ctx):
|
||||
|
|
Loading…
Reference in New Issue