1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# Copyright 2022 Simon McVittie
# SPDX-License-Identifier: FSFAP
foreach icon : quake_icons
custom_target(
icon['name'] + '.png',
build_by_default : true,
input : icon['svg'],
output : icon['name'] + '.png',
command : [
'inkscape',
'--export-area=0:0:32:32',
'--export-width=32',
'--export-height=32',
'--export-id=layer-' + icon['game'] + '-32',
'--export-id-only',
'--export-filename=@OUTPUT@',
'@INPUT@',
],
env: inkscape_env,
install : true,
install_dir : get_option('datadir') / 'icons' / 'hicolor' / '32x32' / 'apps',
)
endforeach
|