File: meson.build

package info (click to toggle)
gkrellm 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,608 kB
  • sloc: ansic: 54,505; makefile: 640; sh: 244; xml: 49
file content (45 lines) | stat: -rw-r--r-- 1,279 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# SPDX-FileCopyrightText: 2025 Stefan Gehn <stefan+gkrellm@srcbox.net>
# SPDX-License-Identifier: CC0-1.0

# gkrellm client data files
if get_option('build-client') and (host_machine.system() != 'windows')
  install_data(
    'gkrellm.desktop',
    install_dir: get_option('datadir') / 'applications',
  )

  icon_sizes = ['16', '24', '32', '48', '64']
  icon_theme_dir = get_option('prefix') / get_option('datadir') / 'icons' / 'hicolor'
  foreach size : icon_sizes
    install_data(
      'icons' / size / 'gkrellm.png',
      install_dir: icon_theme_dir / '@0@x@0@'.format(size) / 'apps',
    )
  endforeach

  install_data(
    'net.srcbox.gkrellm.GKrellM.metainfo.xml',
    install_dir: get_option('datadir') / 'metainfo',
  )
endif

# gkrellmd server data files
if get_option('build-server')
  install_data(
    'gkrellmd.conf',
    install_dir: get_option('sysconfdir'),
  )

  systemd_opt = get_option('systemd').disable_auto_if(host_machine.system() != 'linux')
  if systemd_opt.allowed()
    configure_file(
      input: 'gkrellmd.service.in',
      output: 'gkrellmd.service',
      configuration: {
        'SINSTALLDIR': get_option('prefix') / get_option('bindir'),
      },
      install: true,
      install_dir: get_option('systemd-unit-dir'),
    )
  endif
endif