diff --git a/data/meson.build b/data/meson.build index c90a991..ca67424 100644 --- a/data/meson.build +++ b/data/meson.build @@ -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)) diff --git a/meson_options.txt b/meson_options.txt index 667fbcf..0c5bcc9 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -28,3 +28,8 @@ option('tests', value: 'auto', description: 'run tests' ) +option('convert-icon', + type: 'feature', + value: 'auto', + description: 'convert icon to PNG' +)