Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pellegrino Prevete
libhandy
Commits
71bf8928
Commit
71bf8928
authored
Sep 27, 2018
by
Guido Gunther
Committed by
Guido Gunther
Oct 05, 2018
Browse files
glade: Verify catalog data via xmllint
parent
3de2cb26
Changes
1
Hide whitespace changes
Inline
Side-by-side
data/meson.build
View file @
71bf8928
glade_xml = 'glade/libhandy.xml'
if get_option('glade_catalog')
gladeui = dependency('gladeui-2.0')
dtd = join_paths(gladeui.get_pkgconfig_variable('catalogdir'), 'glade-catalog.dtd')
glade_catalogdir = join_paths(get_option('prefix'), get_option('datadir'), 'glade', 'catalogs')
install_data('glade/libhandy.xml', install_dir: glade_catalogdir)
install_data(glade_xml, install_dir: glade_catalogdir)
xmllint = find_program('xmllint', required: true)
if xmllint.found()
custom_target(
'xmllint',
build_by_default: true,
input: glade_xml,
output: 'doesnotexist',
command: [xmllint, '--dtdvalid', dtd, '--noout', '@INPUT@'],
)
endif
endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment