waf: ardupilotwaf: add parameter program_group_list to build_shortcut()

This commit is contained in:
Gustavo Jose de Sousa 2016-01-27 12:56:30 +00:00 committed by Lucas De Marchi
parent a867dcdd07
commit c5c129d15f
1 changed files with 5 additions and 1 deletions

View File

@ -266,9 +266,13 @@ def _process_build_shortcut(bld):
else:
bld.targets = targets
def build_shortcut(name, targets=None):
program_group_list = Utils.to_list(params['program_group_list'])
bld.options.program_group.extend(program_group_list)
def build_shortcut(name, targets=None, program_group_list=[]):
_build_shortcuts[name] = dict(
targets=targets,
program_group_list=program_group_list,
)
class context_class(BuildContext):