File: meson.build

package info (click to toggle)
lxi-tools 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,956 kB
  • sloc: ansic: 6,110; xml: 146; sh: 24; python: 12; makefile: 5
file content (37 lines) | stat: -rw-r--r-- 1,290 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
# See https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s02.html
install_data('io.github.lxi-tools.lxi-gui.desktop',
  install_dir: join_paths(get_option('datadir'), 'applications')
)

desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
  test('Validate desktop file', desktop_utils,
    args: files('io.github.lxi-tools.lxi-gui.desktop')
  )
endif

# See https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
# Change appdata to metainfo once meson it updated to support it
install_data('io.github.lxi-tools.lxi-gui.appdata.xml',
  install_dir: join_paths(get_option('datadir'), 'metainfo')
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
  test('Validate appstream file', appstream_util,
    args: ['validate', files('io.github.lxi-tools.lxi-gui.appdata.xml')]
  )
endif

install_data('io.github.lxi-tools.lxi-gui.gschema.xml',
  install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

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

subdir('icons')