Explorar el Código

meson: allow disabling appdata validation

Matthias Vogelgesang hace 7 años
padre
commit
33511e3d16
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. 1 1
      data/meson.build
  2. 3 0
      meson_options.txt

+ 1 - 1
data/meson.build

@@ -23,7 +23,7 @@ appstream_file = i18n.merge_file(
 )
 )
 
 
 appstream_util = find_program('appstream-util', required: false)
 appstream_util = find_program('appstream-util', required: false)
-if appstream_util.found()
+if appstream_util.found() and get_option('validate_appdata')
   test('Validate appstream file', appstream_util,
   test('Validate appstream file', appstream_util,
     args: ['validate', appstream_file]
     args: ['validate', appstream_file]
   )
   )

+ 3 - 0
meson_options.txt

@@ -1,2 +1,5 @@
 option('predefined_salt', type: 'string',
 option('predefined_salt', type: 'string',
        description: 'Hexlified salt for debugging purposes')
        description: 'Hexlified salt for debugging purposes')
+
+option('validate_appdata', type: 'boolean', value: true,
+       description: 'Disable validation of appdata file')