[meson] Don't allow introspection on static library
This commit is contained in:
parent
9566904cb3
commit
5c8e1bd237
|
@ -617,7 +617,17 @@ if have_gobject
|
|||
)
|
||||
|
||||
gir = find_program('g-ir-scanner', required: get_option('introspection'))
|
||||
build_gir = gir.found() and not meson.is_cross_build()
|
||||
build_gir = gir.found()
|
||||
|
||||
build_gir = build_gir and not meson.is_cross_build()
|
||||
if not build_gir and get_option('introspection').enabled()
|
||||
error('Introspection support is requested but it isn\'t available in cross builds')
|
||||
endif
|
||||
|
||||
build_gir = build_gir and get_option('default_library') != 'static'
|
||||
if not build_gir and get_option('introspection').enabled()
|
||||
error('Introspection support is requested but the default library option should be shared or both')
|
||||
endif
|
||||
|
||||
if build_gir
|
||||
conf.set('HAVE_INTROSPECTION', 1)
|
||||
|
|
Loading…
Reference in New Issue