[iagno] Unrelax the appdata validation.



commit 671399e7eac5039a3d2b6462681ae5399f0640b4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Aug 5 23:30:00 2019 +0200

    Unrelax the appdata validation.

 data/meson.build | 4 +---
 meson.build      | 4 ++++
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 222c65a..9b7532d 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -35,7 +35,6 @@ desktop_file = i18n.merge_file(
 )
 
 # Validate desktop file
-desktop_file_validate = find_program('desktop-file-validate', required: false)
 if desktop_file_validate.found()
   test(
     'validate-desktop',
@@ -56,12 +55,11 @@ appdata_file = i18n.merge_file(
 )
 
 # Validate AppData file
-appstream_util = find_program('appstream-util', required: false)
 if appstream_util.found()
   test(
     'validate-appdata', appstream_util,
     args: [
-      'validate-relax', '--nonet', appdata_file.full_path()
+      'validate', '--nonet', appdata_file.full_path()
     ]
   )
 endif
diff --git a/meson.build b/meson.build
index b1dbae6..7f6abc0 100644
--- a/meson.build
+++ b/meson.build
@@ -21,6 +21,10 @@ libm_dependency = cc.find_library('m', required: false) # some platforms do not
 posix_dependency = valac.find_library('posix')
 rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
 
+appstream_util          = find_program('appstream-util',        required: false)
+desktop_file_validate   = find_program('desktop-file-validate', required: false)
+glib_compile_schema     = find_program('glib-compile-schemas',  required: true) # useful?
+
 # Set gettext package name
 add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language: 'c')
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]