From: Joseph Morrow Date: Sat, 19 Sep 2015 19:40:05 +0000 (-0700) Subject: Do not build the Plugin Interface for unsupported platforms (ie. !linux). X-Git-Tag: 1.2.0+RC1~1086^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a739a6ac295294f8010dd185a86aea76ddf038b0;p=platform%2Fupstream%2Fiotivity.git Do not build the Plugin Interface for unsupported platforms (ie. !linux). This will ensure the Plugin Interface is only run on the Linux platform as this is the only validated platform for the Plugin Interface thus far. Change-Id: I14507336d54a47cc32102c76cd1d4f1891cb3687 Signed-off-by: Joseph Morrow Reviewed-on: https://gerrit.iotivity.org/gerrit/2785 Tested-by: jenkins-iotivity Reviewed-by: Sachin Agrawal Reviewed-by: Patrick Lankswert --- diff --git a/plugins/SConscript b/plugins/SConscript index a4311cf..74b4bb8 100644 --- a/plugins/SConscript +++ b/plugins/SConscript @@ -5,17 +5,17 @@ Import('env') target_os = env.get('TARGET_OS') -transport = env.get('TARGET_TRANSPORT') -build_sample = env.get('BUILD_SAMPLE') -env.SConscript('./src/SConscript') +if target_os not in ['android', 'arduino', 'darwin', 'ios']: + transport = env.get('TARGET_TRANSPORT') + build_sample = env.get('BUILD_SAMPLE') -env.SConscript('./unittests/SConscript') + env.SConscript('./src/SConscript') -if build_sample == 'ON': - if target_os in ['linux', 'darwin']: - target_path = target_os - if target_os == 'darwin': - target_path = 'linux' - env.SConscript('./samples/' + target_path + '/SConscript') + env.SConscript('./unittests/SConscript') + + if build_sample == 'ON': + if target_os in ['linux']: + target_path = target_os + env.SConscript('./samples/' + target_path + '/SConscript')