build: fix windows compilation after clean

broken since 4730e0aaba
This commit is contained in:
Stefano Pigozzi 2015-07-17 09:39:52 +02:00
parent ebdbb4f24c
commit 7ba403002f
1 changed files with 5 additions and 3 deletions

View File

@ -418,9 +418,11 @@ def build(ctx):
ctx.path.find_node('osdep/mpv.rc'),
ctx.path.find_node(node))
ctx.add_manual_dependency(
ctx.path.find_node('osdep/mpv.rc'),
ctx.bldnode.find_node('version.h'))
version = ctx.bldnode.find_node('version.h')
if version:
ctx.add_manual_dependency(
ctx.path.find_node('osdep/mpv.rc'),
version)
if ctx.dependency_satisfied('cplayer') or ctx.dependency_satisfied('test'):
ctx(