waf: allow AP_SCRIPTING_ENABLED to come from hwdef files

This commit is contained in:
Peter Barker 2023-06-07 15:57:54 +10:00 committed by Peter Barker
parent 6c9ea896c7
commit 35d7561c50
1 changed files with 4 additions and 2 deletions

View File

@ -533,9 +533,11 @@ def configure(cfg):
cfg.start_msg('Scripting')
if cfg.options.disable_scripting:
cfg.end_msg('disabled', color='YELLOW')
else:
elif cfg.options.enable_scripting:
cfg.end_msg('enabled')
cfg.recurse('libraries/AP_Scripting')
else:
cfg.end_msg('maybe')
cfg.recurse('libraries/AP_Scripting')
cfg.recurse('libraries/AP_GPS')