--buildtype=release
--force-fallback-for=gdk-pixbuf,pango
-Dintrospection=enabled
+ -Ddocumentation=true
-Dgtk_doc=true
-Dgdk-pixbuf:gtk_doc=true
-Dpango:gtk_doc=true
- -Ddemos=false
+ -Dbuild-demos=false
-Dbuild-examples=false
-Dbuild-tests=false
-Dbuild-testsuite=false
expand_content_md_files = [
]
-if get_option('gtk_doc')
+if get_option('documentation')
gdk4_toml = configure_file(
input: 'gdk4.toml.in',
output: 'gdk4.toml',
-if get_option('gtk_doc')
+if get_option('documentation')
gsk4_toml = configure_file(
input: 'gsk4.toml.in',
output: 'gsk4.toml',
This option controls whether GTK should use colord for color
calibration support in the cups print backend.
-### `gtk_doc`, `man-pages` and `update_screenshots`
+### `documentation`, `man-pages` and `screenshots`
The *gi-docgen* package is used to generate the reference documentation
included with GTK. By default support for *gi-docgen* is disabled
gtk_builder_tool = find_program('gtk4-builder-tool')
-if get_option('update_screenshots')
+if get_option('screenshots')
foreach ui_file: ui_files
png_file = ui_file.replace('.ui', '.png')
gtk_images += custom_target('@0@ from @1@'.format(png_file, ui_file),
subdir('images')
-if get_option('gtk_doc')
+if get_option('documentation')
gtk4_toml = configure_file(
input: 'gtk4.toml.in',
output: 'gtk4.toml',
toml_conf = configuration_data()
toml_conf.set('version', meson.project_version())
-gidocgen = find_program('gi-docgen', required: get_option('gtk_doc'), native: true)
+gidocgen = find_program('gi-docgen', required: get_option('documentation'), native: true)
gidocgen_common_args = [
'--quiet',
docs_dir = gtk_datadir / 'doc'
-if get_option('gtk_doc') and not build_gir
+if get_option('documentation') and not build_gir
error('API reference requires introspection.')
endif
endif
build_gir = gir.found() and (get_option('introspection').enabled() or
- (get_option('introspection').allowed() and get_option('gtk_doc')))
+ (get_option('introspection').allowed() and get_option('documentation')))
# Resource building
glib_compile_resources = find_program('glib-compile-resources')
summary('Debugging', get_option('debug'), section: 'Build')
summary('Optimization', get_option('optimization'), section: 'Build')
summary('Introspection', build_gir, section: 'Build')
-summary('Documentation', get_option('gtk_doc'), section: 'Build')
+summary('Documentation', get_option('documentation'), section: 'Build')
summary('Man pages', get_option('man-pages'), section: 'Build')
summary('Testsuite', get_option('build-testsuite'), section: 'Build')
summary('Tests', get_option('build-tests'), section: 'Build')
value: 'enabled',
description: 'Enable F16C fast paths (requires F16C)')
-# Documentation and introspection
+# Introspection
-option('gtk_doc',
+option('introspection',
+ type: 'feature',
+ value: 'auto',
+ yield: true,
+ description : 'Build introspection data (requires gobject-introspection)')
+
+# Documentation
+
+option('documentation',
type: 'boolean',
value: false,
description : 'Build API reference and tools documentation')
-option('update_screenshots',
+option('gtk_doc',
+ type: 'boolean',
+ value: false,
+ description : 'Build API reference and tools documentation',
+ deprecated: 'documentation')
+
+option('screenshots',
type: 'boolean',
value: false,
description : 'Regenerate screenshots for the documentation')
+option('update_screenshots',
+ type: 'boolean',
+ value: false,
+ description : 'Regenerate screenshots for the documentation',
+ deprecated: 'screenshots')
+
option('man-pages',
type: 'boolean',
value: false,
description : 'Build man pages for installed tools')
-option('introspection',
- type: 'feature',
- value: 'auto',
- yield: true,
- description : 'Build introspection data (requires gobject-introspection)')
-
# Demos, examples and tests
option('demo-profile',
value: 'default',
description : 'Profile to use for demos')
-option('build-demos',
- type: 'boolean',
- value: true,
- description : 'Build demo programs')
-
option('profile',
type: 'combo',
choices: [ 'default', 'devel' ],
value: 'default',
deprecated: 'demo-profile')
+option('build-demos',
+ type: 'boolean',
+ value: true,
+ description : 'Build demo programs')
+
option('demos',
type: 'boolean',
value: true,