[libadwaita/msvc: 5/11] build: Skip building examples on MSVC
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 5/11] build: Skip building examples on MSVC
- Date: Wed, 19 Jan 2022 15:19:56 +0000 (UTC)
commit 9fd002e0053047648ebcddae112704b5c1838f5b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Jan 18 11:58:29 2022 +0800
build: Skip building examples on MSVC
...and revert the changes to drop g_autoptr() there.
examples/meson.build | 7 +++++++
meson_options.txt | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/examples/meson.build b/examples/meson.build
index bbacb3f4..a2a05fc6 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -1,3 +1,10 @@
+if cc.get_id() == 'msvc'
+
+ message('Skipping examples while building with Visual Studio')
+ subdir_done()
+
+endif
+
if get_option('examples')
subdir('hello-world')
diff --git a/meson_options.txt b/meson_options.txt
index a136a963..b95d0ae4 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -19,4 +19,4 @@ option('tests',
option('examples',
type: 'boolean', value: true,
- description: 'Build and install the examples and demo applications')
+ description: 'Build and install the examples and demo applications (currently not built for MSVC
builds)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]