summary refs log tree commit diff
path: root/data/meson.build
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-08-13 17:21:46 +0200
committerRobert Günzler <r@gnzler.io>2026-08-13 17:21:46 +0200
commit502d94151ed9dcfeeb691a92a4c413be5783ae2d (patch)
tree0a547802f5408e8bcd11eca811365f0622519abc /data/meson.build
downloadmunchmate-master.tar.gz
initial commit HEAD master
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'data/meson.build')
-rw-r--r--data/meson.build54
1 files changed, 54 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..dea46c4
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,54 @@
+subdir('ui')
+
+resource_files = files('im.gzr.MunchMate.gresource.xml')
+resources = gnome.compile_resources(
+  'im.gzr.MunchMate',
+  resource_files,
+  source_dir: meson.current_build_dir(),
+  dependencies: custom_target(
+    'blueprints',
+    input: blueprints,
+    output: '.',
+    command: [ find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@' ],
+  ),
+  c_name: 'resources',
+)
+
+install_subdir('icons/',
+  install_dir: join_paths(get_option('datadir'), 'icons/hicolor'))
+
+desktop_file = files('im.gzr.MunchMate.desktop')
+install_data(
+  desktop_file,
+  install_dir: join_paths(get_option('datadir'), 'applications'),
+)
+
+metainfo_file = files('im.gzr.MunchMate.metainfo.xml')
+install_data(
+  metainfo_file,
+  install_dir: join_paths(get_option('datadir'), 'metainfo'),
+)
+
+# Validating app data
+appstreamcli = find_program('appstreamcli', required: false)
+if appstreamcli.found()
+  test(
+    'validate-appdata', appstreamcli,
+    args: [ 'validate', '--no-net', '--explain', metainfo_file ],
+  )
+endif
+
+schema_file = files('im.gzr.MunchMate.gschema.xml')
+install_data(
+  schema_file,
+  install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
+)
+
+configure_file(
+  input: 'im.gzr.MunchMate.service.in',
+  output: 'im.gzr.MunchMate.service',
+  configuration: configuration_data({
+    'bindir': join_paths(get_option('prefix'), get_option('bindir')),
+  }),
+  install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services')
+)