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',
|
|
|
|
po_dir : '../po',
|
|
|
|
install : true,
|
|
|
|
install_dir : join_paths(datadir, 'applications')
|
|
|
|
)
|
|
|
|
|
|
|
|
desktop_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',
|
|
|
|
po_dir : '../po',
|
|
|
|
install : true,
|
|
|
|
install_dir : join_paths(sysconfdir, 'xdg/autostart')
|
|
|
|
)
|
2018-06-04 15:56:00 +00:00
|
|
|
|
2018-06-04 21:57:40 +00:00
|
|
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
|
|
|
if desktop_utils.found()
|
2018-06-11 15:15:44 +00:00
|
|
|
test('Validate desktop file', desktop_utils,
|
2020-11-17 09:55:12 +00:00
|
|
|
args: [join_paths(meson.current_build_dir(),
|
2021-07-10 02:34:23 +00:00
|
|
|
'org.gnome.Calls.desktop')
|
2018-06-11 15:15:44 +00:00
|
|
|
])
|
2019-08-08 13:38:28 +00:00
|
|
|
test('Validate daemon desktop file', desktop_utils,
|
2020-11-17 09:55:12 +00:00
|
|
|
args: [join_paths(meson.current_build_dir(),
|
2021-07-10 02:34:23 +00:00
|
|
|
'org.gnome.Calls-daemon.desktop')
|
2019-08-08 13:38:28 +00:00
|
|
|
])
|
2018-06-04 21:57:40 +00:00
|
|
|
endif
|
|
|
|
|
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
|