summaryrefslogtreecommitdiffstats
path: root/data/metainfo/meson.build
diff options
context:
space:
mode:
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