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"', { |