2018-06-04 15:56:00 +00:00
|
|
|
datadir = get_option('datadir')
|
2019-08-08 13:38:28 +00:00
|
|
|
sysconfdir = get_option('sysconfdir')
|
2018-06-04 15:56:00 +00:00
|
|
|
|
2018-06-04 21:57:40 +00:00
|
|
|
# Desktop file
|
2020-11-16 22:06:35 +00:00
|
|
|
desktop_file = i18n.merge_file(
|
2021-07-10 02:34:23 +00:00
|
|
|
input : 'org.gnome.Calls.desktop.in',
|
|
|
|
output : 'org.gnome.Calls.desktop',
|
2020-11-16 22:06:35 +00:00
|
|
|
type : 'desktop',
|
2023-01-24 10:00:02 +00:00
|
|
|
po_dir : po_dir,
|
2020-11-16 22:06:35 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : join_paths(datadir, 'applications')
|
|
|
|
)
|
|
|
|
|
2022-11-21 11:35:03 +00:00
|
|
|
desktop_daemon_file = i18n.merge_file(
|
2021-07-10 02:34:23 +00:00
|
|
|
input : 'org.gnome.Calls-daemon.desktop.in',
|
|
|
|
output : 'org.gnome.Calls-daemon.desktop',
|
2020-11-16 22:06:35 +00:00
|
|
|
type : 'desktop',
|
2023-01-24 10:00:02 +00:00
|
|
|
po_dir : po_dir,
|
2020-11-16 22:06:35 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : join_paths(sysconfdir, 'xdg/autostart')
|
|
|
|
)
|
2018-06-04 15:56:00 +00:00
|
|
|
|
2022-06-20 03:26:16 +00:00
|
|
|
# DBus service
|
|
|
|
service_data = configuration_data()
|
|
|
|
service_data.set('bindir', full_bindir)
|
|
|
|
service_file = 'org.gnome.Calls.service'
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input : service_file + '.in',
|
|
|
|
output : service_file,
|
|
|
|
configuration : service_data,
|
|
|
|
install : true,
|
|
|
|
install_dir : full_servicedir,
|
|
|
|
)
|
|
|
|
|
2018-06-04 21:57:40 +00:00
|
|
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
|
|
|
if desktop_utils.found()
|
2022-11-21 11:35:03 +00:00
|
|
|
test('Validate desktop file',
|
|
|
|
desktop_utils,
|
|
|
|
args: [
|
|
|
|
desktop_file.full_path()
|
|
|
|
],
|
|
|
|
depends: [
|
|
|
|
desktop_file,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
test('Validate daemon desktop file',
|
|
|
|
desktop_utils,
|
|
|
|
args: [
|
|
|
|
desktop_daemon_file.full_path()
|
|
|
|
],
|
|
|
|
depends: [
|
|
|
|
desktop_daemon_file,
|
|
|
|
],
|
|
|
|
)
|
2018-06-04 21:57:40 +00:00
|
|
|
endif
|
|
|
|
|
2022-11-21 11:35:03 +00:00
|
|
|
|
2020-05-13 09:06:23 +00:00
|
|
|
# Metainfo file
|
2021-07-10 02:34:23 +00:00
|
|
|
install_data('org.gnome.Calls.metainfo.xml',
|
2018-06-04 21:57:40 +00:00
|
|
|
install_dir: join_paths(datadir, 'metainfo'),
|
|
|
|
)
|
|
|
|
|
2021-10-19 16:40:32 +00:00
|
|
|
appstreamcli = find_program('appstreamcli', required: false)
|
|
|
|
if appstreamcli.found()
|
|
|
|
test('Validate metainfo file', appstreamcli,
|
|
|
|
args: ['validate',
|
2021-11-30 11:03:12 +00:00
|
|
|
'--pedantic',
|
2022-01-20 07:46:13 +00:00
|
|
|
'--no-net',
|
2018-06-11 15:15:44 +00:00
|
|
|
join_paths(meson.current_source_dir(),
|
2021-07-10 02:34:23 +00:00
|
|
|
'org.gnome.Calls.metainfo.xml')
|
2018-06-11 15:15:44 +00:00
|
|
|
])
|
2018-06-04 21:57:40 +00:00
|
|
|
endif
|
|
|
|
|
2018-06-04 21:57:40 +00:00
|
|
|
# Icons
|
2018-11-23 16:17:35 +00:00
|
|
|
install_data(
|
2021-07-10 02:34:23 +00:00
|
|
|
'org.gnome.Calls.svg',
|
2018-11-23 16:17:35 +00:00
|
|
|
install_dir: join_paths(
|
|
|
|
datadir,
|
|
|
|
'icons',
|
|
|
|
'hicolor',
|
|
|
|
'scalable',
|
|
|
|
'apps'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
install_data(
|
2021-07-10 02:34:23 +00:00
|
|
|
'org.gnome.Calls-symbolic.svg',
|
2018-11-23 16:17:35 +00:00
|
|
|
install_dir: join_paths(
|
|
|
|
datadir,
|
|
|
|
'icons',
|
|
|
|
'hicolor',
|
|
|
|
'symbolic',
|
|
|
|
'apps'
|
|
|
|
)
|
|
|
|
)
|
2021-04-16 01:54:17 +00:00
|
|
|
|
2021-07-10 02:19:53 +00:00
|
|
|
schema_src = 'org.gnome.Calls.gschema.xml'
|
2021-06-03 10:54:46 +00:00
|
|
|
compiled = gnome.compile_schemas(build_by_default: true,
|
2021-06-22 02:13:38 +00:00
|
|
|
depend_files: files(schema_src))
|
2021-06-03 10:54:46 +00:00
|
|
|
|
|
|
|
install_data(schema_src,
|
2021-04-16 01:54:17 +00:00
|
|
|
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
|