File: meson.build

package info (click to toggle)
sysprof 48.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 8,924 kB
  • sloc: ansic: 72,988; xml: 168; cpp: 49; sh: 34; makefile: 26
file content (45 lines) | stat: -rw-r--r-- 1,263 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
if get_option('gtk') and get_option('libsysprof')
  install_data('sysprof-mime.xml',
    install_dir: join_paths(datadir, 'mime/packages')
  )

  appdata_in = configure_file(
            input: 'org.gnome.Sysprof.appdata.xml.in.in',
           output: 'org.gnome.Sysprof.appdata.xml.in',
    configuration: config_h,
  )
  appdata_file = i18n.merge_file(
            input: appdata_in,
           output: '@0@.appdata.xml'.format(app_id),
           po_dir: podir,
          install: true,
      install_dir: join_paths(datadir, 'metainfo')
  )
  # Validate Appdata
  appstreamcli = find_program('appstreamcli', required: false)
  if appstreamcli.found()
    test(
      'validate-appdata', appstreamcli,
      args: [
        'validate', '--no-net', '--explain', appdata_file
      ],
      depends: appdata_file,
    )
  endif

  desktop_in = configure_file(
            input: 'org.gnome.Sysprof.desktop.in.in',
           output: 'org.gnome.Sysprof.desktop.in',
    configuration: config_h,
  )
  i18n.merge_file(
            input: desktop_in,
           output: '@0@.desktop'.format(app_id),
             type: 'desktop',
           po_dir: podir,
          install: true,
      install_dir: join_paths(datadir, 'applications')
  )

  subdir('icons')
endif