summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/wscript_build.py b/wscript_build.py
index befe1cfcb1..4c973c1b29 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -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(