Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1916 ['OS=="win" and use_goma==1', { | 1916 ['OS=="win" and use_goma==1', { |
| 1917 # goma doesn't support pch yet. | 1917 # goma doesn't support pch yet. |
| 1918 'chromium_win_pch': 0, | 1918 'chromium_win_pch': 0, |
| 1919 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1. | 1919 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1. |
| 1920 'conditions': [ | 1920 'conditions': [ |
| 1921 ['fastbuild==0', { | 1921 ['fastbuild==0', { |
| 1922 'win_z7': 1, | 1922 'win_z7': 1, |
| 1923 }], | 1923 }], |
| 1924 ], | 1924 ], |
| 1925 }], | 1925 }], |
| 1926 | |
| 1927 ['OS=="win" and clang==1', { | |
| 1928 'chromium_win_pch': 0, | |
| 1929 }], | |
| 1930 | |
| 1926 # The seccomp-bpf sandbox is only supported on three architectures | 1931 # The seccomp-bpf sandbox is only supported on three architectures |
| 1927 # currently. | 1932 # currently. |
| 1928 # Do not disable seccomp_bpf anywhere without talking to | 1933 # Do not disable seccomp_bpf anywhere without talking to |
| 1929 # security@chromium.org! | 1934 # security@chromium.org! |
| 1930 ['((OS=="linux" or OS=="android") and ' | 1935 ['((OS=="linux" or OS=="android") and ' |
| 1931 '(target_arch=="ia32" or target_arch=="x64" or ' | 1936 '(target_arch=="ia32" or target_arch=="x64" or ' |
| 1932 'target_arch=="arm"))', { | 1937 'target_arch=="arm"))', { |
| 1933 'use_seccomp_bpf%': 1, | 1938 'use_seccomp_bpf%': 1, |
| 1934 }, { | 1939 }, { |
| 1935 'use_seccomp_bpf%': 0, | 1940 'use_seccomp_bpf%': 0, |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2544 'WarnAsError': '<(win_third_party_warn_as_error)', | 2549 'WarnAsError': '<(win_third_party_warn_as_error)', |
| 2545 'Detect64BitPortabilityProblems': 'false', | 2550 'Detect64BitPortabilityProblems': 'false', |
| 2546 }, | 2551 }, |
| 2547 }, | 2552 }, |
| 2548 'conditions': [ | 2553 'conditions': [ |
| 2549 ['buildtype=="Official"', { | 2554 ['buildtype=="Official"', { |
| 2550 'msvs_settings': { | 2555 'msvs_settings': { |
| 2551 'VCCLCompilerTool': { 'WarnAsError': 'false' }, | 2556 'VCCLCompilerTool': { 'WarnAsError': 'false' }, |
| 2552 } | 2557 } |
| 2553 }], | 2558 }], |
| 2559 ['clang==1', { | |
| 2560 'msvs_settings': { | |
| 2561 'VCCLCompilerTool': { 'WarnAsError': 'false' }, | |
| 2562 } | |
| 2563 }], | |
| 2554 ], | 2564 ], |
| 2555 }], | 2565 }], |
| 2556 # TODO(darin): Unfortunately, some third_party code depends on base. | 2566 # TODO(darin): Unfortunately, some third_party code depends on base. |
| 2557 [ 'OS=="win" and component=="shared_library"', { | 2567 [ 'OS=="win" and component=="shared_library"', { |
| 2558 'msvs_disabled_warnings': [ | 2568 'msvs_disabled_warnings': [ |
| 2559 4251, # class 'std::xx' needs to have dll-interface. | 2569 4251, # class 'std::xx' needs to have dll-interface. |
| 2560 ], | 2570 ], |
| 2561 }], | 2571 }], |
| 2562 [ 'OS=="mac" or OS=="ios"', { | 2572 [ 'OS=="mac" or OS=="ios"', { |
| 2563 'xcode_settings': { | 2573 'xcode_settings': { |
| (...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4650 'VCManifestTool': { | 4660 'VCManifestTool': { |
| 4651 'EmbedManifest': 'true', | 4661 'EmbedManifest': 'true', |
| 4652 } | 4662 } |
| 4653 }], | 4663 }], |
| 4654 ['_type=="executable" and >(win_use_external_manifest)==1', { | 4664 ['_type=="executable" and >(win_use_external_manifest)==1', { |
| 4655 'VCManifestTool': { | 4665 'VCManifestTool': { |
| 4656 'EmbedManifest': 'false', | 4666 'EmbedManifest': 'false', |
| 4657 } | 4667 } |
| 4658 }], | 4668 }], |
| 4659 ], | 4669 ], |
| 4670 'conditions': [ | |
| 4671 ['clang==1', { | |
| 4672 'VCCLCompilerTool': { | |
| 4673 'WarnAsError': 'false', | |
| 4674 'RuntimeTypeInfo': 'false', | |
| 4675 'AdditionalOptions': [ | |
| 4676 '/fallback', | |
| 4677 | |
| 4678 # Many files use intrinsics without including this header. | |
| 4679 # TODO(hans): Fix those files, or move this to sub-GYPs. | |
| 4680 '/FIIntrin.h', | |
| 4681 | |
| 4682 # TODO(hans): Make this list shorter eventually. | |
|
Reid Kleckner
2014/01/24 00:38:33
Why turn these off if we've turned off -WX / -Werr
hans
2014/01/24 00:54:03
It gets really noisy if I leave them on. I conside
| |
| 4683 '-Qunused-arguments', | |
| 4684 '-Wno-c++11-compat-deprecated-writable-strings', | |
| 4685 '-Wno-char-subscripts', | |
| 4686 '-Wno-deprecated-declarations', | |
| 4687 '-Wno-deprecated-register', | |
| 4688 '-Wno-empty-body', | |
| 4689 '-Wno-enum-conversion', | |
| 4690 '-Wno-incompatible-pointer-types', | |
| 4691 '-Wno-logical-op-parentheses', | |
| 4692 '-Wno-microsoft', | |
| 4693 '-Wno-missing-braces', | |
| 4694 '-Wno-msvc-include', | |
| 4695 '-Wno-null-dereference', | |
| 4696 '-Wno-overloaded-virtual', | |
| 4697 '-Wno-parentheses', | |
| 4698 '-Wno-pointer-sign', | |
| 4699 '-Wno-reorder', | |
| 4700 '-Wno-return-type-c-linkage', | |
| 4701 '-Wno-self-assign', | |
| 4702 '-Wno-switch', | |
| 4703 '-Wno-tautological-compare', | |
| 4704 '-Wno-unknown-pragmas', | |
| 4705 '-Wno-unsequenced', | |
| 4706 '-Wno-unused-function', | |
| 4707 '-Wno-unused-private-field', | |
| 4708 '-Wno-unused-value', | |
| 4709 '-Wno-unused-variable', | |
| 4710 '-ferror-limit=1', | |
| 4711 ], | |
| 4712 }, | |
| 4713 }], | |
| 4714 ], | |
| 4660 }, | 4715 }, |
| 4661 }, | 4716 }, |
| 4662 }], | 4717 }], |
| 4663 ['disable_nacl==1', { | 4718 ['disable_nacl==1', { |
| 4664 'target_defaults': { | 4719 'target_defaults': { |
| 4665 'defines': [ | 4720 'defines': [ |
| 4666 'DISABLE_NACL', | 4721 'DISABLE_NACL', |
| 4667 ], | 4722 ], |
| 4668 }, | 4723 }, |
| 4669 }], | 4724 }], |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4833 # settings in target dicts. SYMROOT is a special case, because many other | 4888 # settings in target dicts. SYMROOT is a special case, because many other |
| 4834 # Xcode variables depend on it, including variables such as | 4889 # Xcode variables depend on it, including variables such as |
| 4835 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4890 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4836 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4891 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4837 # files to appear (when present) in the UI as actual files and not red | 4892 # files to appear (when present) in the UI as actual files and not red |
| 4838 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4893 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4839 # and therefore SYMROOT, needs to be set at the project level. | 4894 # and therefore SYMROOT, needs to be set at the project level. |
| 4840 'SYMROOT': '<(DEPTH)/xcodebuild', | 4895 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4841 }, | 4896 }, |
| 4842 } | 4897 } |
| OLD | NEW |