Providing build option to disable BLE server
[platform/upstream/iotivity.git] / build_common / SConscript
index 4a9a350..8612220 100644 (file)
@@ -102,6 +102,7 @@ help_vars.Add(ListVariable('WITH_MQ', 'Build with MQ publisher/broker', 'OFF', [
 help_vars.Add(BoolVariable('WITH_CLOUD', 'Build including AccountManager class and Cloud Client sample', False))
 help_vars.Add(ListVariable('RD_MODE', 'Resource Directory build mode', 'CLIENT', ['CLIENT', 'SERVER']))
 help_vars.Add(BoolVariable('DISABLE_PRESENCE', 'Disable Presence Feature', False))
+help_vars.Add(BoolVariable('DISABLE_BLE_SERVER', 'Disable BLE server', False))
 
 help_vars.Add(BoolVariable('SIMULATOR', 'Build with simulator module', False))
 
@@ -362,6 +363,9 @@ if env.get('DISABLE_TCP_SERVER'):
 if env.get('DISABLE_PRESENCE') == False:
     env.AppendUnique(CPPDEFINES = ['WITH_PRESENCE'])
 
+if env.get('DISABLE_BLE_SERVER'):
+    defines.append('-DDISABLE_BLE_SERVER=1')
+
 libs = []
 if env.get('SECURED') == '1':
     defines.append('-D__WITH_DTLS__=1')