mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: Add the SFML configuration flags as needed for joysticks
This commit is contained in:
parent
350fe3ed8d
commit
960437d446
@ -456,6 +456,11 @@ class sitl(Board):
|
|||||||
if not cfg.check_SFML(env):
|
if not cfg.check_SFML(env):
|
||||||
cfg.fatal("Failed to find SFML libraries")
|
cfg.fatal("Failed to find SFML libraries")
|
||||||
|
|
||||||
|
if cfg.options.enable_sfml_joystick:
|
||||||
|
if not cfg.check_SFML(env):
|
||||||
|
cfg.fatal("Failed to find SFML libraries")
|
||||||
|
env.CXXFLAGS += ['-DSFML_JOYSTICK']
|
||||||
|
|
||||||
if cfg.options.sitl_osd:
|
if cfg.options.sitl_osd:
|
||||||
env.CXXFLAGS += ['-DWITH_SITL_OSD','-DOSD_ENABLED=1']
|
env.CXXFLAGS += ['-DWITH_SITL_OSD','-DOSD_ENABLED=1']
|
||||||
for f in os.listdir('libraries/AP_OSD/fonts'):
|
for f in os.listdir('libraries/AP_OSD/fonts'):
|
||||||
|
Loading…
Reference in New Issue
Block a user