summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-11-24 22:21:17 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-11-24 22:23:45 +0100
commit8b6e05adff3cfd760c6439b42d18126b715a1f2d (patch)
tree1d0c66d618a470c14975b80cd38de4e2c3a2db7e /wscript_build.py
parent9d603e99854b94f5e3866a151546923d2048aa35 (diff)
downloadmpv-8b6e05adff3cfd760c6439b42d18126b715a1f2d.tar.bz2
mpv-8b6e05adff3cfd760c6439b42d18126b715a1f2d.tar.xz
build: add install_files call after the mpv target was defined
This makes it work on cold compiles when there is no `build/` directory and one does ./waf configure && ./waf install (i.e.: no ./waf build).
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 2c8e5b14ac..c1d5edcc4e 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -419,8 +419,6 @@ def build(ctx):
resources = [node.srcpath() for node in resources_nodes]
cprog_kwargs['mac_resources'] = resources
- ctx.install_files(ctx.env.BINDIR, 'mpv')
-
ctx(
target = "mpv",
source = ctx.filtered_sources(sources),
@@ -432,6 +430,9 @@ def build(ctx):
**cprog_kwargs
)
+ if ctx.dependency_satisfied('macosx-bundle'):
+ ctx.install_files(ctx.env.BINDIR, 'mpv')
+
if ctx.dependency_satisfied("vf-dlopen-filters"):
dlfilters = "showqscale telecine tile rectangle framestep \
ildetect".split()