X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build_common%2FSConscript;h=6dc7f19a68d7c690439f10bb0255aa0378b5e258;hb=b9f147a837d6947528ac9440d2d39fd47a68ed5f;hp=b373665dadef07e8bbbc25680c27af2545238ff4;hpb=3c093548382bb2542c87a67e6e5fa32552c29cb3;p=platform%2Fupstream%2Fiotivity.git diff --git a/build_common/SConscript b/build_common/SConscript old mode 100644 new mode 100755 index b373665..6dc7f19 --- a/build_common/SConscript +++ b/build_common/SConscript @@ -96,15 +96,18 @@ help_vars.Add(EnumVariable('TARGET_OS', 'Target platform', host, host_target_map help_vars.Add(BoolVariable('WITH_RA', 'Build with Remote Access module', False)) help_vars.Add(BoolVariable('WITH_TCP', 'Build with TCP adapter', False)) +help_vars.Add(BoolVariable('DISABLE_TCP_SERVER', 'Disable TCP server', False)) help_vars.Add(BoolVariable('WITH_PROXY', 'Build with CoAP-HTTP Proxy', False)) help_vars.Add(ListVariable('WITH_MQ', 'Build with MQ publisher/broker', 'OFF', ['OFF', 'SUB', 'PUB', 'BROKER'])) 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)) help_vars.Add(BoolVariable('WITH_RA_IBB', 'Build with Remote Access module(workssys)', False)) - +help_vars.Add(BoolVariable('WITH_ASAN', 'Build with Address Sanitizer support', False)) if target_os in targets_disallow_multitransport: help_vars.Add(ListVariable('TARGET_TRANSPORT', 'Target transport', 'IP', ['BT', 'BLE', 'IP', 'NFC'])) @@ -130,9 +133,13 @@ help_vars.Add(EnumVariable('WITH_UPSTREAM_LIBCOAP', 'Use latest stable version o help_vars.Add(EnumVariable('BLE_CUSTOM_ADV', 'Build with CUSTOM Advertisement', 'False', allowed_values=('True', 'False'))) help_vars.Add(EnumVariable('BLE_DIVISION', 'BLE Build with division code', 'OFF', allowed_values=('OFF', 'MCD', 'VD'))) help_vars.Add(EnumVariable('BLE_TIZEN_30', 'Build with tizen 3.0 BLE api', 'False', allowed_values=('True', 'False'))) +help_vars.Add(EnumVariable('BLE_TIZEN_40', 'Build with tizen 4.0 BLE api', 'False', allowed_values=('True', 'False'))) +help_vars.Add(EnumVariable('BLE_TIZEN_55', 'Build with tizen 5.5 BLE api', 'False', allowed_values=('True', 'False'))) help_vars.Add(PathVariable('TIZENRT_OS_DIR', 'Absolute Path to TizenRT OS directory', None, PathVariable.PathAccept)) help_vars.Add(EnumVariable('PLATFORM_TLS', 'Use platform tls instead of local mbedtls', '0', allowed_values=('0', '1'))) help_vars.Add(EnumVariable('OIC_SUPPORT_TIZEN_TRACE', 'Tizen Trace(T-trace) api availability', 'False', allowed_values=('True', 'False'))) +help_vars.Add(BoolVariable('WITH_PROCESS_EVENT','Build including process event logics in ocstack', 'False')) +help_vars.Add(BoolVariable('DISABLE_AUTO_TCP_NSPROVIDER_DISCOVERY', 'Disable auto-discovery of NSProvider over TCP for TCP connected events', False)) AddOption('--prefix', dest='prefix', type='string', @@ -163,6 +170,17 @@ else: PREFIX = GetOption('prefix'), LIB_INSTALL_DIR = ARGUMENTS.get('LIB_INSTALL_DIR') #for 64bit build ) + +targets_support_gcov = ['linux', 'darwin'] +if target_os in targets_support_gcov: + # Build option to enable coverage checking using gcov. + # Requires gcc or clang family compilers. + # Actual compiler flags need to be set in target-specific script. + help_vars.Add( + BoolVariable('COVERAGE_CHECKS', + 'Build support for running code coverage checks', + default=False)) + Help(help_vars.GenerateHelpText(env)) tc_set_msg = ''' @@ -352,6 +370,21 @@ if env.get('WITH_TCP'): if env.get('SECURED') == '1': defines.append('-D__WITH_TLS__=1') +if env.get('DISABLE_TCP_SERVER'): + defines.append('-DDISABLE_TCP_SERVER=1') + +if env.get('DISABLE_PRESENCE') == False: + env.AppendUnique(CPPDEFINES = ['WITH_PRESENCE']) + +if env.get('DISABLE_BLE_SERVER'): + defines.append('-DDISABLE_BLE_SERVER=1') + +if env.get('WITH_PROCESS_EVENT'): + env.AppendUnique(CPPDEFINES=['WITH_PROCESS_EVENT']) + +if env.get('DISABLE_AUTO_TCP_NSPROVIDER_DISCOVERY'): + env.AppendUnique(CPPDEFINES = ['DISABLE_AUTO_TCP_NSPROVIDER_DISCOVERY']) + libs = [] if env.get('SECURED') == '1': defines.append('-D__WITH_DTLS__=1')