ardupilot/ArduCopter/wscript

46 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-10-09 11:03:59 -03:00
#!/usr/bin/env python
# encoding: utf-8
def build(bld):
vehicle = bld.path.name
bld.ap_stlib(
2015-10-09 11:03:59 -03:00
name=vehicle + '_libs',
vehicle=vehicle,
libraries=bld.ap_common_vehicle_libraries() + [
'AP_ADSB',
2015-10-09 11:03:59 -03:00
'AC_AttitudeControl',
'AC_InputManager',
2015-10-09 11:03:59 -03:00
'AC_Fence',
'AC_PID',
'AC_PrecLand',
'AC_Sprayer',
'AC_WPNav',
'AP_Camera',
'AP_EPM',
'AP_Frsky_Telem',
'AP_IRLock',
'AP_InertialNav',
'AP_LandingGear',
'AP_Menu',
'AP_Motors',
'AP_Parachute',
'AP_RCMapper',
'AP_Relay',
'AP_ServoRelayEvents',
],
use='mavlink',
2015-10-09 11:03:59 -03:00
)
2016-03-24 18:05:21 -03:00
frames = (
'quad', 'tri', 'hexa', 'y6', 'octa', 'octa-quad', 'heli', 'single',
'coax',
2015-10-09 11:03:59 -03:00
)
2016-03-24 18:05:21 -03:00
for frame in frames:
frame_config = frame.upper().replace('-', '_') + '_FRAME'
bld.ap_program(
program_name='arducopter-%s' % frame,
program_groups=['bin', 'copter'],
use=vehicle + '_libs',
defines=['FRAME_CONFIG=%s' % frame_config],
)