From 47d531fb41f0c033743ba3e573df82eb7e606054 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 5 Sep 2014 15:25:10 -0700 Subject: [PATCH] support disabling of NSC by command-line argument --- src/internet/wscript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/internet/wscript b/src/internet/wscript index da99ff1e3..0da6ce1aa 100644 --- a/src/internet/wscript +++ b/src/internet/wscript @@ -14,11 +14,18 @@ def options(opt): help=('Use Network Simulation Cradle, given by the indicated path,' ' to allow the use of real-world network stacks'), default='', dest='with_nsc') - + opt.add_option('--disable-nsc', + help=('Disable Network Simulation Cradle support'), + dest='disable_nsc', default=False, action="store_true") def configure(conf): conf.env['ENABLE_NSC'] = False + if Options.options.disable_nsc: + conf.report_optional_feature("nsc", "Network Simulation Cradle", False, + "disabled by user request") + return + # checks for flex and bison, which is needed to build NSCs globaliser # TODO: how to move these checks into the allinone scripts? #def check_nsc_buildutils():