summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2021-07-25 11:52:47 +0800
committerraveit65 <[email protected]>2021-07-30 19:02:49 +0200
commit8dca108a6a4bed0b3411e41cb04b143c71036b67 (patch)
tree35632a66e2d50c89a690e5202a2e0ff56e7285b6 /data
parenta1216168706c08384154d3cea579d223fdc9e81d (diff)
downloadmate-calc-8dca108a6a4bed0b3411e41cb04b143c71036b67.tar.bz2
mate-calc-8dca108a6a4bed0b3411e41cb04b143c71036b67.tar.xz
Add build support for meson
Diffstat (limited to 'data')
-rw-r--r--data/meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..538b26a
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,30 @@
+# Desktop file
+i18n.merge_file(
+ input: 'mate-calc.desktop.in',
+ output: 'mate-calc.desktop',
+ type: 'desktop',
+ po_dir: po_dir,
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'applications'),
+)
+
+# Appdata
+i18n.merge_file(
+ input: 'mate-calc.appdata.xml.in',
+ output: 'mate-calc.appdata.xml',
+ type: 'xml',
+ po_dir: po_dir,
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'metainfo')
+)
+
+# Gschema
+ install_data('org.mate.calc.gschema.xml',
+ install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'),
+ )
+
+# Manpage
+install_man(
+ 'mate-calc-cmd.1',
+ 'mate-calc.1'
+)