wscript: Add enable-scripting option

This commit is contained in:
Michael du Breuil 2018-09-27 14:59:57 -07:00 committed by Andrew Tridgell
parent 580c9d6ad9
commit 82dad7b732
1 changed files with 10 additions and 0 deletions

10
wscript
View File

@ -147,6 +147,10 @@ configuration in order to save typing.
default=False,
help="Enable SFML graphics library")
g.add_option('--enable-scripting', action='store_true',
default=False,
help="Enable onboard scripting engine")
g.add_option('--static',
action='store_true',
default=False,
@ -234,6 +238,12 @@ def configure(cfg):
else:
cfg.end_msg('disabled', color='YELLOW')
cfg.start_msg('Scripting')
if cfg.options.enable_scripting:
cfg.end_msg('enabled')
else:
cfg.end_msg('disabled', color='YELLOW')
cfg.env.append_value('GIT_SUBMODULES', 'mavlink')
cfg.env.prepend_value('INCLUDES', [