repo.or.cz
/
mrf-link.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
changed #ifndefs in defs header
[mrf-link.git]
/
wscript
blob
bdaa4919b613529050e60c8d053a451a8f6f4bd6
1
VERSION = '0.1'
2
APPNAME = 'mrf-link'
3
4
import Options
5
6
def set_options(opt):
7
opt.add_option('--with-fw', action='store_true', default=False, help='build firmware')
8
opt.sub_options('fw')
9
10
def configure(conf):
11
# store initial env
12
conf.set_env_name('default', conf.env)
13
if Options.options.with_fw:
14
conf.sub_config('fw')
15
# restore initial env
16
conf.setenv('default')
17
conf.env.WITH_FW = 1
18
19
def build(bld):
20
if bld.env.WITH_FW:
21
bld.add_subdirs('fw')