aboutsummaryrefslogtreecommitdiffhomepage
path: root/wscript
diff options
context:
space:
mode:
authorGravatar Stefano Pigozzi <stefano.pigozzi@gmail.com>2018-01-01 16:56:58 +0100
committerGravatar Stefano Pigozzi <stefano.pigozzi@gmail.com>2018-01-01 16:56:58 +0100
commitdc21473907945d7a3930f546d11eeaebccbfe71d (patch)
tree95969f68eeaa52014f8c7062c53fcfff9038ba21 /wscript
parented6ae656b0695efd535cb2e71296da5cb7c74464 (diff)
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
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index bd4d7f128f..1880f631e5 100644
--- a/wscript
+++ b/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):