Tools: Add waf scripting configure option

This commit is contained in:
Michael du Breuil 2018-09-27 15:30:39 -07:00 committed by Andrew Tridgell
parent 17103623eb
commit 580c9d6ad9
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ COMMON_VEHICLE_DEPENDENT_LIBRARIES = [
'AP_Gripper', 'AP_Gripper',
'AP_RTC', 'AP_RTC',
'AC_Sprayer', 'AC_Sprayer',
'AP_Scripting',
] ]
def get_legacy_defines(sketch_name): def get_legacy_defines(sketch_name):

View File

@ -93,7 +93,7 @@ class Board:
if cfg.options.enable_scripting: if cfg.options.enable_scripting:
env.DEFINES.update( env.DEFINES.update(
ENABLE_SCRIPTING = 'TRUE', ENABLE_SCRIPTING = 1,
) )
if 'clang' in cfg.env.COMPILER_CC: if 'clang' in cfg.env.COMPILER_CC: