• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    'enable_coverage%': 0,
8  },
9  'conditions': [
10    ['enable_coverage', {
11        'target_defaults': {
12          'defines': [
13            'ENABLE_TEST_CODE_COVERAGE=1'
14          ],
15          'link_settings': {
16            'xcode_settings': {
17              'OTHER_LDFLAGS': [
18                '-fprofile-arcs',
19              ],
20            },
21          },
22          'xcode_settings': {
23            'OTHER_CFLAGS': [
24              '-fprofile-arcs',
25              '-ftest-coverage',
26            ],
27          },
28        },
29    }],
30  ],
31}
32
33