Do not build the Plugin Interface for unsupported platforms (ie. !linux).
authorJoseph Morrow <joseph.l.morrow@intel.com>
Sat, 19 Sep 2015 19:40:05 +0000 (12:40 -0700)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Sun, 20 Sep 2015 05:32:43 +0000 (05:32 +0000)
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 <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2785
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
plugins/SConscript

index a4311cf..74b4bb8 100644 (file)
@@ -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')