Sub: Update build script and added to build_ci.sh

This commit is contained in:
Rustom Jehangir 2016-02-15 14:48:31 -08:00 committed by Andrew Tridgell
parent 0e2f0321f9
commit 65a1d4fca1
2 changed files with 4 additions and 8 deletions

View File

@ -1,2 +1,2 @@
all:
@$(MAKE) -C ../ -f Makefile.waf copter
@$(MAKE) -C ../ -f Makefile.waf sub

View File

@ -1,15 +1,12 @@
#!/usr/bin/env python
# encoding: utf-8
import ardupilotwaf
def build(bld):
vehicle = bld.path.name
ardupilotwaf.vehicle_stlib(
bld,
bld.ap_stlib(
name=vehicle + '_libs',
vehicle=vehicle,
libraries=ardupilotwaf.COMMON_VEHICLE_DEPENDENT_LIBRARIES + [
libraries=bld.ap_common_vehicle_libraries() + [
'AP_ADSB',
'AC_AttitudeControl',
'AC_Fence',
@ -36,8 +33,7 @@ def build(bld):
use='mavlink',
)
ardupilotwaf.program(
bld,
bld.ap_program(
program_name='ardusub',
use=vehicle + '_libs',
)