Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: chrome/chrome.gyp

Issue 155123: Code coverage on Windows (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 # Define the common dependencies that contain all the actual 8 # Define the common dependencies that contain all the actual
9 # Chromium functionality. This list gets pulled in below by 9 # Chromium functionality. This list gets pulled in below by
10 # the link of the actual chrome (or chromium) executable on 10 # the link of the actual chrome (or chromium) executable on
(...skipping 4756 matching lines...) Expand 10 before | Expand all | Expand 10 after
4767 'configurations': { 4767 'configurations': {
4768 'Debug': { 4768 'Debug': {
4769 'msvs_precompiled_header': 'tools/build/win/precompiled.h', 4769 'msvs_precompiled_header': 'tools/build/win/precompiled.h',
4770 'msvs_precompiled_source': 'tools/build/win/precompiled.cc', 4770 'msvs_precompiled_source': 'tools/build/win/precompiled.cc',
4771 }, 4771 },
4772 }, 4772 },
4773 }, 4773 },
4774 ]}, # 'targets' 4774 ]}, # 'targets'
4775 ], # OS=="win" 4775 ], # OS=="win"
4776 # TODO(jrg): add in Windows code coverage targets. 4776 # TODO(jrg): add in Windows code coverage targets.
4777 ['coverage!=0 and OS!="win"', 4777 ['coverage!=0',
4778 { 'targets': [ 4778 { 'targets': [
4779 { 4779 {
4780 'target_name': 'coverage', 4780 'target_name': 'coverage',
4781 # do NOT place this in the 'all' list; most won't want it. 4781 # do NOT place this in the 'all' list; most won't want it.
4782 # In gyp, booleans are 0/1 not True/False. 4782 # In gyp, booleans are 0/1 not True/False.
4783 'suppress_wildcard': 1, 4783 'suppress_wildcard': 1,
4784 'type': 'none', 4784 'type': 'none',
4785 # If you add new tests here you may need to update the croc configs. 4785 # If you add new tests here you may need to update the croc configs.
4786 # E.g. build/{linux|mac}/chrome_linux.croc 4786 # E.g. build/{linux|mac}/chrome_linux.croc
4787 'dependencies': [ 4787 'dependencies': [
4788 '../base/base.gyp:base_unittests', 4788 '../base/base.gyp:base_unittests',
4789 '../media/media.gyp:media_unittests', 4789 '../media/media.gyp:media_unittests',
4790 '../net/net.gyp:net_unittests', 4790 '../net/net.gyp:net_unittests',
4791 '../printing/printing.gyp:printing_unittests', 4791 '../printing/printing.gyp:printing_unittests',
4792 'unit_tests', 4792 'unit_tests',
4793 ], 4793 ],
4794 'actions': [ 4794 'actions': [
4795 { 4795 {
4796 # 'message' for Linux/scons in particular. Scons 4796 # 'message' for Linux/scons in particular. Scons
4797 # requires the 'coverage' target be run from within 4797 # requires the 'coverage' target be run from within
4798 # src/chrome. 4798 # src/chrome.
4799 'message': 'Running coverage_posix.py to generate coverage numbers ', 4799 'message': 'Running coverage_posix.py to generate coverage numbers ',
4800 'inputs': [], 4800 # MSVS must have an input file and an output file.
4801 'outputs': [], 4801 'inputs': [ '../tools/code_coverage/coverage_posix.py' ],
4802 'outputs': [ '<(PRODUCT_DIR)/coverage.info' ],
4802 'action_name': 'coverage', 4803 'action_name': 'coverage',
4803 'action': [ 'python', 4804 'action': [ 'python',
4804 '../tools/code_coverage/coverage_posix.py', 4805 '../tools/code_coverage/coverage_posix.py',
4805 '--directory', 4806 '--directory',
4806 '<(PRODUCT_DIR)', 4807 '<(PRODUCT_DIR)',
4808 '--src_root',
4809 '..',
4807 '--', 4810 '--',
4808 '<@(_dependencies)'], 4811 '<@(_dependencies)'],
4809 # Use outputs of this action as inputs for the main target build. 4812 # Use outputs of this action as inputs for the main target build.
4810 # Seems as a misnomer but makes this happy on Linux (scons). 4813 # Seems as a misnomer but makes this happy on Linux (scons).
4811 'process_outputs_as_sources': 1, 4814 'process_outputs_as_sources': 1,
4812 }, 4815 },
4813 ], # 'actions' 4816 ], # 'actions'
4814 }, 4817 },
4815 ] 4818 ]
4816 }], 4819 }],
4817 ], # 'conditions' 4820 ], # 'conditions'
4818 } 4821 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698