[Jira-IOT398] Fix for linux Scons build to not support BT/BLE build
authorjnashok <jn.ashok@samsung.com>
Mon, 6 Apr 2015 13:04:33 +0000 (22:04 +0900)
committerErich Keane <erich.keane@intel.com>
Wed, 8 Apr 2015 17:46:28 +0000 (17:46 +0000)
Signed-off-by: jnashok <jn.ashok@samsung.com>
Change-Id: I754bce8832fd360983a0f732cde41240ea6ab4ad
Reviewed-on: https://gerrit.iotivity.org/gerrit/656
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/SConscript

index 4668011..5123612 100644 (file)
@@ -28,14 +28,22 @@ if 'ALL' in transport:
        print "CA Transport is ALL"
 else:
        if 'BT' in transport:
-               env.AppendUnique(CPPDEFINES = ['EDR_ADAPTER'])
-               print "CA Transport is BT"
+               if target_os == 'linux':
+                       print "CA Transport BT is not supported in Linux"
+                       Exit(1)
+               else:
+                       env.AppendUnique(CPPDEFINES = ['EDR_ADAPTER'])
+                       print "CA Transport is BT"
        else:
                env.AppendUnique(CPPDEFINES = ['NO_EDR_ADAPTER'])
 
        if 'BLE' in transport:
-               env.AppendUnique(CPPDEFINES = ['LE_ADAPTER'])
-               print "CA Transport is BLE"
+               if target_os == 'linux':
+                       print "CA Transport BLE is not supported in Linux"
+                       Exit(1)
+               else:
+                       env.AppendUnique(CPPDEFINES = ['LE_ADAPTER'])
+                       print "CA Transport is BLE"
        else:
                env.AppendUnique(CPPDEFINES = ['NO_LE_ADAPTER'])