summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorManatsawin Hanmongkolchai <[email protected]>2022-11-14 01:35:12 +0700
committerraveit65 <[email protected]>2023-04-20 18:07:49 +0200
commitbbcbca9eb1240c3493895dbdcf03a4b2c2803d29 (patch)
tree9719912dab8fdd4238045f739a821fba2630a4b9 /data
parent2c38b75e422a41cfa180d1f4a5a55d52577b2989 (diff)
downloadeom-bbcbca9eb1240c3493895dbdcf03a4b2c2803d29.tar.bz2
eom-bbcbca9eb1240c3493895dbdcf03a4b2c2803d29.tar.xz
Add meson build support
Diffstat (limited to 'data')
-rw-r--r--data/icons/meson.build30
-rw-r--r--data/meson.build44
2 files changed, 74 insertions, 0 deletions
diff --git a/data/icons/meson.build b/data/icons/meson.build
new file mode 100644
index 0000000..c037657
--- /dev/null
+++ b/data/icons/meson.build
@@ -0,0 +1,30 @@
+actioniconsdir = pkgdatadir / 'icons' / 'hicolor'
+appiconsdir = datadir / 'icons' / 'hicolor'
+
+install_data([
+ '16x16/actions/eom-image-collection.png',
+ '16x16/actions/eom-plugin.png',
+ '16x16/actions/slideshow-play.png',
+ '22x22/actions/eom-image-collection.png',
+ '22x22/actions/eom-plugin.png',
+ '22x22/actions/slideshow-play.png',
+ '24x24/actions/eom-image-collection.png',
+ '24x24/actions/slideshow-play.png',
+ '32x32/actions/eom-image-collection.png',
+ '32x32/actions/eom-plugin.png',
+ '32x32/actions/slideshow-play.png',
+ '48x48/actions/slideshow-play.png',
+ 'scalable/actions/eom-image-collection.svg',
+ 'scalable/actions/eom-plugin.svg',
+ 'scalable/actions/slideshow-play.svg',
+], install_dir: actioniconsdir, preserve_path: true)
+
+install_data([
+ '16x16/apps/eom.png',
+ '22x22/apps/eom.png',
+ '24x24/apps/eom.png',
+ '32x32/apps/eom.png',
+ 'scalable/apps/eom.svg',
+], install_dir: appiconsdir, preserve_path: true)
+
+meson.add_install_script(find_program('gtk-update-icon-cache'), '-f', '-t', appiconsdir, skip_if_destdir: true)
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..468fa88
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,44 @@
+subdir('icons')
+
+desktopdir = datadir / 'applications'
+desktopfile = configure_file(input: 'eom.desktop.in.in', configuration: pkg_info, output: 'eom.desktop.in')
+
+if get_option('nls')
+ i18n.merge_file(
+ input: desktopfile,
+ output: 'eom.desktop',
+ install: true,
+ install_dir: desktopdir,
+ type: 'desktop',
+ po_dir: po_dir,
+ )
+else
+ install_data(desktopfile, install_dir: desktopdir)
+endif
+gnome.post_install(update_desktop_database: true)
+
+appdatadir = join_paths(datadir, 'metainfo')
+appdatafile = configure_file(input: 'eom.appdata.xml.in.in', configuration: pkg_info, output: 'eom.appdata.xml.in')
+
+if get_option('nls')
+ i18n.merge_file(
+ input: appdatafile,
+ output: 'eom.appdata.xml',
+ install: true,
+ install_dir: appdatadir,
+ type: 'xml',
+ po_dir: po_dir,
+ )
+else
+ install_data(appdatafile, install_dir: appdatadir)
+endif
+
+gsettings_schema = configure_file(input: 'org.mate.eom.gschema.xml.in', configuration: pkg_info, output: 'org.mate.eom.gschema.xml')
+install_data(gsettings_schema, install_dir: schemadir)
+gnome.post_install(glib_compile_schemas: true)
+
+eom_pc = configure_file(input: 'eom.pc.in', configuration: pkg_info, output: 'eom.pc')
+install_data(eom_pc, install_dir: libdir / 'pkgconfig')
+
+uidir = pkgdatadir
+install_data('eom-toolbar.xml', install_dir: uidir)