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 (30 lines) | stat: -rw-r--r-- 725 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
25
26
27
28
29
30
# Copyright 2022 Simon McVittie
# SPDX-License-Identifier: FSFAP

foreach icon : quake_icons
  if icon['name'] == 'quake4'
    layer = 'layer-quake4-32'
  else
    layer = 'layer-' + icon['game'] + '-16'
  endif

  custom_target(
    icon['name'] + '.png',
    build_by_default : true,
    input : icon['svg'],
    output : icon['name'] + '.png',
    command : [
      'inkscape',
      '--export-area=0:0:16:16',
      '--export-width=16',
      '--export-height=16',
      '--export-id=' + layer,
      '--export-id-only',
      '--export-filename=@OUTPUT@',
      '@INPUT@',
    ],
    env: inkscape_env,
    install : true,
    install_dir : get_option('datadir') / 'icons' / 'hicolor' / '16x16' / 'apps',
  )
endforeach