Tools: Add lua source to waf

This commit is contained in:
Michael du Breuil 2018-09-27 19:09:58 -07:00 committed by Andrew Tridgell
parent 513e5946bb
commit 33d4e09d60
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -94,8 +94,14 @@ class Board:
if cfg.options.enable_scripting:
env.DEFINES.update(
ENABLE_SCRIPTING = 1,
LUA_32BITS = 1,
)
env.AP_LIBRARIES += [
'AP_Scripting',
'AP_Scripting/lua/src',
]
if 'clang' in cfg.env.COMPILER_CC:
env.CFLAGS += [
'-fcolor-diagnostics',
@ -327,6 +333,9 @@ class chibios(Board):
# make board name available for USB IDs
env.CHIBIOS_BOARD_NAME = 'HAL_BOARD_NAME="%s"' % self.name
env.CFLAGS += [
'-Wno-cast-align',
]
env.CXXFLAGS += cfg.env.CPU_FLAGS + [
'-Wlogical-op',
'-Wframe-larger-than=1300',