2017-12-09 00:45:29 +01:00
|
|
|
foreach desktop_file: [ 'org.gnome.Geary.desktop', 'geary-autostart.desktop' ]
|
|
|
|
|
i18n.merge_file(
|
|
|
|
|
input: desktop_file + '.in',
|
|
|
|
|
output: desktop_file,
|
|
|
|
|
type: 'desktop',
|
|
|
|
|
po_dir: po_dir,
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: join_paths(datadir, 'applications')
|
|
|
|
|
)
|
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
|
# The appdata file
|
|
|
|
|
i18n.merge_file(
|
|
|
|
|
input: 'org.gnome.Geary.appdata.xml.in',
|
|
|
|
|
output: 'org.gnome.Geary.appdata.xml',
|
|
|
|
|
type: 'xml',
|
|
|
|
|
po_dir: po_dir,
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: join_paths(datadir, 'metainfo')
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Contractor file (Elementary OS)
|
|
|
|
|
if install_contractor_file
|
2018-09-30 19:40:00 +02:00
|
|
|
|
|
|
|
|
msgfmt = find_program('msgfmt')
|
|
|
|
|
|
|
|
|
|
custom_target(
|
2017-12-09 00:45:29 +01:00
|
|
|
input: 'geary-attach.contract.desktop.in',
|
|
|
|
|
output: 'geary-attach.contract',
|
2018-09-30 19:40:00 +02:00
|
|
|
command: [msgfmt, '--desktop', '--keyword=Description', '--template', '@INPUT@', '-d', po_dir, '-o', '@OUTPUT@'],
|
2017-12-09 00:45:29 +01:00
|
|
|
install: true,
|
|
|
|
|
install_dir: join_paths(datadir, 'contractor')
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install_data('geary-attach',
|
|
|
|
|
install_dir: bindir,
|
|
|
|
|
)
|
|
|
|
|
endif
|
|
|
|
|
|
2017-12-12 15:33:36 +11:00
|
|
|
# GSettings schemas.
|
|
|
|
|
#
|
|
|
|
|
# Compile since it makes sure the schema is valid and is used for both
|
|
|
|
|
# running the client locally and for tests.
|
|
|
|
|
#
|
|
|
|
|
# Note the use of depend_files here is a kludge to ensure that the
|
|
|
|
|
# schema is re-compiled if the source changes. This is not supported
|
|
|
|
|
# by Meson but it works, so request for official support has been
|
|
|
|
|
# added, see: https://github.com/mesonbuild/meson/issues/2770
|
|
|
|
|
geary_compiled_schema = gnome.compile_schemas(
|
|
|
|
|
depend_files: files('org.gnome.Geary.gschema.xml'),
|
|
|
|
|
)
|
2017-12-09 00:45:29 +01:00
|
|
|
install_data('org.gnome.Geary.gschema.xml',
|
|
|
|
|
install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
|
|
|
|
|
)
|