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

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

Powered by Google App Engine
This is Rietveld 408576698