waf: Improved XML Catalogue generator.

This commit is contained in:
Chris Johns
2017-01-10 10:11:05 +11:00
parent 1a9b02e20d
commit 782b4fec71
2 changed files with 47 additions and 49 deletions

11
wscript
View File

@@ -6,6 +6,7 @@ from sys import path
from os.path import abspath
path.append(abspath('common'))
import waflib
import waf as docs_waf
build_all = ['bsp-howto',
@@ -30,15 +31,15 @@ def configure(conf):
conf.recurse(b)
conf.env['BUILD_FROM_TOP'] = 'yes'
def xml_catalogue(ctx):
docs_waf.xml_catalogue(ctx)
def catalogue(ctx):
docs_waf.xml_catalogue(ctx, building)
def build(ctx):
ctx.catalogue = {}
ctx.add_post_fun(xml_catalogue)
for b in building:
ctx.recurse(b)
ctx.install_files('${PREFIX}', 'catalogue.xml')
ctx(rule = catalogue,
target = 'catalogue.xml',
source = ['wscript', 'common/waf.py'])
def install(ctx):
for b in building: