2015-10-09 11:03:59 -03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
2016-03-07 18:10:45 -04:00
|
|
|
import boards
|
|
|
|
|
2015-10-09 11:03:59 -03:00
|
|
|
def build(bld):
|
2016-05-20 15:36:15 -03:00
|
|
|
if not isinstance(bld.get_board(), boards.linux):
|
2016-03-07 18:10:45 -04:00
|
|
|
return
|
|
|
|
|
2016-06-30 10:45:23 -03:00
|
|
|
vehicle = bld.path.name
|
|
|
|
|
|
|
|
bld.ap_stlib(
|
|
|
|
name=vehicle + '_libs',
|
2016-07-25 17:31:08 -03:00
|
|
|
ap_vehicle=vehicle,
|
|
|
|
ap_libraries=bld.ap_common_vehicle_libraries() + [
|
2016-11-23 03:35:07 -04:00
|
|
|
'AP_Beacon',
|
2019-05-08 07:10:14 -03:00
|
|
|
'AP_Arming',
|
2019-11-16 18:47:16 -04:00
|
|
|
'AP_RCMapper',
|
2016-06-30 10:45:23 -03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2016-01-21 18:34:14 -04:00
|
|
|
bld.ap_program(
|
2016-03-24 16:58:15 -03:00
|
|
|
program_groups='tools',
|
2016-06-30 10:45:23 -03:00
|
|
|
use=vehicle + '_libs',
|
2015-10-09 11:03:59 -03:00
|
|
|
)
|