[glibmm/use-dllexport-2-62: 2/2] meson: Do not allow static MSVC-style builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/use-dllexport-2-62: 2/2] meson: Do not allow static MSVC-style builds
- Date: Mon, 9 Mar 2020 06:58:30 +0000 (UTC)
commit 7517758b5ddd2321b10491d19276e7d44d797833
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Mar 9 12:32:17 2020 +0800
meson: Do not allow static MSVC-style builds
The Visual Studio build files never really supported static builds, so
disallow that for now, until we can make sure that is tested better.
glib/meson.build | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/glib/meson.build b/glib/meson.build
index 1b918c00..99c43772 100644
--- a/glib/meson.build
+++ b/glib/meson.build
@@ -32,7 +32,16 @@ pkg_conf_data.set('GLIBMM_MICRO_VERSION', glibmm_micro_version)
pkg_conf_data.set('GIOMM_MAJOR_VERSION', glibmm_major_version)
pkg_conf_data.set('GIOMM_MINOR_VERSION', glibmm_minor_version)
pkg_conf_data.set('GIOMM_MICRO_VERSION', glibmm_micro_version)
-if get_option('default_library') == 'static'
+
+library_build_type = get_option('default_library')
+
+if cpp_compiler.get_argument_syntax() == 'msvc'
+ if library_build_type == 'static' or library_build_type == 'both'
+ error('Static builds are not supported by MSVC-style builds')
+ endif
+endif
+
+if library_build_type == 'static'
pkg_conf_data.set('GLIBMM_STATIC_LIB', 1)
pkg_conf_data.set('GIOMM_STATIC_LIB', 1)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]