summaryrefslogtreecommitdiffstats
path: root/data/metainfo/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/metainfo/meson.build
parentInitial commit. (diff)
downloadgnome-software-6f0f7d1b40a8fa8d46a2d6f4317600001cdbbb18.tar.xz
gnome-software-6f0f7d1b40a8fa8d46a2d6f4317600001cdbbb18.zip
Adding upstream version 43.5.upstream/43.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'data/metainfo/meson.build')
-rw-r--r--data/metainfo/meson.build22
1 files changed, 22 insertions, 0 deletions
diff --git a/data/metainfo/meson.build b/data/metainfo/meson.build
new file mode 100644
index 0000000..2d056ff
--- /dev/null
+++ b/data/metainfo/meson.build
@@ -0,0 +1,22 @@
+i18n.merge_file(
+ input: 'org.gnome.Software.metainfo.xml.in',
+ output: 'org.gnome.Software.metainfo.xml',
+ type: 'xml',
+ po_dir: join_paths(meson.project_source_root(), 'po'),
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'metainfo')
+)
+
+if get_option('tests') and appstream.version().version_compare('>=0.15.5')
+ ascli_exe = find_program('appstreamcli')
+ test('gs-validate-metainfo',
+ ascli_exe,
+ args: ['validate',
+ '--pedantic',
+ '--no-net',
+ '--explain',
+ 'org.gnome.Software.metainfo.xml.in'],
+ workdir : meson.current_source_dir(),
+ suite: ['lib'],
+ )
+endif