waf: Create an XML Catalogue.

This commit is contained in:
Chris Johns
2017-01-09 23:13:02 +11:00
parent 5ef17b71eb
commit 1a9b02e20d
2 changed files with 84 additions and 0 deletions

View File

@@ -30,9 +30,15 @@ def configure(conf):
conf.recurse(b)
conf.env['BUILD_FROM_TOP'] = 'yes'
def xml_catalogue(ctx):
docs_waf.xml_catalogue(ctx)
def build(ctx):
ctx.catalogue = {}
ctx.add_post_fun(xml_catalogue)
for b in building:
ctx.recurse(b)
ctx.install_files('${PREFIX}', 'catalogue.xml')
def install(ctx):
for b in building: