gimp/data/tips/meson.build

44 lines
826 B
Meson
Raw Normal View History

2017-11-01 21:27:13 +08:00
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()
run_target('validate-tips',
command: [
xmllint,
'--noout',
'--path', meson.current_source_dir(),
'--valid', gimp_tips,
],
)
endif