changed #ifndefs in defs header
[mrf-link.git] / wscript
blobbdaa4919b613529050e60c8d053a451a8f6f4bd6
1 VERSION = '0.1'
2 APPNAME = 'mrf-link'
4 import Options
6 def set_options(opt):
7     opt.add_option('--with-fw', action='store_true', default=False, help='build firmware')
8     opt.sub_options('fw')
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
19 def build(bld):
20     if bld.env.WITH_FW:
21         bld.add_subdirs('fw')