summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/icons/meson.build19
-rw-r--r--data/meson.build21
2 files changed, 40 insertions, 0 deletions
diff --git a/data/icons/meson.build b/data/icons/meson.build
new file mode 100644
index 0000000..412ef9a
--- /dev/null
+++ b/data/icons/meson.build
@@ -0,0 +1,19 @@
+icon_files = {
+ '16x16': 'hicolor_apps_16x16_mozo.png',
+ '22x22': 'hicolor_apps_22x22_mozo.png',
+ '24x24': 'hicolor_apps_24x24_mozo.png',
+ '32x32': 'hicolor_apps_32x32_mozo.png',
+ '48x48': 'hicolor_apps_48x48_mozo.png',
+ '256x256': 'hicolor_apps_256x256_mozo.png',
+}
+
+icondir = join_paths(datadir, 'icons', 'hicolor')
+
+# Remember to call gtk-update-icon-cache when installing / uninstalling.
+foreach size, file : icon_files
+ install_data(file,
+ install_dir: join_paths(icondir, size, 'apps'),
+ rename: '@[email protected]'.format(meson.project_name()),
+ )
+endforeach
+
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..f471366
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,21 @@
+subdir('icons')
+
+desktop_in = configuration_data()
+desktop_in.set('VERSION', meson.project_version())
+
+desktop_file = 'mozo.desktop'
+i18n.merge_file(desktop_file,
+ input: configure_file(
+ input: desktop_file + '.in.in',
+ output: desktop_file + '.in',
+ configuration : desktop_in,
+ ),
+ output: desktop_file,
+ po_dir: join_paths(meson.source_root(), 'po'),
+ type: 'desktop',
+ install: true,
+ install_dir : join_paths(datadir, 'applications')
+ )
+
+install_man('mozo.1')
+install_data('mozo.ui', install_dir: join_paths(datadir, meson.project_name()))