[gedit/master-msvc: 9/10] data: Don't do appstream items on Windows




commit d1d1f54cee029a7aa99185807788e84d66261d0c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Oct 13 21:39:32 2021 +0800

    data: Don't do appstream items on Windows
    
    This does not exist on Windows.

 data/meson.build | 32 +++++++++++++++++---------------
 1 file changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 0077b49c5..7d65c5133 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -2,22 +2,24 @@ subdir('icons')
 
 install_man('gedit.1')
 
-appdata = 'org.gnome.gedit.appdata.xml'
-appdata_file = i18n.merge_file(
-  input: appdata + '.in',
-  output: appdata,
-  po_dir: '../po/',
-  install: true,
-  install_dir: get_option('datadir') / 'metainfo'
-)
-
-appstream_util = find_program('appstream-util', required: get_option('require_all_tests'))
-if appstream_util.found()
-  test(
-    'validate-appdata',
-    appstream_util,
-    args: ['validate-relax', '--nonet', appdata_file]
+if host_machine.system() != 'windows'
+  appdata = 'org.gnome.gedit.appdata.xml'
+  appdata_file = i18n.merge_file(
+    input: appdata + '.in',
+    output: appdata,
+    po_dir: '../po/',
+    install: true,
+    install_dir: get_option('datadir') / 'metainfo'
   )
+
+  appstream_util = find_program('appstream-util', required: get_option('require_all_tests'))
+  if appstream_util.found()
+    test(
+      'validate-appdata',
+      appstream_util,
+      args: ['validate-relax', '--nonet', appdata_file]
+    )
+  endif
 endif
 
 desktop_file = 'org.gnome.gedit.desktop'


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