meson.build 1.94 KB
Newer Older
Jordan Petridis's avatar
Jordan Petridis committed
1
2
subdir('icons')

3
4
desktop_conf = configuration_data()
desktop_conf.set('icon', application_id)
5
desktop_file = i18n.merge_file (
6
  type: 'desktop',
7
8
9
10
11
12
  input: configure_file(
    input: files('org.gnome.Podcasts.desktop.in.in'),
    output: 'org.gnome.Podcasts.desktop.in',
    configuration: desktop_conf
  ),
  output: '@0@.desktop'.format(application_id),
13
14
15
16
  po_dir: podir,
  install: true,
  install_dir: join_paths (datadir, 'applications')
)
17
18
19
20
21
22
23
24
25
26
desktop_file_validate = find_program('desktop-file-validate', required: false)
if desktop_file_validate.found()
  test(
    'validate-desktop',
    desktop_file_validate,
    args: [
      desktop_file.full_path()
    ]
  )
endif
27

28
29
appdata_conf = configuration_data()
appdata_conf.set('appid', application_id)
30
appdata_file = i18n.merge_file (
31
32
33
34
35
36
  input: configure_file(
    input: files('org.gnome.Podcasts.appdata.xml.in.in'),
    output: 'org.gnome.Podcasts.appdata.xml.in',
    configuration: appdata_conf
  ),
  output: '@0@.appdata.xml'.format(application_id),
37
38
  po_dir: podir,
  install: true,
39
  install_dir: join_paths (datadir, 'metainfo')
40
)
41
42
43
44
45
46
47
48
49
50
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
  test(
    'validate-appdata', appstream_util,
    args: [
      'validate-relax', '--nonet', appdata_file.full_path()
    ]
  )
endif

51
52
53
54
55
56
57
configure_file(
  input: 'org.gnome.Podcasts.gschema.xml.in',
  output: 'org.gnome.Podcasts.gschema.xml',
  configuration: podcasts_conf,
  install: true,
  install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
)
Jordan Petridis's avatar
Jordan Petridis committed
58

59
60
61
62
63
64
configure_file(
  input: 'org.gnome.Podcasts.service.in',
  output: '@0@.service'.format(application_id),
  configuration: podcasts_conf,
  install_dir: join_paths(datadir,'dbus-1', 'services')
)
Jordan Petridis's avatar
Jordan Petridis committed
65

66
67
68
69
podcasts_resources = gnome.compile_resources(
  'resources',
  'resources.xml',
  gresource_bundle: true,
70
71
72
  source_dir: meson.current_build_dir(),
  install: true,
  install_dir: pkgdatadir
73
74
)

Jordan Petridis's avatar
Jordan Petridis committed
75
meson.add_install_script('../../scripts/compile-gschema.py')