source: rtems-docs/wscript @ 1a9b02e

Last change on this file since 1a9b02e was 1a9b02e, checked in by Chris Johns <chrisj@…>, on Jan 9, 2017 at 12:13:02 PM

waf: Create an XML Catalogue.

  • Property mode set to 100644
File size: 889 bytes
Line 
1#
2# RTEMS Project Documentation
3#
4
5from sys import path
6from os.path import abspath
7path.append(abspath('common'))
8
9import waf as docs_waf
10
11build_all = ['bsp-howto',
12             'c-user',
13             'cpu-supplement',
14             'develenv',
15             'eclipse',
16             'filesystem',
17             'networking',
18             'posix-users',
19             'rsb',
20             'shell',
21             'user']
22
23building = build_all
24
25def options(opt):
26    docs_waf.cmd_options(opt)
27
28def configure(conf):
29    for b in building:
30        conf.recurse(b)
31    conf.env['BUILD_FROM_TOP'] = 'yes'
32
33def xml_catalogue(ctx):
34    docs_waf.xml_catalogue(ctx)
35
36def build(ctx):
37    ctx.catalogue = {}
38    ctx.add_post_fun(xml_catalogue)
39    for b in building:
40        ctx.recurse(b)
41    ctx.install_files('${PREFIX}', 'catalogue.xml')
42
43def install(ctx):
44    for b in building:
45        ctx.recurse(b)
Note: See TracBrowser for help on using the repository browser.