meson: fix static build under Windows

Properly define GLIB/GOBJECT_STATIC_COMPILATION when static build is enabled.
Use library() instead of shared_library() to allow selecting static builds.

https://bugzilla.gnome.org/show_bug.cgi?id=784995
This commit is contained in:
Christoph Reiter
2017-07-16 16:41:02 +02:00
committed by Christoph Reiter
parent aa7c5cbdcb
commit cf93b27ceb
9 changed files with 16 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ else
gobject_dtrace_hdr = []
endif
libgobject = shared_library('gobject-2.0',
libgobject = library('gobject-2.0',
gobject_dtrace_obj, gobject_dtrace_hdr,
sources : gobject_sources,
version : library_version,