summaryrefslogtreecommitdiffstats
path: root/subprojects/extensions-app/data/meson.build
blob: 4f24267b04a634f14a0eb14bd2f6988a8b331a19 (plain)
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
46
47
48
49
50
gnome.compile_resources(
  app_id + '.data',
  configure_file(
    input: base_id + '.data.gresource.xml.in',
    output: app_id + '.data.gresource.xml',
    configuration: {'profile': '/'.join(profile.split('.')) },
  ),
  gresource_bundle: true,
  install: true,
  install_dir: pkgdatadir
)

desktop_file = app_id + '.desktop'
desktopconf = configuration_data()
# We substitute in bindir so it works as an autostart
# file when built in a non-system prefix
desktopconf.set('bindir', bindir)
desktopconf.set('app_id', app_id)
desktopconf.set('prgname', prgname)

i18n.merge_file(
  input: configure_file(
    input: base_id + '.desktop.in.in',
    output: desktop_file + '.in',
    configuration: desktopconf
  ),
  output: desktop_file,
  po_dir: po_dir,
  install: true,
  install_dir: desktopdir,
  type: 'desktop'
)

if (desktop_file_validate.found())
  test('Validating ' + desktop_file,
    desktop_file_validate,
    args: [desktop_file],
    workdir: meson.current_build_dir()
  )
endif

configure_file(
  input: base_id + '.service.in',
  output: app_id + '.service',
  configuration: desktopconf,
  install_dir: servicedir,
)

subdir('icons')
subdir('metainfo')