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

Side by Side Diff: build/common.gypi

Issue 10827429: Turn on warnings as errors for (most) third_party code on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | third_party/qcms/qcms.gyp » ('j') | third_party/qcms/qcms.gyp » ('J')
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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 # but that doesn't work as we'd like. 700 # but that doesn't work as we'd like.
701 'msvs_debug_link_incremental%': '2', 701 'msvs_debug_link_incremental%': '2',
702 702
703 # Needed for some of the largest modules. 703 # Needed for some of the largest modules.
704 'msvs_debug_link_nonincremental%': '1', 704 'msvs_debug_link_nonincremental%': '1',
705 705
706 # Turns on Use Library Dependency Inputs for linking chrome.dll on Windows 706 # Turns on Use Library Dependency Inputs for linking chrome.dll on Windows
707 # to get incremental linking to be faster in debug builds. 707 # to get incremental linking to be faster in debug builds.
708 'incremental_chrome_dll%': '0', 708 'incremental_chrome_dll%': '0',
709 709
710 # The default settings for third party code for treating
711 # warnings-as-errors. Ideally, this would not be required, however there
712 # is some third party code that takes a long time to fix/roll. So, this
713 # flag allows us to have warnings as errors in general to prevent
714 # regressions in most modules, while working on the bits that are
715 # remaining.
716 'win_third_party_warn_as_error%': 'true',
717
710 # This is the location of the sandbox binary. Chrome looks for this before 718 # This is the location of the sandbox binary. Chrome looks for this before
711 # running the zygote process. If found, and SUID, it will be used to 719 # running the zygote process. If found, and SUID, it will be used to
712 # sandbox the zygote process and, thus, all renderer processes. 720 # sandbox the zygote process and, thus, all renderer processes.
713 'linux_sandbox_path%': '', 721 'linux_sandbox_path%': '',
714 722
715 # Set this to true to enable SELinux support. 723 # Set this to true to enable SELinux support.
716 'selinux%': 0, 724 'selinux%': 0,
717 725
718 # Clang stuff. 726 # Clang stuff.
719 'clang%': '<(clang)', 727 'clang%': '<(clang)',
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 'defines': [ 1661 'defines': [
1654 '_CRT_SECURE_NO_DEPRECATE', 1662 '_CRT_SECURE_NO_DEPRECATE',
1655 '_CRT_NONSTDC_NO_WARNINGS', 1663 '_CRT_NONSTDC_NO_WARNINGS',
1656 '_CRT_NONSTDC_NO_DEPRECATE', 1664 '_CRT_NONSTDC_NO_DEPRECATE',
1657 '_SCL_SECURE_NO_DEPRECATE', 1665 '_SCL_SECURE_NO_DEPRECATE',
1658 ], 1666 ],
1659 'msvs_disabled_warnings': [4800], 1667 'msvs_disabled_warnings': [4800],
1660 'msvs_settings': { 1668 'msvs_settings': {
1661 'VCCLCompilerTool': { 1669 'VCCLCompilerTool': {
1662 'WarningLevel': '3', 1670 'WarningLevel': '3',
1663 'WarnAsError': 'false', # TODO(maruel): Enable it. 1671 'WarnAsError': '<(win_third_party_warn_as_error)',
1664 'Detect64BitPortabilityProblems': 'false', 1672 'Detect64BitPortabilityProblems': 'false',
1665 }, 1673 },
1666 }, 1674 },
1667 }], 1675 }],
1668 # TODO(darin): Unfortunately, some third_party code depends on base/ 1676 # TODO(darin): Unfortunately, some third_party code depends on base/
1669 [ 'OS=="win" and component=="shared_library"', { 1677 [ 'OS=="win" and component=="shared_library"', {
1670 'msvs_disabled_warnings': [ 1678 'msvs_disabled_warnings': [
1671 4251, # class 'std::xx' needs to have dll-interface. 1679 4251, # class 'std::xx' needs to have dll-interface.
1672 ], 1680 ],
1673 }], 1681 }],
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
3388 # settings in target dicts. SYMROOT is a special case, because many other 3396 # settings in target dicts. SYMROOT is a special case, because many other
3389 # Xcode variables depend on it, including variables such as 3397 # Xcode variables depend on it, including variables such as
3390 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3398 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3391 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3399 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3392 # files to appear (when present) in the UI as actual files and not red 3400 # files to appear (when present) in the UI as actual files and not red
3393 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3401 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3394 # and therefore SYMROOT, needs to be set at the project level. 3402 # and therefore SYMROOT, needs to be set at the project level.
3395 'SYMROOT': '<(DEPTH)/xcodebuild', 3403 'SYMROOT': '<(DEPTH)/xcodebuild',
3396 }, 3404 },
3397 } 3405 }
OLDNEW
« no previous file with comments | « no previous file | third_party/qcms/qcms.gyp » ('j') | third_party/qcms/qcms.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698