[libadwaita/msvc: 78/79] demo/data: Don't try building appstream items on Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 78/79] demo/data: Don't try building appstream items on Windows
- Date: Thu, 30 Dec 2021 03:19:50 +0000 (UTC)
commit 30503f54995a9edcd4dc7c30a0ef6e2fff8cecba
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Oct 29 17:51:51 2021 +0800
demo/data: 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]