diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-08-04 10:54:22 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-08-06 09:31:59 +0200 |
commit | 2e241c0a47f3c9629c6f751ed9ca309d4c8e3a57 (patch) | |
tree | 6e574c295b570e8bdd91202c3fea0b410da229f3 /wscript_build.py | |
parent | 212374149f7c957ea25ea12404f92c625fdc211a (diff) | |
download | mpv-2e241c0a47f3c9629c6f751ed9ca309d4c8e3a57.tar.bz2 mpv-2e241c0a47f3c9629c6f751ed9ca309d4c8e3a57.tar.xz |
build: allow to disable building the cplayer
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/wscript_build.py b/wscript_build.py index bfb847a319..8825f15b6f 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -434,16 +434,18 @@ def build(ctx): install_name = '/mpv.app/Contents/Resources/' + res_basename ctx.install_as(ctx.env.BINDIR + install_name, resource) - ctx( - target = "mpv", - source = ctx.filtered_sources(sources) + ["player/main_fn.c"], - use = ctx.dependencies_use(), - includes = [ctx.bldnode.abspath(), ctx.srcnode.abspath()] + \ - ctx.dependencies_includes(), - features = "c cprogram", - install_path = ctx.env.BINDIR, - **cprog_kwargs - ) + + if ctx.dependency_satisfied('cplayer'): + ctx( + target = "mpv", + source = ctx.filtered_sources(sources) + ["player/main_fn.c"], + use = ctx.dependencies_use(), + includes = [ctx.bldnode.abspath(), ctx.srcnode.abspath()] + \ + ctx.dependencies_includes(), + features = "c cprogram", + install_path = ctx.env.BINDIR, + **cprog_kwargs + ) build_shared = ctx.dependency_satisfied('libmpv-shared') build_static = ctx.dependency_satisfied('libmpv-static') |