[libadwaita/msvc: 6/11] demo: Don't try building appstream items on Windows




commit 9395f52a00694ffd8470fa8eed86b0a6d17f984e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Oct 29 17:51:51 2021 +0800

    demo: Don't try building appstream items on Windows
    
    This simply does not exist on Windows

 demo/data/meson.build | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/demo/data/meson.build b/demo/data/meson.build
index 612410c5..27f97734 100644
--- a/demo/data/meson.build
+++ b/demo/data/meson.build
@@ -28,17 +28,19 @@ appdata_config = configuration_data()
 appdata_config.set('BUILD_VERSION', meson.project_version())
 appdata_config.set('BUILD_DATE', today)
 
-appstream_file = i18n.merge_file(
-  input: configure_file(
-    input: 'org.gnome.Adwaita1.Demo.metainfo.xml.in.in',
-    output: 'org.gnome.Adwaita1.Demo.metainfo.xml.in',
-    configuration: appdata_config
-  ),
-  output: 'org.gnome.Adwaita1.Demo.metainfo.xml',
-  po_dir: '../../po',
-  install: true,
-  install_dir: datadir / 'metainfo'
-)
+if target_system != 'windows'
+  appstream_file = i18n.merge_file(
+    input: configure_file(
+      input: 'org.gnome.Adwaita1.Demo.metainfo.xml.in.in',
+      output: 'org.gnome.Adwaita1.Demo.metainfo.xml.in',
+      configuration: appdata_config
+    ),
+    output: 'org.gnome.Adwaita1.Demo.metainfo.xml',
+    po_dir: '../../po',
+    install: true,
+    install_dir: datadir / 'metainfo'
+  )
+endif
 
 appstream_util = find_program('appstream-util', required: false)
 if appstream_util.found()


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