-
Notifications
You must be signed in to change notification settings - Fork 0
/
hwaf.py
56 lines (44 loc) · 1.2 KB
/
hwaf.py
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
50
51
52
53
54
55
56
# -*- python -*-
# stdlib imports
import os
import os.path as osp
import sys
# waf imports ---
import waflib.Configure
import waflib.ConfigSet
import waflib.Utils
import waflib.Logs as msg
import waflib.Options
_heptooldir = osp.dirname(osp.abspath(__file__))
def options(ctx):
ctx.load('hwaf-base', tooldir=_heptooldir)
return
def configure(ctx):
ctx.load('hwaf-base', tooldir=_heptooldir)
return
def build(ctx):
ctx.load('hwaf-base', tooldir=_heptooldir)
return
### ---------------------------------------------------------------------------
@waflib.Configure.conf
def hwaf_configure(ctx):
dirs = ctx.hwaf_pkg_dirs()
for d in dirs:
ctx.start_msg("configuring")
ctx.end_msg(d)
ctx.recurse(d)
return
### ---------------------------------------------------------------------------
@waflib.Configure.conf
def hwaf_build(ctx):
ctx.add_group('test')
if ctx.cmd in ('build','check'):
# schedule unit tests
ctx.add_post_fun(ctx.hwaf_utest_summary)
ctx.add_post_fun(ctx.hwaf_utest_set_exit_code)
pass
dirs = ctx.hwaf_pkg_dirs()
ctx.recurse(dirs)
ctx._hwaf_install_project_infos()
return
## EOF ##