Update snapshot history
[platform/upstream/iotivity.git] / build_common / SConscript
index 577cbff..6dc7f19 100755 (executable)
@@ -133,7 +133,8 @@ 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('TIZEN_4', 'Build with tizen 4.0 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')))
@@ -169,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 = '''