source: rtems-docs/wscript @ 1e9f28c

4.11
Last change on this file since 1e9f28c was 1e9f28c, checked in by Chris Johns <chrisj@…>, on 01/10/17 at 11:34:47

waf: Add a title to the XML Catalogue.

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