File: meson.build

package info (click to toggle)
gnome-shell 49.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,712 kB
  • sloc: javascript: 75,067; ansic: 66,191; xml: 1,798; sh: 919; python: 666; makefile: 51
file content (57 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
56
57
subdir('icons')
subdir('metainfo')

gnome.compile_resources(
  app_id + '.data',
  configure_file(
    input: base_id + '.data.gresource.xml.in',
    output: app_id + '.data.gresource.xml',
    configuration: {
      'app_id': app_id,
      'profile': '/'.join(profile.split('.')),
    },
  ),
  dependencies: [metainfo],
  source_dir: ['.', meson.current_build_dir()],
  gresource_bundle: true,
  install: true,
  install_dir: pkgdatadir
)

desktop_id = 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)

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

if (desktop_file_validate.found())
  test('Validating ' + desktop_id,
    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,
)

install_data(base_id + '.gschema.xml', install_dir: schemadir)