source: rtems-docs/wscript @ 782b4fe

Last change on this file since 782b4fe was 782b4fe, checked in by Chris Johns <chrisj@…>, on Jan 9, 2017 at 11:11:05 PM

waf: Improved XML Catalogue generator.

  • Property mode set to 100644
File size: 905 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
12build_all = ['bsp-howto',
13             'c-user',
14             'cpu-supplement',
15             'develenv',
16             'eclipse',
17             'filesystem',
18             'networking',
19             'posix-users',
20             'rsb',
21             'shell',
22             'user']
23
24building = build_all
25
26def options(opt):
27    docs_waf.cmd_options(opt)
28
29def configure(conf):
30    for b in building:
31        conf.recurse(b)
32    conf.env['BUILD_FROM_TOP'] = 'yes'
33
34def catalogue(ctx):
35    docs_waf.xml_catalogue(ctx, building)
36
37def build(ctx):
38    for b in building:
39        ctx.recurse(b)
40    ctx(rule = catalogue,
41        target = 'catalogue.xml',
42        source = ['wscript', 'common/waf.py'])
43
44def install(ctx):
45    for b in building:
46        ctx.recurse(b)
Note: See TracBrowser for help on using the repository browser.