File: meson.build

package info (click to toggle)
polari 49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,204 kB
  • sloc: javascript: 8,663; ansic: 1,904; xml: 140; python: 30; makefile: 10; sh: 5
file content (68 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download
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
# SPDX-FileCopyrightText: 2016 Florian Müllner <fmuellner@gnome.org>
#
# SPDX-License-Identifier: GPL-2.0-or-later

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

data_resources = gnome.compile_resources(
  'data-resources',
  app_id + '.data.gresource.xml',
  dependencies: [metainfo],
  source_dir: ['.', meson.current_build_dir()],
  c_name: 'data_resources',
)

lib_resources = gnome.compile_resources(
  'lib-resources',
  app_id + '.lib.gresource.xml',
  c_name: 'lib_resources',
)

desktop_filename = app_id + '.desktop'
desktop_file = i18n.merge_file(
  input: desktop_filename + '.in',
  output: desktop_filename,
  po_dir: '../po',
  install: true,
  install_dir: desktopdir,
  type: 'desktop',
)

if (desktop_file_validate.found())
  test(
    'Validating ' + desktop_filename,
    desktop_file_validate,
    args: [desktop_file.full_path()],
    workdir: meson.current_build_dir(),
    depends: [desktop_file],
  )
endif

if (json_glib_validate.found())
  test(
    'Validating ' + 'networks.json',
    json_glib_validate,
    args: [files('networks.json')],
  )
endif

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

services = [
  'org.freedesktop.Telepathy.Client.Polari.service',
  app_id + '.service',
]

foreach s : services
  configure_file(
    input: s + '.in',
    output: s,
    configuration: service_conf,
    install_dir: servicedir,
  )
endforeach

install_data(app_id + '.gschema.xml', install_dir: schemadir)
install_data('Polari.client', install_dir: tpclientdir)