Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: build/common.gypi

Issue 22870021: [Android] Makes GYP changes for EMMA coverage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes emma_should_instrument, replaces intermediate dir with tempfile Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 0e0efdae2b750056244b720ba86598a3c6a1c52a..730f644feb41ff5034fadde0024af9a63d3b4c36 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -924,6 +924,10 @@
# Currently ignored on Windows.
'coverage%': 0,
+ # Set to 1 to enable java code coverage. Instruments classes during build
+ # to produce .ec files during runtime.
+ 'emma_coverage%': 0,
+
# Set to 1 to force Visual C++ to use legacy debug information format /Z7.
# This is useful for parallel compilation tools which can't support /Zi.
# Only used on Windows.
@@ -2167,8 +2171,8 @@
],
}],
['OS=="linux" or OS=="android"', {
- 'cflags': [ '-ftest-coverage',
- '-fprofile-arcs' ],
+ 'cflags': [ '--coverage', '-g',
+ '-DANDROID_COVERAGE' ],
'link_settings': { 'libraries': [ '-lgcov' ] },
}],
['OS=="win"', {

Powered by Google App Engine
This is Rietveld 408576698