[libadwaita/msvc: 4/9] build: Skip building examples on MSVC




commit 767bd50eb6cc114adc4241a468c796963415aad7
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]