Commit 68909e6d authored by Abhishek Sharma's avatar Abhishek Sharma Committed by Uze Choi

Enable code coverage generation for Proxy

Change-Id: I4aaee3a4770e2fa644e1e4be5ae395ee575d435a
Signed-off-by: default avatarAbhishek Sharma <ce.abhishek@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19221Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarPhil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent 27024c35
......@@ -71,6 +71,13 @@ if target_os == 'android':
# Source files and Targets
######################################################################
# Link with gcov if building in debug mode
if target_os in ['linux']:
if not env.get('RELEASE'):
local_env.PrependUnique(LIBS = ['gcov'])
local_env.AppendUnique(CXXFLAGS = ['--coverage'])
local_env.AppendUnique(CFLAGS = ['--coverage'])
proxy_src = [
'./src/CoapHttpHandler.c',
'./src/CoapHttpMap.c',
......
......@@ -40,6 +40,10 @@ if target_os not in ['windows']:
else:
proxy_sample_app_env.PrependUnique(LIBS = ['m'])
if target_os in ['linux']:
if not env.get('RELEASE'):
proxy_sample_app_env.PrependUnique(LIBS = ['gcov'])
proxy_sample_app_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
proxy_sample_app_env.AppendUnique(RPATH = [env.get('BUILD_DIR')])
proxy_sample_app_env.PrependUnique(LIBS = ['coap_http_proxy', 'oc', 'octbstack', 'curl', 'connectivity_abstraction', 'cjson', 'm'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment