malcontent-control: Add a desktop file

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-12-19 13:38:51 +00:00
parent 1d8f7d665c
commit 8b62f08cf6
3 changed files with 34 additions and 0 deletions

View file

@ -17,6 +17,27 @@ malcontent_control = executable('malcontent-control',
install: true,
)
desktop_file = i18n.merge_file('desktop-file',
type: 'desktop',
input: '@0@.desktop.in'.format(application_id),
output: '@0@.desktop'.format(application_id),
po_dir: join_paths(meson.source_root(), 'po'),
install: true,
install_dir: join_paths(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_file.full_path(),
],
suite: ['malcontent-control'],
)
endif
# FIXME: Add icons and tests
#subdir('icons')
#subdir('tests')