Restore support for code coverage in WebRTC

In https://codereview.chromium.org/68193002
Chromium dropped the support for the coverage=1 flag.
This restores it for WebRTC purposes for the Linux platform.

TEST=Manually ran the coverage steps on my machine, verified
that .gcno files are generated.

BUG=
R=phoglund@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/10879004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5806 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2014-03-28 13:14:00 +00:00
parent f7d501d48a
commit 0aa04f9f24

View File

@ -63,6 +63,9 @@
# third party code will still have the reduced warning settings.
'chromium_code': 1,
# Set to 1 to enable code coverage on Linux using the gcov library.
'coverage%': 0,
# Remote bitrate estimator logging/plotting.
'enable_bwe_test_logging%': 0,
@ -261,6 +264,11 @@
}],
],
}],
['coverage==1 and OS=="linux"', {
'cflags': [ '-ftest-coverage',
'-fprofile-arcs' ],
'link_settings': { 'libraries': [ '-lgcov' ] },
}],
['os_posix==1', {
# For access to standard POSIXish features, use WEBRTC_POSIX instead of
# a more specific macro.