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: Ie5dcd839d8770d219de1d623d60c23be0133bb1c
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2823
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit
42471c31531a3dc46d3bbf861b767f11b48ac580)
Reviewed-on: https://gerrit.iotivity.org/gerrit/2837
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('notification-manager/SampleApp/arduino/SConscript')
# Build simulator module
- if target_os in ['linux']:
+ if target_os in ['linux'] and env.get('SIMULATOR', False):
SConscript('simulator/SConscript')