From 5f6debd186198887f355966204546ad062cf874b Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Fri, 15 Jan 2016 14:14:00 -0200 Subject: [PATCH] waf: create build shortcuts for the vehicles --- README_waf.txt | 4 ++++ wscript | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README_waf.txt b/README_waf.txt index 7d27055043..038418ae5d 100644 --- a/README_waf.txt +++ b/README_waf.txt @@ -31,6 +31,10 @@ target: # List all the targets available waf list +There are also shortcuts for vehicle builds, for example: + # Shortcut for waf --targets ArduCopter + waf copter + By default all the files produced by the build will be inside the build/ subdirectory. The binaries will also be there, with the name identifying the target board. diff --git a/wscript b/wscript index 5ba1132e48..8ab30d9aeb 100644 --- a/wscript +++ b/wscript @@ -185,3 +185,7 @@ def build(bld): 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')