source: rtems-docs/wscript @ ecf82d1

5
Last change on this file since ecf82d1 was ecf82d1, checked in by Chris Johns <chrisj@…>, on 01/11/17 at 04:50:59

html: Add support for an HTML cover page for releases.

  • Property mode set to 100644
File size: 1.4 KB
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 = '4.11 (4.11.2)'
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
43    #
44    # Build the catalogue and install with the coverpage and static content.
45    #
46    ctx(rule = catalogue,
47        target = 'catalogue.xml',
48        source = ['wscript', 'common/waf.py'])
49    ctx.install_files('${PREFIX}', 'catalogue.xml')
50    ctx.install_files('${PREFIX}', 'common/html-coverpage/index.html')
51    static_dir = ctx.path.find_dir('common/html-coverpage/static')
52    ctx.install_files('${PREFIX}/static',
53                      static_dir.ant_glob('**'),
54                      cwd = static_dir,
55                      relative_trick = True)
56
57def install(ctx):
58    for b in building:
59        ctx.recurse(b)
Note: See TracBrowser for help on using the repository browser.