From dc21473907945d7a3930f546d11eeaebccbfe71d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 1 Jan 2018 16:56:58 +0100 Subject: 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 --- wscript | 5 +++++ 1 file changed, 5 insertions(+) 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): -- cgit v1.2.3