mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-23 06:59:47 -05:00
protocol: validate the protocol against a dtd
The scanner is not very forgiving if the protocol doesn't match it's expectations and crashes without much of a notice. Thus, validate the protocol against a DTD. Move the protocol subdir forward so we validate first before trying anything else, and install the DTD so we can validate weston's protocols as well.
This commit is contained in:
parent
16b2dab4e4
commit
05f95c85c8
4 changed files with 47 additions and 2 deletions
|
|
@ -1 +1,14 @@
|
|||
dist_pkgdata_DATA = wayland.xml
|
||||
dist_pkgdata_DATA = wayland.xml wayland.dtd
|
||||
|
||||
if HAVE_XMLLINT
|
||||
.PHONY: validate
|
||||
|
||||
.%.xml.valid: %.xml
|
||||
$(AM_V_GEN)$(XMLLINT) --noout --dtdvalid $(srcdir)/wayland.dtd $^ > $@
|
||||
|
||||
validate: .wayland.xml.valid
|
||||
|
||||
all-local: validate
|
||||
|
||||
CLEANFILES = .wayland.xml.valid
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue