[libadwaita/msvc: 12/12] 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: 12/12] demo/data: Don't try building appstream items on Windows
- Date: Tue, 11 Jan 2022 09:18:19 +0000 (UTC)
commit e80859bb37e222f1c97338a74be59063dd279aae
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]