PIKApp/data/tips/meson.build

36 lines
781 B
Meson

pika_tips = i18n.merge_file(
input : 'pika-tips.xml.in',
output: '@BASENAME@',
data_dirs: meson.current_source_dir(),
po_dir: potips_dir,
install: true,
install_dir: pikadatadir / 'tips',
)
fortunes_tips = custom_target('fortunes-tips',
input : [ pika_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', pika_tips,
],
output: [ 'validate-tips-output.xml' ],
build_by_default: true,
install: false
)
endif