gimp/data/tips/meson.build

43 lines
912 B
Meson
Raw Normal View History

install_data([
'its/gimp-tips.its',
'its/gimp-tips.loc',
2017-11-01 14:27:13 +01:00
],
install_dir: get_option('datadir') / 'gettext' / 'its',
)
gimp_tips = i18n.merge_file(
input : 'gimp-tips.xml.in',
output: '@BASENAME@',
data_dirs: meson.current_source_dir(),
po_dir: potips_dir,
2017-11-01 14:27:13 +01:00
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',
2017-11-01 14:27:13 +01:00
command: [
xmllint,
'--output', '@OUTPUT@',
2017-11-01 14:27:13 +01:00
'--path', meson.current_source_dir(),
'--valid', gimp_tips,
],
output: [ 'validate-tips-output.xml' ],
build_by_default: true,
install: false
2017-11-01 14:27:13 +01:00
)
endif