mirror of https://github.com/ArduPilot/ardupilot
waf: don't differentiate taskgen names from targets for programs
waf's terminology might be a bit confusing regarding the word 'target'. As an attribute for a task generator, it means the paths of the files supposed to be built. As a command line option (--target), it means the list of names of the task generators to be used in the build. Before this commit, only vehicles programs had their task generators' target parameter value different from the name parameter. Now, there's no distinction between those two parameters for the case of programs.
This commit is contained in:
parent
386c12f8ff
commit
60abd4ff2f
|
@ -26,13 +26,13 @@ It's possible to build for just a vehicle or an example by specifying it as the
|
|||
target:
|
||||
|
||||
# From the top directory
|
||||
waf --target ArduCopter
|
||||
waf --targets bin/ArduCopter
|
||||
|
||||
# List all the targets available
|
||||
waf list
|
||||
|
||||
There are also shortcuts for vehicle builds, for example:
|
||||
# Shortcut for waf --targets ArduCopter
|
||||
# Shortcut for waf --targets bin/ArduCopter
|
||||
waf copter
|
||||
|
||||
By default all the files produced by the build will be inside the build/
|
||||
|
|
|
@ -93,16 +93,11 @@ def program(bld, blddestdir='bin',
|
|||
|
||||
kw['features'] = common_features(bld) + kw.get('features', [])
|
||||
|
||||
if blddestdir == 'bin':
|
||||
name = program_name
|
||||
else:
|
||||
name = blddestdir + '/' + program_name
|
||||
|
||||
target = bld.bldnode.find_or_declare(blddestdir + '/' + program_name)
|
||||
target = blddestdir + '/' + program_name
|
||||
|
||||
bld.program(
|
||||
target=target,
|
||||
name=name,
|
||||
name=target,
|
||||
**kw
|
||||
)
|
||||
|
||||
|
|
6
wscript
6
wscript
|
@ -186,6 +186,6 @@ class CheckContext(BuildContext):
|
|||
'''executes tests after build'''
|
||||
cmd = 'check'
|
||||
|
||||
copter = ardupilotwaf.build_shortcut(targets='ArduCopter')
|
||||
plane = ardupilotwaf.build_shortcut(targets='ArduPlane')
|
||||
rover = ardupilotwaf.build_shortcut(targets='APMrover2')
|
||||
copter = ardupilotwaf.build_shortcut(targets='bin/ArduCopter')
|
||||
plane = ardupilotwaf.build_shortcut(targets='bin/ArduPlane')
|
||||
rover = ardupilotwaf.build_shortcut(targets='bin/APMrover2')
|
||||
|
|
Loading…
Reference in New Issue