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 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3240 # when building with clang. This warning is triggered when the | 3240 # when building with clang. This warning is triggered when the |
3241 # override keyword is used via the OVERRIDE macro from | 3241 # override keyword is used via the OVERRIDE macro from |
3242 # base/compiler_specific.h. | 3242 # base/compiler_specific.h. |
3243 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', | 3243 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', |
3244 # Warn if automatic synthesis is triggered with | 3244 # Warn if automatic synthesis is triggered with |
3245 # the -Wobjc-missing-property-synthesis flag. | 3245 # the -Wobjc-missing-property-synthesis flag. |
3246 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', | 3246 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', |
3247 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 3247 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
3248 'WARNING_CFLAGS': [ | 3248 'WARNING_CFLAGS': [ |
3249 '-Wheader-hygiene', | 3249 '-Wheader-hygiene', |
| 3250 |
| 3251 # This warns on using ints as initializers for floats in |
| 3252 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), |
| 3253 # which happens in several places in chrome code. Not sure if |
| 3254 # this is worth fixing. |
| 3255 '-Wno-c++11-narrowing', |
| 3256 |
| 3257 # This warns about code like |"0x%08"NACL_PRIxPTR| -- with C++11 |
| 3258 # user-defined literals, this is now a string literal with a UD |
| 3259 # suffix. However, this is used heavily in NaCl code, so disable |
| 3260 # the warning for now. |
| 3261 '-Wno-reserved-user-defined-literal', |
| 3262 |
3250 # Don't die on dtoa code that uses a char as an array index. | 3263 # Don't die on dtoa code that uses a char as an array index. |
3251 # This is required solely for base/third_party/dmg_fp/dtoa.cc. | 3264 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
3252 '-Wno-char-subscripts', | 3265 '-Wno-char-subscripts', |
3253 # Clang spots more unused functions. | 3266 # Clang spots more unused functions. |
3254 '-Wno-unused-function', | 3267 '-Wno-unused-function', |
3255 # See comments on this flag higher up in this file. | |
3256 '-Wno-unnamed-type-template-args', | |
3257 # This (rightfully) complains about 'override', which we use | |
3258 # heavily. | |
3259 '-Wno-c++11-extensions', | |
3260 | 3268 |
3261 # Warns on switches on enums that cover all enum values but | 3269 # Warns on switches on enums that cover all enum values but |
3262 # also contain a default: branch. Chrome is full of that. | 3270 # also contain a default: branch. Chrome is full of that. |
3263 '-Wno-covered-switch-default', | 3271 '-Wno-covered-switch-default', |
3264 ], | 3272 ], |
| 3273 'OTHER_CPLUSPLUSFLAGS': [ |
| 3274 # gnu++11 instead of c++11 so that __ANSI_C__ doesn't get |
| 3275 # defined. (Else e.g. finite() in base/float_util.h needs to |
| 3276 # be isfinite() which doesn't exist on the android bots.) |
| 3277 # typeof() is also disabled in c++11 (but we could use |
| 3278 # decltype() instead). |
| 3279 # TODO(thakis): Use CLANG_CXX_LANGUAGE_STANDARD instead once all |
| 3280 # bots use xcode 4 -- http://crbug.com/147515). |
| 3281 # TODO(thakis): Eventually switch this to c++11 instead of |
| 3282 # gnu++11 (once typeof can be removed, which is blocked on c++11 |
| 3283 # being available everywhere). |
| 3284 '$(inherited)', '-std=gnu++11', |
| 3285 ], |
3265 }], | 3286 }], |
3266 ['clang==1 and clang_use_chrome_plugins==1', { | 3287 ['clang==1 and clang_use_chrome_plugins==1', { |
3267 'OTHER_CFLAGS': [ | 3288 'OTHER_CFLAGS': [ |
3268 '<@(clang_chrome_plugins_flags)', | 3289 '<@(clang_chrome_plugins_flags)', |
3269 ], | 3290 ], |
3270 }], | 3291 }], |
3271 ['clang==1 and clang_load!=""', { | 3292 ['clang==1 and clang_load!=""', { |
3272 'OTHER_CFLAGS': [ | 3293 'OTHER_CFLAGS': [ |
3273 '-Xclang', '-load', '-Xclang', '<(clang_load)', | 3294 '-Xclang', '-load', '-Xclang', '<(clang_load)', |
3274 ], | 3295 ], |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3888 # settings in target dicts. SYMROOT is a special case, because many other | 3909 # settings in target dicts. SYMROOT is a special case, because many other |
3889 # Xcode variables depend on it, including variables such as | 3910 # Xcode variables depend on it, including variables such as |
3890 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3911 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3891 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3912 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3892 # files to appear (when present) in the UI as actual files and not red | 3913 # files to appear (when present) in the UI as actual files and not red |
3893 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3914 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3894 # and therefore SYMROOT, needs to be set at the project level. | 3915 # and therefore SYMROOT, needs to be set at the project level. |
3895 'SYMROOT': '<(DEPTH)/xcodebuild', | 3916 'SYMROOT': '<(DEPTH)/xcodebuild', |
3896 }, | 3917 }, |
3897 } | 3918 } |
OLD | NEW |