mirror of https://github.com/ArduPilot/ardupilot
waf: define ap_groups in ardupilotwaf tool
That makes more sense, since that module is supposed to have basic Ardupilot specific features. The root wscript should be a mere user of those features.
This commit is contained in:
parent
a6ec802d28
commit
a98c42fef9
|
@ -346,6 +346,12 @@ def _select_programs_from_group(bld):
|
|||
bld.targets += ',' + tg.name
|
||||
|
||||
def options(opt):
|
||||
opt.ap_groups = {
|
||||
'configure': opt.add_option_group('Ardupilot configure options'),
|
||||
'build': opt.add_option_group('Ardupilot build options'),
|
||||
'check': opt.add_option_group('Ardupilot check options'),
|
||||
}
|
||||
|
||||
g = opt.ap_groups['build']
|
||||
|
||||
g.add_option('--program-group',
|
||||
|
|
7
wscript
7
wscript
|
@ -47,13 +47,6 @@ def init(ctx):
|
|||
|
||||
def options(opt):
|
||||
opt.load('compiler_cxx compiler_c waf_unit_test python')
|
||||
|
||||
opt.ap_groups = {
|
||||
'configure': opt.add_option_group('Ardupilot configure options'),
|
||||
'build': opt.add_option_group('Ardupilot build options'),
|
||||
'check': opt.add_option_group('Ardupilot check options'),
|
||||
}
|
||||
|
||||
opt.load('ardupilotwaf')
|
||||
opt.load('build_summary')
|
||||
|
||||
|
|
Loading…
Reference in New Issue