summaryrefslogtreecommitdiffstats
path: root/data/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:57:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:57:27 +0000
commit6f0f7d1b40a8fa8d46a2d6f4317600001cdbbb18 (patch)
treed423850ae901365e582137bdf2b5cbdffd7ca266 /data/meson.build
parentInitial commit. (diff)
downloadgnome-software-upstream/43.5.tar.xz
gnome-software-upstream/43.5.zip
Adding upstream version 43.5.upstream/43.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--data/meson.build42
1 files changed, 42 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..7d0aa6d
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,42 @@
+subdir('metainfo')
+subdir('icons')
+subdir('assets')
+
+cdata = configuration_data()
+cdata.set('bindir', join_paths(get_option('prefix'),
+ get_option('bindir')))
+
+# note: the main .desktop file is in src/
+# this one is for the background service
+# replace @bindir@
+configure_file(
+ input : 'autostart/org.gnome.Software.desktop.in',
+ output : 'org.gnome.Software.desktop',
+ install_dir: join_paths(get_option('sysconfdir'), 'xdg/autostart'),
+ configuration : cdata
+)
+
+compiled_schemas = gnome.compile_schemas(
+ depend_files: 'org.gnome.software.gschema.xml')
+install_data('org.gnome.software.gschema.xml',
+ install_dir : join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
+
+if get_option('external_appstream')
+ # replace @libexecdir@
+ conf_data = configuration_data()
+ conf_data.set('libexecdir', join_paths(get_option('prefix'),
+ get_option('libexecdir')))
+ out = configure_file(
+ input : 'org.gnome.software.external-appstream.policy.in.in',
+ output : 'org.gnome.software.external-appstream.policy.in',
+ install: false,
+ configuration : conf_data,
+ )
+ i18n.merge_file(
+ input : out,
+ output : 'org.gnome.software.external-appstream.policy',
+ po_dir: join_paths(meson.project_source_root(), 'po'),
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'polkit-1', 'actions'),
+ )
+endif