Authenticator/data/meson.build

74 lines
1.8 KiB
Meson
Raw Normal View History

gnome.compile_resources(
2017-09-16 14:15:40 +02:00
meson.project_name(),
meson.project_name() + '.gresource.xml',
gresource_bundle: true,
source_dir: '.',
2018-09-23 10:36:52 +00:00
install_dir: join_paths(get_option('datadir'), meson.project_name()),
2017-09-16 14:15:40 +02:00
install: true
)
install_data(
2017-09-16 14:15:40 +02:00
meson.project_name() + '.gschema.xml',
2018-09-23 10:36:52 +00:00
install_dir : join_paths(get_option('datadir'), 'glib-2.0/schemas')
)
configure_file(
input: meson.project_name() + '.SearchProvider.service.in',
output: meson.project_name() + '.SearchProvider.service',
configuration: conf,
install_dir: join_paths(get_option('datadir'), 'dbus-1/services')
2017-09-16 14:15:40 +02:00
)
2018-09-23 10:36:52 +00:00
install_data(
meson.project_name() + '.SearchProvider.ini',
install_dir: join_paths(get_option('datadir'), 'gnome-shell/search-providers')
)
2017-09-16 14:15:40 +02:00
i18n.merge_file(
output: meson.project_name() + '.desktop',
input: meson.project_name() + '.desktop.in',
2018-03-16 12:49:51 +01:00
po_dir: join_paths(meson.source_root(), 'po'),
2017-09-16 14:15:40 +02:00
type: 'desktop',
install: true,
2018-09-23 10:36:52 +00:00
install_dir: join_paths(get_option('datadir'), 'applications')
2017-09-16 14:15:40 +02:00
)
i18n.merge_file(
output: meson.project_name() + '.appdata.xml',
input: meson.project_name() + '.appdata.xml.in',
2018-03-16 12:49:51 +01:00
po_dir: join_paths(meson.source_root(), 'po'),
2017-09-16 14:15:40 +02:00
install: true,
2018-09-23 10:36:52 +00:00
install_dir: join_paths(get_option('datadir'), 'appdata')
2017-09-16 14:15:40 +02:00
)
2018-03-16 12:49:51 +01:00
desktop_file_validate = find_program('desktop-file-validate', required:false)
if desktop_file_validate.found()
test (
'Validate desktop file',
desktop_file_validate,
2018-09-23 10:36:52 +00:00
args: join_paths(meson.current_build_dir (),
meson.project_name() + '.desktop')
2018-03-16 12:49:51 +01:00
)
endif
2018-09-02 15:05:51 +02:00
appstreamcli = find_program('appstream-util', required:false)
2018-03-16 12:49:51 +01:00
if appstreamcli.found()
test (
'Validate appdata file',
appstreamcli,
2018-09-23 10:36:52 +00:00
args: [
'validate-relax',
join_paths(meson.current_build_dir(),
meson.project_name() + '.appdata.xml')
]
2018-03-16 12:49:51 +01:00
)
endif
2018-09-23 15:53:08 +02:00
subdir('icons')