mirror of https://github.com/ArduPilot/ardupilot
waf: add sitl rgbled option
This commit is contained in:
parent
2fa1f041e3
commit
85fe4ae6dd
|
@ -357,12 +357,17 @@ class sitl(Board):
|
|||
if cfg.options.enable_sfml:
|
||||
if not cfg.check_SFML(env):
|
||||
cfg.fatal("Failed to find SFML libraries")
|
||||
|
||||
if cfg.options.sitl_osd:
|
||||
env.CXXFLAGS += ['-DWITH_SITL_OSD','-DOSD_ENABLED=ENABLED','-DHAL_HAVE_AP_ROMFS_EMBEDDED_H']
|
||||
import fnmatch
|
||||
for f in os.listdir('libraries/AP_OSD/fonts'):
|
||||
if fnmatch.fnmatch(f, "font*bin"):
|
||||
env.ROMFS_FILES += [(f,'libraries/AP_OSD/fonts/'+f)]
|
||||
|
||||
if cfg.options.sitl_rgbled:
|
||||
env.CXXFLAGS += ['-DWITH_SITL_RGBLED']
|
||||
|
||||
if cfg.options.enable_sfml_audio:
|
||||
if not cfg.check_SFML_Audio(env):
|
||||
cfg.fatal("Failed to find SFML Audio libraries")
|
||||
|
|
8
wscript
8
wscript
|
@ -188,6 +188,14 @@ configuration in order to save typing.
|
|||
default=False,
|
||||
help="Enable SFML audio library")
|
||||
|
||||
g.add_option('--sitl-osd', action='store_true',
|
||||
default=False,
|
||||
help="Enable SITL OSD")
|
||||
|
||||
g.add_option('--sitl-rgbled', action='store_true',
|
||||
default=False,
|
||||
help="Enable SITL RGBLed")
|
||||
|
||||
g.add_option('--sitl-flash-storage',
|
||||
action='store_true',
|
||||
default=False,
|
||||
|
|
Loading…
Reference in New Issue