diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-02-20 21:39:04 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-22 20:51:06 +0100 |
commit | 87b09a180a3ba0136286559be60629ccc7612cac (patch) | |
tree | 9c797f1acb133b702718912b940a7c5e11a9bcf0 /wscript_build.py | |
parent | f3549ff76a082b480fbeef11a5d33d61fe75c4cd (diff) | |
download | mpv-87b09a180a3ba0136286559be60629ccc7612cac.tar.bz2 mpv-87b09a180a3ba0136286559be60629ccc7612cac.tar.xz |
wscript: don’t install the encoding profiles with encoding disabled
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py index f0771a448a..b04a449e21 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -573,7 +573,8 @@ def build(ctx): ctx.env.DATADIR + '/applications', ['etc/mpv.desktop'] ) - ctx.install_files(ctx.env.CONFDIR, ['etc/encoding-profiles.conf'] ) + if ctx.dependency_satisfied('encoding'): + ctx.install_files(ctx.env.CONFDIR, ['etc/encoding-profiles.conf'] ) for size in '16x16 32x32 64x64'.split(): ctx.install_as( |