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().
19 lines
408 B
Python
19 lines
408 B
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() + [
|
|
'AC_PID',
|
|
],
|
|
)
|
|
|
|
bld.ap_program(
|
|
program_name='antennatracker',
|
|
program_groups=['bin', 'antennatracker'],
|
|
use=vehicle + '_libs',
|
|
)
|