OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 'enable_coverage%': 0, | |
9 }, | |
10 'conditions': [ | |
11 [ 'OS=="ios" and enable_coverage', { | |
stuartmorgan
2015/01/16 21:38:42
No space after [
Also, why the OS check in an iOS
Eugene But (OOO till 7-30)
2015/01/16 22:04:06
Removed space. This file fill be unconditionally i
| |
12 'target_defaults': { | |
13 'variables': { | |
14 'developer_dir': '<!(xcode-select -print-path)', | |
15 }, | |
16 'defines': [ | |
17 'ENABLE_TEST_CODE_COVERAGE=1' | |
18 ], | |
19 'link_settings': { | |
20 'libraries': [ | |
21 # There is no short name for clang coverage library like it was | |
22 # for GCC. Xcode automatically links the binary with | |
23 # libclang_rt.profile_ios if GCC_INSTRUMENT_PROGRAM_FLOW_ARCS and | |
24 # GCC_GENERATE_TEST_COVERAGE_FILES flags are set to YES. Since | |
25 # Xcode is not used for compilation binaries must be manually | |
26 # linked with libclang_rt.profile_ios. | |
27 '<(developer_dir)/Toolchains/XcodeDefault.xctoolchain/usr/bin/../l ib/clang/6.0/lib/darwin/libclang_rt.profile_ios.a', | |
28 ], | |
29 }, | |
30 'xcode_settings': { | |
31 'OTHER_CFLAGS': [ | |
32 '-fprofile-arcs', | |
33 '-ftest-coverage', | |
34 ], | |
35 }, | |
36 }, | |
37 }], | |
38 ], | |
39 } | |
40 | |
OLD | NEW |