Allow to disable icon conversion

This commit is contained in:
Sebastian Ramacher 2018-12-09 23:25:55 +01:00
parent 1711862495
commit 9d0216e485
2 changed files with 6 additions and 1 deletions

View file

@ -9,7 +9,7 @@ zathura_resources = gnome.compile_resources(
install_data('org.pwmt.zathura.xml', install_dir: dbusinterfacesdir)
install_data('org.pwmt.zathura.svg', install_dir: join_paths(datadir, 'icons', 'scalable', 'apps'))
rsvg_convert = find_program('rsvg-convert', required: false, native: true)
rsvg_convert = find_program('rsvg-convert', required: get_option('convert-icon'), native: true)
if rsvg_convert.found()
foreach width : [16, 32, 64, 128, 256]
subdir('icon-@0@'.format(width))

View file

@ -28,3 +28,8 @@ option('tests',
value: 'auto',
description: 'run tests'
)
option('convert-icon',
type: 'feature',
value: 'auto',
description: 'convert icon to PNG'
)