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

Unified Diff: ios/build/tools/setup-gn.py

Issue 2789433004: Add tools for code coverage support in iOS. (Closed)
Patch Set: Rebased Created 3 years, 8 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
« no previous file with comments | « docs/ios/images/llvm-cov_show_file.png ('k') | ios/showcase/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/build/tools/setup-gn.py
diff --git a/ios/build/tools/setup-gn.py b/ios/build/tools/setup-gn.py
index 79a510021dcef70706ff836c0a6ec54bf2bd36e0..2d11b89ec6f0c02ee52e26e8d6efa73105354b70 100755
--- a/ios/build/tools/setup-gn.py
+++ b/ios/build/tools/setup-gn.py
@@ -21,7 +21,7 @@ except ImportError:
SUPPORTED_TARGETS = ('iphoneos', 'iphonesimulator')
-SUPPORTED_CONFIGS = ('Debug', 'Release', 'Profile', 'Official')
+SUPPORTED_CONFIGS = ('Debug', 'Release', 'Profile', 'Official', 'Coverage')
class ConfigParserWithStringInterpolation(ConfigParser.SafeConfigParser):
@@ -90,12 +90,13 @@ class GnGenerator(object):
if goma_dir:
args.append(('goma_dir', '"%s"' % os.path.expanduser(goma_dir)))
- args.append(('is_debug', self._config == 'Debug'))
+ args.append(('is_debug', self._config in ('Debug', 'Coverage')))
args.append(('enable_dsyms', self._config in ('Profile', 'Official')))
args.append(('enable_stripping', 'enable_dsyms'))
args.append(('is_official_build', self._config == 'Official'))
args.append(('is_chrome_branded', 'is_official_build'))
args.append(('use_xcode_clang', 'is_official_build'))
+ args.append(('ios_enable_coverage', self._config == 'Coverage'))
if os.environ.get('FORCE_MAC_TOOLCHAIN', '0') == '1':
args.append(('use_system_xcode', False))
« no previous file with comments | « docs/ios/images/llvm-cov_show_file.png ('k') | ios/showcase/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698