From 42471c31531a3dc46d3bbf861b767f11b48ac580 Mon Sep 17 00:00:00 2001 From: Harish Kumara Marappa Date: Mon, 21 Sep 2015 12:39:11 +0530 Subject: [PATCH] Making simulator build optional through scons command line argument "SIMULATOR". 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/2823 Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- build_common/SConscript | 1 + service/SConscript | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build_common/SConscript b/build_common/SConscript index c8a66d7..5d71984 100644 --- a/build_common/SConscript +++ b/build_common/SConscript @@ -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'])) diff --git a/service/SConscript b/service/SConscript index 7f372b8..d657152 100644 --- a/service/SConscript +++ b/service/SConscript @@ -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') -- 2.7.4