mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
This is never called as the main `wscript` does not recurse into this directory until build time. Even if it were called, it would update the environment for all builds instead of just replay. Even if it did update the environment, nobody reads that variable so there's no effect.
27 lines
576 B
Python
27 lines
576 B
Python
# encoding: utf-8
|
|
|
|
# flake8: noqa
|
|
|
|
import boards
|
|
|
|
def build(bld):
|
|
if isinstance(bld.get_board(), boards.chibios) and bld.env['WITH_FATFS'] != '1' and bld.env['WITH_LITTLEFS'] != 1:
|
|
# we need a filesystem for replay
|
|
return
|
|
|
|
vehicle = bld.path.name
|
|
|
|
bld.ap_stlib(
|
|
name=vehicle + '_libs',
|
|
ap_vehicle=vehicle,
|
|
ap_libraries=bld.ap_common_vehicle_libraries() + [
|
|
'AP_OSD',
|
|
'AP_Avoidance',
|
|
],
|
|
)
|
|
|
|
bld.ap_program(
|
|
program_groups=['tool','replay'],
|
|
use=vehicle + '_libs',
|
|
)
|