File: meson.build

package info (click to toggle)
game-data-packager 87
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 33,392 kB
  • sloc: python: 15,387; sh: 704; ansic: 95; makefile: 50
file content (24 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
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