2022-04-22 13:27:22 -03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
|
|
|
|
if bld.env.BOARD != 'linux':
|
|
|
|
return
|
|
|
|
|
|
|
|
source = bld.path.ant_glob('*.cpp')
|
|
|
|
source.append('../../../../libraries/SITL/SIM_Battery.cpp')
|
|
|
|
source.append('../../../../libraries/SITL/SIM_Frame.cpp')
|
2023-01-28 01:47:25 -04:00
|
|
|
source.append('../../../../libraries/SITL/picojson.cpp')
|
2022-04-22 13:27:22 -03:00
|
|
|
|
|
|
|
bld.env.DEFINES.append("USE_PICOJSON=1")
|
|
|
|
|
|
|
|
bld.ap_program(
|
|
|
|
use='ap',
|
|
|
|
program_groups=['examples'],
|
|
|
|
source=source,
|
|
|
|
)
|
|
|
|
|