summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/icons/meson.build73
-rw-r--r--data/meson.build57
2 files changed, 130 insertions, 0 deletions
diff --git a/data/icons/meson.build b/data/icons/meson.build
new file mode 100644
index 00000000..237b63ae
--- /dev/null
+++ b/data/icons/meson.build
@@ -0,0 +1,73 @@
+icons = [
+ '16x16/actions/object-rotate-right.png',
+ '16x16/actions/zoom.png',
+ '16x16/actions/zoom-fit-width.png',
+ '16x16/actions/view-page-facing.png',
+ '16x16/actions/view-page-continuous.png',
+ '16x16/actions/object-rotate-left.png',
+ '16x16/actions/zoom-fit-height.png',
+ '16x16/mimetypes/x-office-presentation.png',
+ '22x22/actions/object-rotate-right.png',
+ '22x22/actions/zoom-fit-page.png',
+ '22x22/actions/zoom.png',
+ '22x22/actions/zoom-fit-width.png',
+ '22x22/actions/view-page-facing.png',
+ '22x22/actions/view-page-continuous.png',
+ '22x22/actions/object-rotate-left.png',
+ '22x22/actions/eye.png',
+ '22x22/mimetypes/x-office-presentation.png',
+ '24x24/actions/object-rotate-right.png',
+ '24x24/actions/stock_filters-invert.png',
+ '24x24/actions/zoom.png',
+ '24x24/actions/zoom-fit-width.png',
+ '24x24/actions/view-page-facing.png',
+ '24x24/actions/view-page-continuous.png',
+ '24x24/actions/object-rotate-left.png',
+ '24x24/actions/zoom-fit-height.png',
+ '24x24/mimetypes/x-office-presentation.png',
+ '32x32/actions/object-rotate-right.png',
+ '32x32/actions/view-page-facing.png',
+ '32x32/actions/view-page-continuous.png',
+ '32x32/actions/object-rotate-left.png',
+ '32x32/mimetypes/x-office-presentation.png',
+ '48x48/actions/resize-se.png',
+ '48x48/actions/resize-sw.png',
+ '48x48/actions/view-page-facing.png',
+ '48x48/actions/view-page-continuous.png',
+ '48x48/actions/close.png',
+ 'scalable/actions/object-rotate-left.svg',
+ 'scalable/actions/object-rotate-right.svg',
+ 'scalable/mimetypes/x-office-presentation.svg',
+]
+
+foreach icon : icons
+ parts = icon.split('/')
+ size = parts[0]
+ context = parts[1]
+ filename = parts[2]
+
+ install_data(
+ icon,
+ install_dir: join_paths(datadir, meson.project_name(), 'icons', 'hicolor', size, context)
+ )
+endforeach
+
+app_icons = [
+ '16x16/apps/atril.png',
+ '22x22/apps/atril.png',
+ '24x24/apps/atril.png',
+ '48x48/apps/atril.png',
+ 'scalable/apps/atril.svg',
+]
+
+foreach icon : app_icons
+ parts = icon.split('/')
+ size = parts[0]
+ context = parts[1]
+ filename = parts[2]
+
+ install_data(
+ icon,
+ install_dir: join_paths(datadir, 'icons', 'hicolor', size, context)
+ )
+endforeach
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())
+)