Gimp/data/tips/meson.build
Jehan 2730361928 data: fix more xmllint validation.
Similarly to the previous commit, the tips and tags validation was never
happening as it was implemented as a custom top-level meson target. It
was not run during a normal build. Now it is.
2021-06-18 15:46:41 +02:00

46 lines
933 B
Meson

xmlfilename = 'gimp-tips.xml'
gimp_tips = custom_target(xmlfilename,
input : xmlfilename+'.in',
output: xmlfilename,
command: [
intltool_merge,
potips_dir,
'@INPUT@',
'@OUTPUT@',
'--xml-style',
'--utf8',
'--cache=' + '@OUTDIR@' / 'intltool-merge-cache',
],
install: true,
install_dir: gimpdatadir / 'tips',
)
fortunes_tips = custom_target('fortunes-tips',
input : [ gimp_tips, 'fortunes.xsl', ],
output: 'fortunes-tips',
command: [
xsltproc,
'--stringparam', 'lang', 'en',
'--path', meson.current_source_dir(),
'--output', '@OUTPUT@',
'@INPUT1@',
'@INPUT0@',
],
)
if xmllint.found()
custom_target('validate-tips',
command: [
xmllint,
'--output', '@OUTPUT@',
'--path', meson.current_source_dir(),
'--valid', gimp_tips,
],
output: [ 'validate-tips-output.xml' ],
build_by_default: true,
install: false
)
endif