| 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 2639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2650 # Clang considers the `register` keyword as deprecated, but e.g. | 2650 # Clang considers the `register` keyword as deprecated, but e.g. |
| 2651 # code generated by flex (used in angle) contains that keyword. | 2651 # code generated by flex (used in angle) contains that keyword. |
| 2652 # http://crbug.com/255186 | 2652 # http://crbug.com/255186 |
| 2653 '-Wno-deprecated-register', | 2653 '-Wno-deprecated-register', |
| 2654 | 2654 |
| 2655 # TODO(hans): Get this cleaned up, http://crbug.com/428099 | 2655 # TODO(hans): Get this cleaned up, http://crbug.com/428099 |
| 2656 '-Wno-inconsistent-missing-override', | 2656 '-Wno-inconsistent-missing-override', |
| 2657 | 2657 |
| 2658 # TODO(thakis): Enable this, crbug.com/507717 | 2658 # TODO(thakis): Enable this, crbug.com/507717 |
| 2659 '-Wno-shift-negative-value', | 2659 '-Wno-shift-negative-value', |
| 2660 |
| 2661 # TODO(thakis): https://crbug.com/604888 |
| 2662 '-Wno-undefined-var-template', |
| 2660 ], | 2663 ], |
| 2661 }, | 2664 }, |
| 2662 'includes': [ 'set_clang_warning_flags.gypi', ], | 2665 'includes': [ 'set_clang_warning_flags.gypi', ], |
| 2663 'defines': [ | 2666 'defines': [ |
| 2664 # Don't use deprecated V8 APIs anywhere. | 2667 # Don't use deprecated V8 APIs anywhere. |
| 2665 'V8_DEPRECATION_WARNINGS', | 2668 'V8_DEPRECATION_WARNINGS', |
| 2666 'CLD_VERSION=<(cld_version)', | 2669 'CLD_VERSION=<(cld_version)', |
| 2667 ], | 2670 ], |
| 2668 'include_dirs': [ | 2671 'include_dirs': [ |
| 2669 '<(SHARED_INTERMEDIATE_DIR)', | 2672 '<(SHARED_INTERMEDIATE_DIR)', |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3067 'defines': [ | 3070 'defines': [ |
| 3068 'ADDRESS_SANITIZER', | 3071 'ADDRESS_SANITIZER', |
| 3069 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3072 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 3070 'MEMORY_SANITIZER_INITIAL_SIZE', | 3073 'MEMORY_SANITIZER_INITIAL_SIZE', |
| 3071 ], | 3074 ], |
| 3072 }], | 3075 }], |
| 3073 ['enable_wexit_time_destructors==1 and OS!="win"', { | 3076 ['enable_wexit_time_destructors==1 and OS!="win"', { |
| 3074 # TODO: Enable on Windows too, http://crbug.com/404525 | 3077 # TODO: Enable on Windows too, http://crbug.com/404525 |
| 3075 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, | 3078 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, |
| 3076 }], | 3079 }], |
| 3077 ['"<!(python <(DEPTH)/tools/clang/scripts/update.py --print-revision)"!="2
66460-1"', { | |
| 3078 # TODO(thakis): https://crbug.com/604888 | |
| 3079 'variables': { 'clang_warning_flags': ['-Wno-undefined-var-template']}, | |
| 3080 }], | |
| 3081 ['chromium_code==0', { | 3080 ['chromium_code==0', { |
| 3082 'variables': { | 3081 'variables': { |
| 3083 'clang_warning_flags': [ | 3082 'clang_warning_flags': [ |
| 3084 # Lots of third-party libraries have unused variables. Instead of | 3083 # Lots of third-party libraries have unused variables. Instead of |
| 3085 # suppressing them individually, we just blanket suppress them here. | 3084 # suppressing them individually, we just blanket suppress them here. |
| 3086 '-Wno-unused-variable', | 3085 '-Wno-unused-variable', |
| 3087 ], | 3086 ], |
| 3088 }, | 3087 }, |
| 3089 'conditions': [ | 3088 'conditions': [ |
| 3090 [ 'os_posix==1 and OS!="mac" and OS!="ios"', { | 3089 [ 'os_posix==1 and OS!="mac" and OS!="ios"', { |
| (...skipping 3248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6339 # settings in target dicts. SYMROOT is a special case, because many other | 6338 # settings in target dicts. SYMROOT is a special case, because many other |
| 6340 # Xcode variables depend on it, including variables such as | 6339 # Xcode variables depend on it, including variables such as |
| 6341 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6340 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6342 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6341 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6343 # files to appear (when present) in the UI as actual files and not red | 6342 # files to appear (when present) in the UI as actual files and not red |
| 6344 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6343 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6345 # and therefore SYMROOT, needs to be set at the project level. | 6344 # and therefore SYMROOT, needs to be set at the project level. |
| 6346 'SYMROOT': '<(DEPTH)/xcodebuild', | 6345 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6347 }, | 6346 }, |
| 6348 } | 6347 } |
| OLD | NEW |