diff options
Diffstat (limited to 'data/meson.build')
-rw-r--r-- | data/meson.build | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 00000000..1d76df31 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,57 @@ + +subdir('icons') + +data_dir = include_directories('.') + +install_data( + 'atril.1', + install_dir : join_paths(get_option('prefix'), get_option('mandir'), 'man1') +) + +service_conf = configuration_data() +service_conf.set('libexecdir', join_paths(prefix, libexecdir)) + +configure_file( + input: 'org.mate.atril.Daemon.service.in', + output: 'org.mate.atril.Daemon.service', + configuration: service_conf, + install_dir: join_paths(datadir, 'dbus-1', 'services') +) + +schema_file = install_data( + 'org.mate.Atril.gschema.xml', + install_dir: join_paths(datadir, 'glib-2.0', 'schemas') +) + +desktop_conf = configuration_data() +desktop_conf.set('VERSION', meson.project_version()) +desktop_conf.set('ATRIL_MIME_TYPES', atril_mime_types) + +desktop = configure_file( + input: 'atril.desktop.in.in', + output: 'atril.desktop.in', + configuration: desktop_conf, +) + +i18n.merge_file( + input: desktop, + output: 'atril.desktop', + type: 'desktop', + po_dir: po_dir, + install: true, + install_dir: desktopdir, +) + +appdata = i18n.merge_file( + input: 'atril.appdata.xml.in.in', + output: 'atril.appdata.xml', + type: 'xml', + po_dir: po_dir, + install: true, + install_dir: join_paths(datadir, 'metainfo'), +) + +install_data( + 'hand-open.png', + install_dir: join_paths(prefix, datadir, meson.project_name()) +) |