OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/common.gypi', | 10 '../build/common.gypi', |
(...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2798 ], | 2798 ], |
2799 'configurations': { | 2799 'configurations': { |
2800 'Debug': { | 2800 'Debug': { |
2801 'msvs_precompiled_header': 'tools/build/win/precompiled.h', | 2801 'msvs_precompiled_header': 'tools/build/win/precompiled.h', |
2802 'msvs_precompiled_source': 'tools/build/win/precompiled.cc', | 2802 'msvs_precompiled_source': 'tools/build/win/precompiled.cc', |
2803 }, | 2803 }, |
2804 }, | 2804 }, |
2805 }, | 2805 }, |
2806 ]}, # 'targets' | 2806 ]}, # 'targets' |
2807 ], # OS=="win" | 2807 ], # OS=="win" |
| 2808 # TODO(jrg): add in Windows code coverage targets. |
| 2809 # Also test on Linux. |
| 2810 ['coverage!=0 and OS=="mac"', |
| 2811 { 'targets': [ |
| 2812 { |
| 2813 'target_name': 'coverage', |
| 2814 # do NOT place this in the 'all' list; most won't want it. |
| 2815 # In gyp, booleans are 0/1 not True/False. |
| 2816 'suppress_wildcard': 1, |
| 2817 'type': 'none', |
| 2818 'dependencies': [ |
| 2819 '../base/base.gyp:base_unittests', |
| 2820 ], |
| 2821 'actions': [ |
| 2822 { |
| 2823 'inputs': [], |
| 2824 'outputs': [], |
| 2825 'action_name': 'coverage', |
| 2826 'action': [ 'python', |
| 2827 '../tools/code_coverage/coverage_posix.py', |
| 2828 '--directory', |
| 2829 '<(PRODUCT_DIR)' ], |
| 2830 }, |
| 2831 ], # 'actions' |
| 2832 }, |
| 2833 ] |
| 2834 }], |
2808 ], # 'conditions' | 2835 ], # 'conditions' |
2809 } | 2836 } |
OLD | NEW |