[glade/glade-3-36.msvc: 8/18] meson: Don't build AppData on Windows



commit 5c25bc4279f6c9873aca9ed0840227d361f352b9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Jun 2 17:06:41 2020 +0800

    meson: Don't build AppData on Windows
    
    AppData simply does not exist on Windows.

 data/meson.build | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 9f244566..cc16b356 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -15,16 +15,18 @@ i18n.merge_file(
   install_dir: glade_datadir / 'applications',
 )
 
-appdata = glade_name + '.appdata.xml'
+if glade_system != 'windows'
+  appdata = glade_name + '.appdata.xml'
 
-i18n.merge_file(
-  'appdata',
-  input: 'org.gnome.Glade.appdata.xml.in',
-  output: '@BASENAME@',
-  po_dir: po_dir,
-  install: true,
-  install_dir: glade_datadir / 'metainfo',
-)
+  i18n.merge_file(
+    'appdata',
+    input: 'org.gnome.Glade.appdata.xml.in',
+    output: '@BASENAME@',
+    po_dir: po_dir,
+    install: true,
+    install_dir: glade_datadir / 'metainfo',
+  )
+endif
 
 # FIXME: replace these by install_subdir once autotools is removed
 install_data(


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