diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index fd78ef12a7..2d729b0f19 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -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") diff --git a/wscript b/wscript index 99a55a1c6d..883da81d5b 100644 --- a/wscript +++ b/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,