mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-02 07:15:53 -04:00
Merge branch 'mr/valiopt' into 'main'
doc: make DocBook validation optional See merge request wayland/wayland!514
This commit is contained in:
commit
3be987bfe5
3 changed files with 11 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ armv7-debian-container_prep:
|
||||||
# Core build environment.
|
# Core build environment.
|
||||||
.build-env:
|
.build-env:
|
||||||
variables:
|
variables:
|
||||||
MESON_BUILD_TYPE: "-Dbuildtype=debug -Doptimization=0 -Db_sanitize=address,undefined"
|
MESON_BUILD_TYPE: "-Dbuildtype=debug -Doptimization=0 -Db_sanitize=address,undefined -Ddocbook_validation=true"
|
||||||
# See https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/154
|
# See https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/154
|
||||||
ASAN_OPTIONS: "detect_odr_violation=0"
|
ASAN_OPTIONS: "detect_odr_violation=0"
|
||||||
before_script:
|
before_script:
|
||||||
|
|
|
||||||
|
|
@ -94,11 +94,16 @@ foreach src : files([
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
skip_validation = '--skip-validation'
|
||||||
|
if get_option('docbook_validation')
|
||||||
|
skip_validation = []
|
||||||
|
endif
|
||||||
|
|
||||||
custom_target(
|
custom_target(
|
||||||
'Wayland-docbook-html',
|
'Wayland-docbook-html',
|
||||||
command: [
|
command: [
|
||||||
xmlto,
|
xmlto,
|
||||||
'--skip-validation',
|
skip_validation,
|
||||||
'--stringparam', 'chunker.output.encoding=UTF-8',
|
'--stringparam', 'chunker.output.encoding=UTF-8',
|
||||||
'--stringparam', 'chunk.section.depth=0',
|
'--stringparam', 'chunk.section.depth=0',
|
||||||
'--stringparam', 'toc.section.depth=1',
|
'--stringparam', 'toc.section.depth=1',
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ option('documentation',
|
||||||
description: 'Build the documentation (requires Doxygen, dot, xmlto, xsltproc)',
|
description: 'Build the documentation (requires Doxygen, dot, xmlto, xsltproc)',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: true)
|
value: true)
|
||||||
|
option('docbook_validation',
|
||||||
|
type: 'boolean',
|
||||||
|
value: false,
|
||||||
|
description: 'Validate the intermediate DocBook XML during the documentation build')
|
||||||
option('dtd_validation',
|
option('dtd_validation',
|
||||||
description: 'Validate the protocol DTD (requires libxml2)',
|
description: 'Validate the protocol DTD (requires libxml2)',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue