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/.
17 lines
382 B
Meson
17 lines
382 B
Meson
icons_dir = size + 'x' + size
|
|
|
|
foreach icon : source_icons
|
|
icon_name = icon + '.png'
|
|
input_path = '../scalable/' + icon + '.svg'
|
|
|
|
custom_target(icon_name,
|
|
input : [ input_path ],
|
|
output: [ icon_name ],
|
|
command: [
|
|
colorsvg2png, '@INPUT@', '@OUTPUT@', size,
|
|
],
|
|
install: true,
|
|
install_dir: gimpiconsdir / theme / icons_dir / 'apps',
|
|
)
|
|
endforeach
|
|
|