From 960437d4467ff75baba983a031e503afb1740e3f Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Thu, 12 Nov 2020 14:13:31 -0700 Subject: [PATCH] Tools: Add the SFML configuration flags as needed for joysticks --- Tools/ardupilotwaf/boards.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 5218124926..d18ffab3f0 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -456,6 +456,11 @@ class sitl(Board): if not cfg.check_SFML(env): 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: env.CXXFLAGS += ['-DWITH_SITL_OSD','-DOSD_ENABLED=1'] for f in os.listdir('libraries/AP_OSD/fonts'):