waf: mavgen: ensure order without bld.add_group()

This is a better approach, because there's no need of calling add_group() for
each time a mavgen task generator is created.
This commit is contained in:
Gustavo Jose de Sousa 2016-01-13 16:50:06 -02:00 committed by Andrew Tridgell
parent c9ca75e2cb
commit e5c66de554
2 changed files with 1 additions and 1 deletions

View File

@ -14,6 +14,7 @@ class mavgen(Task.Task):
"""generate mavlink header files""" """generate mavlink header files"""
color = 'GREEN' color = 'GREEN'
run_str = '${PYTHON} ${MAVGEN} --lang=C --wire-protocol=1.0 --output ${TGT} ${SRC}' run_str = '${PYTHON} ${MAVGEN} --lang=C --wire-protocol=1.0 --output ${TGT} ${SRC}'
before = 'cxx c'
def post_run(self): def post_run(self):
super(mavgen, self).post_run() super(mavgen, self).post_run()

View File

@ -124,7 +124,6 @@ def build(bld):
source=['modules/mavlink/message_definitions/v1.0/ardupilotmega.xml'], source=['modules/mavlink/message_definitions/v1.0/ardupilotmega.xml'],
target=['libraries/GCS_MAVLink/include/mavlink/v1.0/']) target=['libraries/GCS_MAVLink/include/mavlink/v1.0/'])
bld.add_group()
# NOTE: Static library with vehicle set to UNKNOWN, shared by all # NOTE: Static library with vehicle set to UNKNOWN, shared by all
# the tools and examples. This is the first step until the # the tools and examples. This is the first step until the
# dependency on the vehicles is reduced. Later we may consider # dependency on the vehicles is reduced. Later we may consider