Upstream //build/ios/coverage.gypi

Add OWNERS for build/ios.
Use Xcode clang compiler for coverage configuration.

BUG=450379

Review URL: https://codereview.chromium.org/853293002

Cr-Original-Commit-Position: refs/heads/master@{#312416}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 07a8e92fb99ff03230122c2341e2d3b017216757
This commit is contained in:
eugenebut 2015-01-21 12:21:13 -08:00 коммит произвёл Commit bot
Родитель 4bd61eb9cd
Коммит cc6bdc7962
3 изменённых файлов: 43 добавлений и 1 удалений

Просмотреть файл

@ -2058,6 +2058,9 @@
'grit_defines': ['-D', 'scale_factors=2x'],
}],
['OS == "ios"', {
'variables': {
'enable_coverage%': 0,
},
'grit_defines': [
'-t', 'ios',
# iOS uses a whitelist to filter resources.
@ -2073,7 +2076,10 @@
# TODO(sdefresne): Remove the target_subarch check once Apple has
# upstreamed the support for "arm64". http://crbug.com/341453
['target_subarch!="arm32" or "<(GENERATOR)"=="xcode"', {
# TODO(eugenebut): Remove enable_coverage check once
# libclang_rt.profile_ios.a is bundled with Chromium's clang.
# http://crbug.com/450379
['target_subarch!="arm32" or enable_coverage or "<(GENERATOR)"=="xcode"', {
'clang_xcode%': 1,
}],
],

3
ios/OWNERS Normal file
Просмотреть файл

@ -0,0 +1,3 @@
rohitrao@chromium.org
stuartmorgan@chromium.org

33
ios/coverage.gypi Normal file
Просмотреть файл

@ -0,0 +1,33 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'enable_coverage%': 0,
},
'conditions': [
['OS=="ios" and enable_coverage', {
'target_defaults': {
'defines': [
'ENABLE_TEST_CODE_COVERAGE=1'
],
'link_settings': {
'xcode_settings': {
'OTHER_LDFLAGS': [
'-fprofile-arcs',
],
},
},
'xcode_settings': {
'OTHER_CFLAGS': [
'-fprofile-arcs',
'-ftest-coverage',
],
},
},
}],
],
}