mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
caa089c869
The task generator for the mavlink headers is given a name 'mavlink' and is added as a dependency to all local static libraries, because all of them use sources that include mavlink headers. It would be nice to have a good way to detect sources that use mavlink headers or to declare list of libraries that use the headers, so that the dependency could be added automatically. Additionally, there's a minor change in syntax for the task generator: using strings directly instead of lists.
43 lines
968 B
Python
43 lines
968 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
|
|
import ardupilotwaf
|
|
|
|
def build(bld):
|
|
vehicle = bld.path.name
|
|
ardupilotwaf.vehicle_stlib(
|
|
bld,
|
|
name=vehicle + '_libs',
|
|
vehicle=vehicle,
|
|
libraries=ardupilotwaf.COMMON_VEHICLE_DEPENDENT_LIBRARIES + [
|
|
'AP_ADSB',
|
|
'AC_AttitudeControl',
|
|
'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_Mount',
|
|
'AP_Parachute',
|
|
'AP_RCMapper',
|
|
'AP_RPM',
|
|
'AP_RSSI',
|
|
'AP_Relay',
|
|
'AP_ServoRelayEvents',
|
|
],
|
|
use='mavlink',
|
|
)
|
|
|
|
ardupilotwaf.program(
|
|
bld,
|
|
use=vehicle + '_libs',
|
|
)
|