wscript: don’t install the encoding profiles with encoding disabled

This commit is contained in:
Emmanuel Gil Peyrot 2016-02-20 21:39:04 +00:00 committed by wm4
parent f3549ff76a
commit 87b09a180a
1 changed files with 2 additions and 1 deletions

View File

@ -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(