Gimp/icons/Color/64/meson.build
Jehan ae6c58652e icons, tools: fix the CI when building icon resources with vector icons.
Ok that was a bit of a mess with the 4 build cases (combinations of
meson, autotools, vector and raster icons). I *think* this is now OK.

Basically we still need to build the colorsvg2png tool even when
installing vector icons, just for the purpose of the 2 icons
dialog-question and gimp-wilber-eek which we compile into GLib resources
from PNG images.

Also it looks like I completely forgot to add the subdir meson.build in
icons/Color/.
2022-01-31 22:33:30 +01:00

41 lines
1.1 KiB
Meson

icons_dir = size + 'x' + size
if have_vector_icons
icon_dialog_question = custom_target('icon-dialog-question',
input : [ '../scalable/dialog-question.svg' ],
output: [ 'dialog-question.png' ],
command: [
colorsvg2png, '@INPUT@', '@OUTPUT@', size,
],
install: false,
)
icon_wilber_eek = custom_target('icon-wilber-eek',
input : [ '../scalable/gimp-wilber-eek.svg' ],
output: [ 'gimp-wilber-eek.png' ],
command: [
colorsvg2png, '@INPUT@', '@OUTPUT@', size,
],
install: false,
)
else
foreach icon : source_icons
icon_name = icon + '.png'
input_path = '../scalable/' + icon + '.svg'
icon_tgt = custom_target(icon_name,
input : [ input_path ],
output: [ icon_name ],
command: [
colorsvg2png, '@INPUT@', '@OUTPUT@', size,
],
install: true,
install_dir: gimpiconsdir / theme / icons_dir / 'apps',
)
if icon == 'dialog-question'
icon_dialog_question = icon_tgt
elif icon == 'gimp-wilber-eek'
icon_wilber_eek = icon_tgt
endif
endforeach
endif