[dia/bilelmoussaoui/freedesktop-compliant: 4/7] Validate the desktop file & correctly translate appdata file
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/bilelmoussaoui/freedesktop-compliant: 4/7] Validate the desktop file & correctly translate appdata file
- Date: Thu, 19 Sep 2019 21:50:21 +0000 (UTC)
commit ed66f3c91c2136413c9ec8c6dca425d509540ffe
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Thu Sep 19 23:43:26 2019 +0200
Validate the desktop file & correctly translate appdata file
data/meson.build | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 50d68f62..d91875d8 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,15 +1,25 @@
desktop_file = i18n.merge_file(
- input: 'org.gnome.Dia.desktop',
- output: 'org.gnome.Dia.desktop',
+ input: 'org.gnome.Dia.desktop.in',
+ output: '@BASENAME@',
type: 'desktop',
po_dir: po_dir,
install: true,
install_dir: join_paths(datadir, 'applications')
)
+# Validate Desktop file
+if desktop_file_validate.found()
+ test(
+ 'validate-desktop',
+ desktop_file_validate,
+ args: [
+ desktop_file.full_path()
+ ]
+ )
+endif
appdata_file = i18n.merge_file (
- input: 'org.gnome.Dia.appdata.xml',
+ input: 'org.gnome.Dia.appdata.xml.in',
output: '@BASENAME@',
po_dir: po_dir,
install: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]