forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#14930) Glibmm v2 toolchain
* [glibmm] add version 2.74.0 * [glibmm] update meson toolchain * [glibmm] update test packages * [glibmm] fix libsigcpp component requires * [glibmm] add v1 test package * [glibmm] disable static builds on msvc * [glibmm] bump glib version * Update recipes/glibmm/all/conanfile.py Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> * Update recipes/glibmm/all/conanfile.py Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> * [glibmm] add 2.75.0 * [glibmm] add and document patches for 2.75.0 * Update recipes/glibmm/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * [glibmm] enable cross compilation * [glibmm] reorder methods * [glibmm] review suggestions --------- Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Co-authored-by: Uilian Ries <uilianries@gmail.com>
- Loading branch information
Showing
9 changed files
with
282 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
recipes/glibmm/all/patches/enable_static_libs_2_75_0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/glib/glibmmconfig.h.meson b/glib/glibmmconfig.h.meson | ||
index ef4753d7..b926720b 100644 | ||
--- a/glib/glibmmconfig.h.meson | ||
+++ b/glib/glibmmconfig.h.meson | ||
@@ -27,7 +27,9 @@ | ||
# if defined(_MSC_VER) | ||
# define GLIBMM_MSC 1 | ||
# define GLIBMM_WIN32 1 | ||
-# define GLIBMM_DLL 1 | ||
+# ifndef GLIBMM_STATIC_LIB | ||
+# define GLIBMM_DLL 1 | ||
+# endif | ||
# elif defined(__CYGWIN__) | ||
# define GLIBMM_CONFIGURE 1 | ||
# elif defined(__MINGW32__) | ||
diff --git a/glib/meson.build b/glib/meson.build | ||
index d16621e9..3eb8bc47 100644 | ||
--- a/glib/meson.build | ||
+++ b/glib/meson.build | ||
@@ -37,12 +37,6 @@ pkg_conf_data.set('MSVC_TOOLSET_VER', msvc14x_toolset_ver) | ||
|
||
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) |
Oops, something went wrong.