File: meson.build

package info (click to toggle)
parlatype 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,616 kB
  • sloc: ansic: 14,504; xml: 160; python: 134; sh: 37; makefile: 28
file content (68 lines) | stat: -rw-r--r-- 1,573 bytes parent folder | download | duplicates (2)
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
58
59
60
61
62
63
64
65
66
67
68
subdir('icons')

if with_asr
  install_subdir(
    'asr',
    install_dir: join_paths(datadir, meson.project_name())
  )
endif

desktop_file = app_id + '.desktop'
i18n.merge_file(
  input: 'parlatype.desktop.in',
  output: desktop_file,
  type: 'desktop',
  po_dir: '../po',
  install: true,
  install_dir: join_paths(datadir, 'applications')
)

desktop_file_validate = find_program('desktop-file-validate', required: false)
if desktop_file_validate.found()
  test('Validating ' + desktop_file,
       desktop_file_validate,
       args: [desktop_file],
       workdir: meson.current_build_dir()
  )
endif

metainfo = app_id + '.metainfo.xml'
i18n.merge_file(
  input: 'parlatype.metainfo.xml.in',
  output: metainfo,
  type: 'xml',
  po_dir: '../po',
  install: true,
  install_dir: join_paths(datadir, 'metainfo')
)


appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
  test('Validating ' + metainfo,
       appstream_util,
       args: ['validate-relax', '--nonet', metainfo],
       workdir: meson.current_build_dir()
  )
endif

install_data(
  'parlatype.gschema.xml',
  rename: app_id + '.gschema.xml',
  install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
)

service_conf = configuration_data()
service_conf.set ('app_id', app_id)
service_conf.set ('bindir', bindir)
configure_file(
  input: 'parlatype.service.in',
  output: app_id + '.service',
  configuration: service_conf,
  install_dir: join_paths(datadir, 'dbus-1', 'services')
)

gnome.post_install(
  glib_compile_schemas: true,
  gtk_update_icon_cache: true,
)