simulator module will be built only if scons command passed with SIMULATOR
argument having one of the case insensitive value from "True", "Yes", "Y" and
"1".
Example: scons SIMULATOR=1
Change-Id: I466cadaa8b815bc9bd269c147324ccbb32c907dc
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2813
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
help_vars.Add(BoolVariable('WITH_RA', 'Build with Remote Access module', False))
+help_vars.Add(BoolVariable('SIMULATOR', 'Build with simulator module', False))
if target_os in targets_disallow_multitransport:
help_vars.Add(ListVariable('TARGET_TRANSPORT', 'Target transport', 'IP', ['BT', 'BLE', 'IP']))
SConscript('resource-encapsulation/SConscript')
# Build simulator module
- if target_os in ['linux']:
+ if target_os in ['linux'] and env.get('SIMULATOR', False):
SConscript('simulator/SConscript')