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

Side by Side Diff: build/common.gypi

Issue 11412133: Update build settings for coverage on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 ['_type!="static_library"', { 1765 ['_type!="static_library"', {
1766 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, 1766 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] },
1767 }], 1767 }],
1768 ], 1768 ],
1769 }], 1769 }],
1770 ['OS=="linux" or OS=="android"', { 1770 ['OS=="linux" or OS=="android"', {
1771 'cflags': [ '-ftest-coverage', 1771 'cflags': [ '-ftest-coverage',
1772 '-fprofile-arcs' ], 1772 '-fprofile-arcs' ],
1773 'link_settings': { 'libraries': [ '-lgcov' ] }, 1773 'link_settings': { 'libraries': [ '-lgcov' ] },
1774 }], 1774 }],
1775 # Finally, for Windows, we simply turn on profiling.
1776 ['OS=="win"', { 1775 ['OS=="win"', {
1776 'variables': {
1777 # Disable incremental linking for all modules.
1778 # 0: inherit, 1: disabled, 2: enabled.
1779 'msvs_debug_link_incremental': '1',
1780 'msvs_large_module_debug_link_mode': '1',
1781 },
1782 'defines': [
1783 # Disable iterator debugging (huge speed boost without any
1784 # change in coverage results).
1785 '_HAS_ITERATOR_DEBUGGING=0',
1786 ],
1777 'msvs_settings': { 1787 'msvs_settings': {
1778 'VCLinkerTool': { 1788 'VCLinkerTool': {
1789 # Enable profile information (necessary for coverage
1790 # instrumentation). This is incompatible with incremental
1791 # linking.
1779 'Profile': 'true', 1792 'Profile': 'true',
1780 }, 1793 },
1781 'VCCLCompilerTool': {
1782 # /Z7, not /Zi, so coverage is happyb
1783 'DebugInformationFormat': '1',
1784 'AdditionalOptions': ['/Yd'],
1785 }
1786 } 1794 }
1787 }], # OS==win 1795 }], # OS==win
1788 ], # conditions for coverage 1796 ], # conditions for coverage
1789 }], # coverage!=0 1797 }], # coverage!=0
1790 ['OS=="win"', { 1798 ['OS=="win"', {
1791 'defines': [ 1799 'defines': [
1792 '__STD_C', 1800 '__STD_C',
1793 '_CRT_SECURE_NO_DEPRECATE', 1801 '_CRT_SECURE_NO_DEPRECATE',
1794 '_SCL_SECURE_NO_DEPRECATE', 1802 '_SCL_SECURE_NO_DEPRECATE',
1795 # This define is required to pull in the new Win8 interfaces from 1803 # This define is required to pull in the new Win8 interfaces from
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 }, 1960 },
1953 }, 1961 },
1954 'conditions': [ 1962 'conditions': [
1955 ['buildtype=="Official"', { 1963 ['buildtype=="Official"', {
1956 'msvs_settings': { 1964 'msvs_settings': {
1957 'VCCLCompilerTool': { 'WarnAsError': 'false' }, 1965 'VCCLCompilerTool': { 'WarnAsError': 'false' },
1958 } 1966 }
1959 }], 1967 }],
1960 ], 1968 ],
1961 }], 1969 }],
1962 # TODO(darin): Unfortunately, some third_party code depends on base/ 1970 # TODO(darin): Unfortunately, some third_party code depends on base.
1963 [ 'OS=="win" and component=="shared_library"', { 1971 [ 'OS=="win" and component=="shared_library"', {
1964 'msvs_disabled_warnings': [ 1972 'msvs_disabled_warnings': [
1965 4251, # class 'std::xx' needs to have dll-interface. 1973 4251, # class 'std::xx' needs to have dll-interface.
1966 ], 1974 ],
1967 }], 1975 }],
1968 [ 'OS=="mac" or OS=="ios"', { 1976 [ 'OS=="mac" or OS=="ios"', {
1969 'xcode_settings': { 1977 'xcode_settings': {
1970 'WARNING_CFLAGS!': ['-Wall', '-Wextra'], 1978 'WARNING_CFLAGS!': ['-Wall', '-Wextra'],
1971 }, 1979 },
1972 'conditions': [ 1980 'conditions': [
(...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after
3851 # settings in target dicts. SYMROOT is a special case, because many other 3859 # settings in target dicts. SYMROOT is a special case, because many other
3852 # Xcode variables depend on it, including variables such as 3860 # Xcode variables depend on it, including variables such as
3853 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3861 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3854 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3862 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3855 # files to appear (when present) in the UI as actual files and not red 3863 # files to appear (when present) in the UI as actual files and not red
3856 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3864 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3857 # and therefore SYMROOT, needs to be set at the project level. 3865 # and therefore SYMROOT, needs to be set at the project level.
3858 'SYMROOT': '<(DEPTH)/xcodebuild', 3866 'SYMROOT': '<(DEPTH)/xcodebuild',
3859 }, 3867 },
3860 } 3868 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698