diff options
author | wm4 <wm4@nowhere> | 2014-11-28 22:25:54 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:11 +0900 |
commit | e2a4fde6de8e2173160746a5e687b9a5d2d387c9 (patch) | |
tree | bce60155c115641c534ef3df558a81633d3f0b68 | |
parent | 01401b5f5b4a255e7a071ae720dd8ebdba620805 (diff) | |
download | mpv-e2a4fde6de8e2173160746a5e687b9a5d2d387c9.tar.bz2 mpv-e2a4fde6de8e2173160746a5e687b9a5d2d387c9.tar.xz |
build: don't install some files if only libmpv is built
encoding-profiles.conf can be used by libmpv, but it won't load it
from this path by default, so exclude it as well.
Fixes #1293.
-rw-r--r-- | wscript_build.py | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/wscript_build.py b/wscript_build.py index 6120c53813..169f9f5059 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -535,19 +535,21 @@ def build(ctx): if ctx.dependency_satisfied('pdf-build'): _build_pdf(ctx) - if ctx.dependency_satisfied('zsh-comp'): - ctx.zshcomp(target = "etc/_mpv") - ctx.install_files( - ctx.env.ZSHDIR, - ['etc/_mpv']) + if ctx.dependency_satisfied('cplayer'): - ctx.install_files( - ctx.env.DATADIR + '/applications', - ['etc/mpv.desktop'] ) + if ctx.dependency_satisfied('zsh-comp'): + ctx.zshcomp(target = "etc/_mpv") + ctx.install_files( + ctx.env.ZSHDIR, + ['etc/_mpv']) + + ctx.install_files( + ctx.env.DATADIR + '/applications', + ['etc/mpv.desktop'] ) - ctx.install_files(ctx.env.CONFDIR, ['etc/encoding-profiles.conf'] ) + ctx.install_files(ctx.env.CONFDIR, ['etc/encoding-profiles.conf'] ) - for size in '16x16 32x32 64x64'.split(): - ctx.install_as( - ctx.env.DATADIR + '/icons/hicolor/' + size + '/apps/mpv.png', - 'etc/mpv-icon-8bit-' + size + '.png') + for size in '16x16 32x32 64x64'.split(): + ctx.install_as( + ctx.env.DATADIR + '/icons/hicolor/' + size + '/apps/mpv.png', + 'etc/mpv-icon-8bit-' + size + '.png') |