meson: Allow building of g-i with static libs.
authorTim-Philipp Müller <tim@centricular.com>
Fri, 14 Dec 2018 16:44:43 +0000 (16:44 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 23 Dec 2018 15:30:34 +0000 (16:30 +0100)
Allow building of g-i with static libs which should
work since Meson 0.49 and sufficiently recent
gobject-introspection (>= 1.58.1). If g-i is too
old people will get a suitable error message and
can disable g-i via build options.

nice/meson.build

index 15dc250..12b99b2 100644 (file)
@@ -33,7 +33,7 @@ install_headers('nice.h', subdir: 'nice')
 nice_include = include_directories('.')
 
 # introspection
-build_gir = gir.found() and not get_option('introspection').disabled() and get_option('default_library') != 'static'
+build_gir = gir.found() and not get_option('introspection').disabled()
 if build_gir
   nice_gen_sources += [
     gnome.generate_gir(libnice,