mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
b8e518a533
That way we avoid recompiling source files that don't depend on vehicles. Change notes: - UTILITY_SOURCE_EXTS: moved to ap_library - Task generators indexes: ap_library handles that now and in a better way - Use of AP_STLIB_FEATURES: it doesn't make sense anymore, since the stlib taskgen has empty source list - Flags and defines: passed down to ap_library through AP_LIBRARIES_OBJECTS_KW - Set use='mavlink' in AP_LIBRARIES_OBJECTS_KW instead of calls to bld.ap_stlib().
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
|
|
def build(bld):
|
|
vehicle = bld.path.name
|
|
bld.ap_stlib(
|
|
name=vehicle + '_libs',
|
|
ap_vehicle=vehicle,
|
|
ap_libraries=bld.ap_common_vehicle_libraries() + [
|
|
'AP_ADSB',
|
|
'AC_AttitudeControl',
|
|
'AC_InputManager',
|
|
'AC_Fence',
|
|
'AC_Avoidance',
|
|
'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',
|
|
'AP_Avoidance',
|
|
],
|
|
)
|
|
|
|
frames = (
|
|
'quad', 'tri', 'hexa', 'y6', 'octa', 'octa-quad', 'heli', 'single',
|
|
'coax',
|
|
)
|
|
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],
|
|
)
|