PIKApp/icons/Color/64/meson.build

42 lines
1.1 KiB
Meson
Raw Permalink Normal View History

2023-09-26 00:35:21 +02:00
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_mascot_eek = custom_target('icon-mascot-eek',
input : [ '../scalable/pika-mascot-eek.svg' ],
output: [ 'pika-mascot-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: pikaiconsdir / theme / icons_dir / 'apps',
)
if icon == 'dialog-question'
icon_dialog_question = icon_tgt
elif icon == 'pika-mascot-eek'
icon_mascot_eek = icon_tgt
endif
endforeach
endif