mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
build: Add option to enable/disable GIR generation
And drop the unnecessary is_cross_build() check: it's entirely possible to generate introspection data when cross-compiling.
This commit is contained in:
parent
1e92faff76
commit
3a0eab776e
@ -916,7 +916,8 @@ libgtk_dep = declare_dependency(sources: [gtkversion, gtktypebuiltins_h],
|
||||
link_args: common_ldflags)
|
||||
|
||||
# Introspection
|
||||
if not meson.is_cross_build()
|
||||
build_gir = get_option('enable-gir')
|
||||
if build_gir
|
||||
gir_args = [
|
||||
'--quiet',
|
||||
]
|
||||
|
@ -32,3 +32,5 @@ option('enable-documentation', type: 'boolean', value: 'false',
|
||||
description : 'Build API reference and tools documentation')
|
||||
option('enable-man-pages', type: 'boolean', value: 'false',
|
||||
description : 'Build man pages for installed tools')
|
||||
option('enable-gir', type: 'boolean', value: 'true',
|
||||
description : 'Build introspection data (requires gobject-introspection)')
|
||||
|
Loading…
Reference in New Issue
Block a user