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:
Stefano Pigozzi 2018-01-01 16:56:58 +01:00
parent ed6ae656b0
commit dc21473907
1 changed files with 5 additions and 0 deletions

View File

@ -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):