From db8b4a90b21452fdf6519dad2211ce81c954b7c2 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 17 Dec 2018 12:57:24 +0100 Subject: meson: Be able to build the static library Don't use the meson's shared_library() target, but the library() one, so we are able to change the library type through the default_library option. Also disable introspection if the static library is requested as the gnome.generate_gir() needs an executable or a shared library. --- libsoup/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsoup/meson.build') diff --git a/libsoup/meson.build b/libsoup/meson.build index 2b149a0e..eaa74d12 100644 --- a/libsoup/meson.build +++ b/libsoup/meson.build @@ -223,7 +223,7 @@ deps = [ platform_deps ] -libsoup = shared_library('soup-@0@'.format(apiversion), +libsoup = library('soup-@0@'.format(apiversion), soup_sources, soup_headers, soup_enums, @@ -262,7 +262,7 @@ if enable_gnome soup_gnome_installed_headers, subdir : includedir) - libsoup_gnome = shared_library(soup_gnome_api_name, + libsoup_gnome = library(soup_gnome_api_name, soup_gnome_sources + soup_gnome_headers, version : libversion, soversion : soversion, -- cgit v1.2.1