Providing build option to disable BLE server
[platform/upstream/iotivity.git] / resource / csdk / stack / samples / tizen / build / SConscript
index d04f96a..225d617 100644 (file)
@@ -16,6 +16,7 @@ routing = env.get('ROUTING')
 with_proxy = env.get('WITH_PROXY')
 with_tcp = env.get('WITH_TCP')
 with_mq = env.get('WITH_MQ')
+disable_ble_server = env.get('DISABLE_BLE_SERVER')
 
 with_upstream_libcoap = env.get('WITH_UPSTREAM_LIBCOAP')
 if with_upstream_libcoap == '1':
@@ -46,8 +47,13 @@ print "Given Transport is %s" % transport
 print "Given OS is %s" % target_os
 print "Given MQ is %s" % with_mq
 
+gbs_command_prefix = ""
+if (('BLE' in transport) or ('ALL' in transport)):
+       print "Tizen BLE requires tizen 3.0 profile"
+       gbs_command_prefix += "gbsprofile=tizen_4_0_unified_armv7l "
+
 if target_os == 'tizen':
-       command = "sh resource/csdk/stack/samples/tizen/build/gbsbuild.sh %s %s %s %s %s %s %s %s %s" % (transport, secured, buildsample, release_mode, logging, routing, with_tcp, with_proxy, with_mq)
+       command = gbs_command_prefix + "./resource/csdk/stack/samples/tizen/build/gbsbuild.sh %s %s %s %s %s %s %s %s %s %s" % (transport, secured, buildsample, release_mode, logging, routing, with_tcp, with_proxy, with_mq, disable_ble_server)
        print "Created Command is %s" % command
        gbs_script = env.Command('gbs_build', None, command)
-       AlwaysBuild ('gbs_script')
\ No newline at end of file
+       AlwaysBuild ('gbs_script')