Making simulator build optional through scons command line argument "SIMULATOR".
authorHarish Kumara Marappa <h.marappa@samsung.com>
Mon, 21 Sep 2015 07:09:11 +0000 (12:39 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Mon, 21 Sep 2015 09:47:53 +0000 (09:47 +0000)
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>
build_common/SConscript
service/SConscript

index c8a66d7..5d71984 100644 (file)
@@ -79,6 +79,7 @@ help_vars.Add(EnumVariable('TARGET_OS', 'Target platform', host, host_target_map
 
 
 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']))
index 7f372b8..d657152 100644 (file)
@@ -47,7 +47,7 @@ if target_os not in ['arduino','darwin']:
 #      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')