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 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2626 'mac_release_optimization%': '2', # Use -O2 unless overridden | 2626 'mac_release_optimization%': '2', # Use -O2 unless overridden |
2627 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 2627 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
2628 }], | 2628 }], |
2629 ['OS=="android"', { | 2629 ['OS=="android"', { |
2630 'host_os%': '<(host_os)', # See comment above chromium_code. | 2630 'host_os%': '<(host_os)', # See comment above chromium_code. |
2631 }], | 2631 }], |
2632 ], | 2632 ], |
2633 'clang_warning_flags': [ | 2633 'clang_warning_flags': [ |
2634 '-Wheader-hygiene', | 2634 '-Wheader-hygiene', |
2635 | 2635 |
| 2636 # TODO(thakis): Add -Wfor-loop-analysis to -Wall in clang, remove this: |
| 2637 '-Wfor-loop-analysis', |
| 2638 |
| 2639 # TODO(thakis): Consider -Wloop-analysis (turns on |
| 2640 # -Wrange-loop-analysis too). |
| 2641 |
2636 # Don't die on dtoa code that uses a char as an array index. | 2642 # Don't die on dtoa code that uses a char as an array index. |
2637 # This is required solely for base/third_party/dmg_fp/dtoa.cc. | 2643 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
2638 '-Wno-char-subscripts', | 2644 '-Wno-char-subscripts', |
2639 | 2645 |
2640 # TODO(thakis): This used to be implied by -Wno-unused-function, | 2646 # TODO(thakis): This used to be implied by -Wno-unused-function, |
2641 # which we no longer use. Check if it makes sense to remove | 2647 # which we no longer use. Check if it makes sense to remove |
2642 # this as well. http://crbug.com/316352 | 2648 # this as well. http://crbug.com/316352 |
2643 '-Wno-unneeded-internal-declaration', | 2649 '-Wno-unneeded-internal-declaration', |
2644 | 2650 |
2645 # Warns on switches on enums that cover all enum values but | 2651 # Warns on switches on enums that cover all enum values but |
(...skipping 3736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6382 # settings in target dicts. SYMROOT is a special case, because many other | 6388 # settings in target dicts. SYMROOT is a special case, because many other |
6383 # Xcode variables depend on it, including variables such as | 6389 # Xcode variables depend on it, including variables such as |
6384 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6390 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6385 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6391 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6386 # files to appear (when present) in the UI as actual files and not red | 6392 # files to appear (when present) in the UI as actual files and not red |
6387 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6393 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6388 # and therefore SYMROOT, needs to be set at the project level. | 6394 # and therefore SYMROOT, needs to be set at the project level. |
6389 'SYMROOT': '<(DEPTH)/xcodebuild', | 6395 'SYMROOT': '<(DEPTH)/xcodebuild', |
6390 }, | 6396 }, |
6391 } | 6397 } |
OLD | NEW |