File: meson.build

package info (click to toggle)
vvmplayer 2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 824 kB
  • sloc: ansic: 3,547; sh: 37; xml: 33; python: 14; makefile: 4
file content (61 lines) | stat: -rw-r--r-- 1,580 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
desktop_conf = configuration_data()
desktop_conf.set('bindir', pkg_bindir)

desktop_file = i18n.merge_file(
  input:  configure_file(
    input: pkg_id + '.desktop.in.in',
    output: pkg_id + 'desktop.in',
    configuration: desktop_conf,
  ),
  output: pkg_id + '.desktop',
  type: 'desktop',
  po_dir: pkg_po_dir,
  install: true,
  install_dir: join_paths(pkg_datadir, 'applications'),
)

desktop_file = i18n.merge_file(
  input:  configure_file(
    input: pkg_id + '-daemon.desktop.in.in',
    output: pkg_id + '-daemondesktop.in',
    configuration: desktop_conf,
  ),
  output: pkg_id + '-daemon.desktop',
  type: 'desktop',
  po_dir: pkg_po_dir,
  install: true,
  install_dir: join_paths(get_option('sysconfdir'), 'xdg/autostart')
)

install_data(
  pkg_id + '.gschema.xml',
  install_dir: pkg_schemadir,
)

compiled = gnome.compile_schemas(build_by_default: true)

desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
  test('Validate desktop file', desktop_utils,
       args: [desktop_file])
endif

compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
  test('Validate schema file', compile_schemas,
       args: ['--strict', '--dry-run', meson.current_source_dir()])
endif

service_conf = configuration_data()
service_conf.set('bindir', pkg_bindir)

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

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