summaryrefslogtreecommitdiffstats
path: root/wscript
blob: 8cc4ee719b9e9477e218367c5a27146889a5a635 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# RTEMS Project Documentation
#

from sys import path
from os.path import abspath
path.append(abspath('common'))

import waflib
import waf as docs_waf

version = 'Master (4.11.99)'

build_all = ['user',
             'rsb',
             'c-user',
             'bsp-howto',
             'posix-users',
             'filesystem',
             'networking',
             'shell',
             'cpu-supplement',
             'develenv',
             'eclipse']

building = build_all

def options(opt):
    docs_waf.cmd_options(opt)

def configure(conf):
    for b in building:
        conf.recurse(b)
    conf.env['BUILD_FROM_TOP'] = 'yes'

def catalogue(ctx):
    docs_waf.xml_catalogue(ctx, building, version)

def build(ctx):
    for b in building:
        ctx.recurse(b)
    ctx(rule = catalogue,
        target = 'catalogue.xml',
        source = ['wscript', 'common/waf.py'])
    ctx.install_files('${PREFIX}', 'catalogue.xml')

def install(ctx):
    for b in building:
        ctx.recurse(b)