File: meson.build

package info (click to toggle)
devhelp 43.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,144 kB
  • sloc: ansic: 9,775; perl: 216; javascript: 152; sh: 100; xml: 66; python: 55; lisp: 29; makefile: 13
file content (88 lines) | stat: -rw-r--r-- 2,463 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
76
77
78
79
80
81
82
83
84
85
86
87
88
subdir('icons')

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

libdevhelp_gschema_conf = configuration_data()
libdevhelp_gschema_conf.set('LIBDEVHELP_API_VERSION', LIBDEVHELP_API_VERSION)
configure_file(
  input: 'org.gnome.libdevhelp.gschema.xml.in',
  output: 'org.gnome.libdevhelp-@0@.gschema.xml'.format(LIBDEVHELP_API_VERSION),
  configuration: libdevhelp_gschema_conf,
  install: true,
  install_dir: get_option('datadir') / 'glib-2.0/schemas'
)

appdata_conf = configuration_data()
appdata_conf.set('application_id', APPLICATION_ID)
appdata = APPLICATION_ID + '.appdata.xml'
appdata_file = I18N.merge_file(
  input: configure_file(
    input: 'org.gnome.Devhelp.appdata.xml.in.in',
    output: APPLICATION_ID + '.appdata.xml.in',
    configuration: appdata_conf,
  ),
  output: appdata,
  po_dir: '../po/',
  install: true,
  install_dir: get_option('datadir') / 'metainfo'
)

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

desktop_conf = configuration_data()
desktop_conf.set('application_id', APPLICATION_ID)
desktop = APPLICATION_ID + '.desktop'
desktop_file = I18N.merge_file(
  type: 'desktop',
  input: configure_file(
    input: 'org.gnome.Devhelp.desktop.in.in',
    output: APPLICATION_ID + '.desktop.in',
    configuration: desktop_conf,
  ),
  output: desktop,
  po_dir: '../po/',
  install: true,
  install_dir: get_option('datadir') / 'applications'
)

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

service_file = APPLICATION_ID + '.service'
service_conf = configuration_data()
service_conf.set('application_id', APPLICATION_ID)
service_conf.set('bindir', get_option('prefix') / get_option('bindir'))
configure_file(
  input: 'org.gnome.Devhelp.service.in',
  output: service_file,
  configuration: service_conf,
  install: true,
  install_dir: get_option('datadir') / 'dbus-1/services'
)

install_data([
    'assistant.css',
    'assistant.js',
  ],
  install_dir: get_option('datadir') / 'devhelp/assistant'
)

install_man('devhelp.1')