forked from AuroraMiddleware/gtk
Rename enable-documentation and enable-man-pages options
You can now disable the documentation build with -Ddocumentation=false and -Dman-pages=false.
This commit is contained in:
parent
15edfbbc88
commit
dd4361a638
@ -305,13 +305,13 @@ How to compile GTK+ itself
|
|||||||
</group>
|
</group>
|
||||||
<sbr/>
|
<sbr/>
|
||||||
<group>
|
<group>
|
||||||
<arg choice="plain">-Denable-documentation=true</arg>
|
<arg choice="plain">-Ddocumentation=true</arg>
|
||||||
<arg choice="plain">-Denable-documentation=false</arg>
|
<arg choice="plain">-Ddocumentation=false</arg>
|
||||||
</group>
|
</group>
|
||||||
<sbr/>
|
<sbr/>
|
||||||
<group>
|
<group>
|
||||||
<arg choice="plain">-Denable-man-pages=true</arg>
|
<arg choice="plain">-Dman-pages=true</arg>
|
||||||
<arg choice="plain">-Denable-man-pages=false</arg>
|
<arg choice="plain">-Dman-pages=false</arg>
|
||||||
</group>
|
</group>
|
||||||
<sbr/>
|
<sbr/>
|
||||||
<group>
|
<group>
|
||||||
|
@ -47,11 +47,11 @@ gnome.gtkdoc('gtk4',
|
|||||||
install: true)
|
install: true)
|
||||||
|
|
||||||
xsltproc = find_program('xsltproc', required: false)
|
xsltproc = find_program('xsltproc', required: false)
|
||||||
if get_option('enable-man-pages') and not xsltproc.found()
|
if get_option('man-pages') and not xsltproc.found()
|
||||||
error('No xsltproc found, but man pages were explicitly enabled')
|
error('No xsltproc found, but man pages were explicitly enabled')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('enable-man-pages') and xsltproc.found()
|
if get_option('man-pages') and xsltproc.found()
|
||||||
xlstproc_flags = [
|
xlstproc_flags = [
|
||||||
'--nonet',
|
'--nonet',
|
||||||
'--stringparam', 'man.output.quietly', '1',
|
'--stringparam', 'man.output.quietly', '1',
|
||||||
|
@ -608,7 +608,7 @@ endif
|
|||||||
subdir('po')
|
subdir('po')
|
||||||
subdir('po-properties')
|
subdir('po-properties')
|
||||||
|
|
||||||
if get_option('enable-documentation')
|
if get_option('documentation')
|
||||||
subdir('docs/tools')
|
subdir('docs/tools')
|
||||||
subdir('docs/reference')
|
subdir('docs/reference')
|
||||||
endif
|
endif
|
||||||
@ -621,7 +621,7 @@ summary = [
|
|||||||
' Enabled backends: @0@'.format(pkg_targets.strip()),
|
' Enabled backends: @0@'.format(pkg_targets.strip()),
|
||||||
' Vulkan support: @0@'.format(have_vulkan),
|
' Vulkan support: @0@'.format(have_vulkan),
|
||||||
' Tests: @0@'.format(get_option('build-tests')),
|
' Tests: @0@'.format(get_option('build-tests')),
|
||||||
' Documentation: @0@'.format(get_option('enable-documentation')),
|
' Documentation: @0@'.format(get_option('documentation')),
|
||||||
' Demos: @0@'.format(get_option('demos')),
|
' Demos: @0@'.format(get_option('demos')),
|
||||||
'------',
|
'------',
|
||||||
''
|
''
|
||||||
|
@ -30,9 +30,9 @@ option('disable-modules', type: 'boolean', value : 'false',
|
|||||||
description : 'Disable dynamic module loading')
|
description : 'Disable dynamic module loading')
|
||||||
option('with-included-immodules', type: 'string', value : '',
|
option('with-included-immodules', type: 'string', value : '',
|
||||||
description : 'Build the specified input methods into gtk (comma-separated list or "all" or "none")')
|
description : 'Build the specified input methods into gtk (comma-separated list or "all" or "none")')
|
||||||
option('enable-documentation', type: 'boolean', value: 'false',
|
option('documentation', type: 'boolean', value: 'false',
|
||||||
description : 'Build API reference and tools documentation')
|
description : 'Build API reference and tools documentation')
|
||||||
option('enable-man-pages', type: 'boolean', value: 'false',
|
option('man-pages', type: 'boolean', value: 'false',
|
||||||
description : 'Build man pages for installed tools')
|
description : 'Build man pages for installed tools')
|
||||||
option('introspection', type: 'boolean', value: 'true',
|
option('introspection', type: 'boolean', value: 'true',
|
||||||
description : 'Build introspection data (requires gobject-introspection)')
|
description : 'Build introspection data (requires gobject-introspection)')
|
||||||
|
Loading…
Reference in New Issue
Block a user