File: meson.build

package info (click to toggle)
rhythmbox 3.4.9-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,376 kB
  • sloc: ansic: 114,861; python: 4,941; xml: 730; javascript: 350; perl: 307; sh: 84; makefile: 43
file content (75 lines) | stat: -rw-r--r-- 1,882 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
po_dir = meson.project_source_root() / 'po'

desktop_files = [ 'org.gnome.Rhythmbox3.desktop', 'org.gnome.Rhythmbox3.device.desktop' ]
foreach desktop_file : desktop_files
  desktop_file = i18n.merge_file(
    input: desktop_file + '.in',
    output: desktop_file,
    install: true,
    install_dir: datadir / 'applications',
    po_dir: po_dir,
    type: 'desktop',
  )
endforeach

service_conf = configuration_data()
service_conf.set('bindir', get_option('prefix') / get_option('bindir'))

service = 'org.gnome.Rhythmbox3.service'

configure_file(
  input: service + '.in',
  output: service,
  install: true,
  install_dir: datadir / 'dbus-1/services',
  configuration: service_conf
)

install_data('org.gnome.rhythmbox.gschema.xml',
  install_dir: datadir / 'glib-2.0' / 'schemas')

glib_compile_schemas = find_program('glib-compile-schemas', required: true)
gschemas_compiled = custom_target('gschemas.compiled',
  input: 'org.gnome.rhythmbox.gschema.xml',
  output: 'gschemas.compiled',
  command: [glib_compile_schemas, '--targetdir=' + meson.current_build_dir(), meson.current_source_dir()]
)

playlists_xml = i18n.merge_file(
  input: 'playlists.xml.in',
  output: 'playlists.xml',
  po_dir: po_dir,
  data_dirs: meson.project_source_root() / 'data'
)

install_data('rhythmbox.gep',
  install_dir: datadir / 'rhythmbox')


mans = [
  'rhythmbox.1',
  'rhythmbox-client.1'
]

install_man(mans)

appdata = 'org.gnome.Rhythmbox3.appdata.xml'

appdata_file = i18n.merge_file(
  input: appdata + '.in',
  output: appdata,
  install: true,
  install_dir: datadir / 'metainfo',
  po_dir: po_dir,
  type: 'xml',
)

# Validate Appdata
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
  test(
      'validate-appdata', appstream_util,
      depends: appdata_file,
      args: ['validate', '--nonet', appdata_file.full_path()]
      )
endif