| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | |
| 8 'enable_coverage%': 0, | 7 'enable_coverage%': 0, |
| 9 }, | 8 }, |
| 10 'conditions': [ | 9 'conditions': [ |
| 11 ['OS=="ios" and enable_coverage', { | 10 ['enable_coverage', { |
| 12 'target_defaults': { | 11 'target_defaults': { |
| 13 'defines': [ | 12 'defines': [ |
| 14 'ENABLE_TEST_CODE_COVERAGE=1' | 13 'ENABLE_TEST_CODE_COVERAGE=1' |
| 15 ], | 14 ], |
| 16 'link_settings': { | 15 'link_settings': { |
| 17 'xcode_settings': { | 16 'xcode_settings': { |
| 18 'OTHER_LDFLAGS': [ | 17 'OTHER_LDFLAGS': [ |
| 19 '-fprofile-arcs', | 18 '-fprofile-arcs', |
| 20 ], | 19 ], |
| 21 }, | 20 }, |
| 22 }, | 21 }, |
| 23 'xcode_settings': { | 22 'xcode_settings': { |
| 24 'OTHER_CFLAGS': [ | 23 'OTHER_CFLAGS': [ |
| 25 '-fprofile-arcs', | 24 '-fprofile-arcs', |
| 26 '-ftest-coverage', | 25 '-ftest-coverage', |
| 27 ], | 26 ], |
| 28 }, | 27 }, |
| 29 }, | 28 }, |
| 30 }], | 29 }], |
| 31 ], | 30 ], |
| 32 } | 31 } |
| 33 | 32 |
| OLD | NEW |