+<?xml version="1.0" standalone="yes"?>
<!--
============================================
-->
+<!DOCTYPE driconf [
+ <!ELEMENT driconf (device+)>
+ <!ELEMENT device (application+)>
+ <!ATTLIST device driver CDATA #IMPLIED>
+ <!ELEMENT application (option+)>
+ <!ATTLIST application name CDATA #REQUIRED
+ executable CDATA #REQUIRED>
+ <!ELEMENT option EMPTY>
+ <!ATTLIST option name CDATA #REQUIRED
+ value CDATA #REQUIRED>
+]>
+
<driconf>
<!-- Please always enable app-specific workarounds for all drivers and
screens. -->
'vma.h',
)
-install_data('00-mesa-defaults.conf', install_dir : join_paths(get_option('datadir'), 'drirc.d'))
+files_drirc = files('00-mesa-defaults.conf')
+
+install_data(files_drirc, install_dir : join_paths(get_option('datadir'), 'drirc.d'))
+
+if with_tests
+ prog_xmllint = find_program('xmllint', required : false, native : true)
+ if prog_xmllint.found()
+ test(
+ 'drirc xml validation',
+ prog_xmllint,
+ args : ['--noout', '--valid', files_drirc],
+ suite : ['util'],
+ )
+ endif
+endif
files_xmlconfig = files(
'xmlconfig.c',