From 9d0216e485b5d2a0ea8b51538ba2402703d9e8be Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sun, 9 Dec 2018 23:25:55 +0100 Subject: [PATCH] Allow to disable icon conversion --- data/meson.build | 2 +- meson_options.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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' +)