-
Notifications
You must be signed in to change notification settings - Fork 0
/
hwaf-wscript
67 lines (51 loc) · 1.51 KB
/
hwaf-wscript
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
57
58
59
60
61
62
63
64
65
66
67
# -*- python -*-
# @purpose the main entry point for driving the build and installation steps
# @author Sebastien Binet <[email protected]>
# imports ---------------------------------------------------------------------
import os
import os.path as osp
# globals ---------------------------------------------------------------------
top = '.'
out = '__build__'
PREFIX = 'install-area'
VERSION = '0.0.1' # FIXME: should take it from somewhere else
APPNAME = 'hwaf-workarea'
# imports ---------------------------------------------------------------------
# waf imports --
import waflib.Logs
import waflib.Utils
import waflib.Options
import waflib.Context
import waflib.Logs as msg
# functions -------------------------------------------------------------------
def go(ctx):
from waflib.Options import commands, options
options.prefix = osp.join(os.getcwd(), "install-area")
commands += ["configure", "clean", "build", "install"]
def options(ctx):
ctx.load('hwaf')
ctx.add_option(
'--prefix',
default=PREFIX,
help="installation prefix [default: %r]"%PREFIX)
ctx.add_option(
'--local-cfg',
default="local.conf",
help="Path to the local config file listing all type of configuration infos")
return
def configure(ctx):
ctx.load('hwaf')
ctx.hwaf_configure()
return
def build(ctx):
ctx.load('hwaf')
ctx.hwaf_build()
return
def check(ctx):
return
def shell(ctx):
ctx.load('hwaf')
hwaf_ishell(ctx)
return
def run(ctx):
return