Rename and document the enable-gir option

You can disable introspection now with -Dintrospection=false.
This commit is contained in:
Matthias Clasen 2017-09-06 09:27:59 -04:00
parent b5e00d36f0
commit 15edfbbc88
3 changed files with 17 additions and 2 deletions

View File

@ -384,6 +384,10 @@ How to compile GTK+ itself
<arg choice="plain">-Denable-mir-backend=true</arg>
<arg choice="plain">-Denable-mir-backend=false</arg>
</group>
<group>
<arg choice="plain">-Dintrospection=true</arg>
<arg choice="plain">-Dintrospection=false</arg>
</group>
</cmdsynopsis>
</para>
@ -480,6 +484,17 @@ How to compile GTK+ itself
</para>
</formalpara>
<formalpara>
<title><systemitem>introspection</systemitem></title>
<para>
Allows to disable building introspection support. This is option
is mainly useful for shortening turnaround times on developer
systems. Installed builds of GTK+ should always have introspection
support.
</para>
</formalpara>
<formalpara>
<title><systemitem>build-tests</systemitem>
<systemitem>demos</systemitem></title>

View File

@ -920,7 +920,7 @@ libgtk_dep = declare_dependency(sources: [gtkversion, gtktypebuiltins_h],
link_args: common_ldflags)
# Introspection
build_gir = get_option('enable-gir')
build_gir = get_option('introspection')
if build_gir
gir_args = [
'--quiet',

View File

@ -34,7 +34,7 @@ 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',
option('introspection', type: 'boolean', value: 'true',
description : 'Build introspection data (requires gobject-introspection)')
option('demos', type: 'boolean', value: 'true',
description : 'Build demos and example programs')