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 # This warns on using ints as initializers for floats in | |
Mark Mentovai
2012/12/04 03:52:08
I find these comments easier to read and it makes
| |
3251 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), | |
3252 # which happens in several places in chrome code. Not sure if | |
3253 # this is worth fixing. | |
3254 '-Wno-c++11-narrowing', | |
3255 # This warns about code like |"0x%08"NACL_PRIxPTR| -- with C++11 | |
3256 # user-defined literals, this is now a string literal with a UD | |
3257 # suffix. However, this is used heavily in NaCl code, so disable | |
3258 # the warning for now. | |
3259 '-Wno-reserved-user-defined-literal', | |
3260 | |
3250 # Don't die on dtoa code that uses a char as an array index. | 3261 # 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. | 3262 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
3252 '-Wno-char-subscripts', | 3263 '-Wno-char-subscripts', |
3253 # Clang spots more unused functions. | 3264 # Clang spots more unused functions. |
3254 '-Wno-unused-function', | 3265 '-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 | 3266 |
3261 # Warns on switches on enums that cover all enum values but | 3267 # Warns on switches on enums that cover all enum values but |
3262 # also contain a default: branch. Chrome is full of that. | 3268 # also contain a default: branch. Chrome is full of that. |
3263 '-Wno-covered-switch-default', | 3269 '-Wno-covered-switch-default', |
3264 ], | 3270 ], |
3271 'OTHER_CPLUSPLUSFLAGS': [ | |
3272 # gnu++11 instead of c++11 so that __ANSI_C__ doesn't get | |
3273 # defined. (Else e.g. finite() in base/float_util.h needs to | |
3274 # be isfinite() which doesn't exist on the android bots.) | |
3275 # typeof() is also disabled in c++11 (but we could use | |
3276 # decltype() instead). | |
Mark Mentovai
2012/12/04 03:52:08
Ultimately, I’d rather these couple of things and
| |
3277 # TODO(thakis): Use CLANG_CXX_LANGUAGE_STANDARD instead once all | |
3278 # bots use xcode 4 -- http://crbug.com/147515). | |
3279 '$(inherited)', '-std=gnu++11', | |
3280 ], | |
3265 }], | 3281 }], |
3266 ['clang==1 and clang_use_chrome_plugins==1', { | 3282 ['clang==1 and clang_use_chrome_plugins==1', { |
3267 'OTHER_CFLAGS': [ | 3283 'OTHER_CFLAGS': [ |
3268 '<@(clang_chrome_plugins_flags)', | 3284 '<@(clang_chrome_plugins_flags)', |
3269 ], | 3285 ], |
3270 }], | 3286 }], |
3271 ['clang==1 and clang_load!=""', { | 3287 ['clang==1 and clang_load!=""', { |
3272 'OTHER_CFLAGS': [ | 3288 'OTHER_CFLAGS': [ |
3273 '-Xclang', '-load', '-Xclang', '<(clang_load)', | 3289 '-Xclang', '-load', '-Xclang', '<(clang_load)', |
3274 ], | 3290 ], |
(...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 | 3904 # settings in target dicts. SYMROOT is a special case, because many other |
3889 # Xcode variables depend on it, including variables such as | 3905 # Xcode variables depend on it, including variables such as |
3890 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3906 # 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 | 3907 # 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 | 3908 # 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, | 3909 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3894 # and therefore SYMROOT, needs to be set at the project level. | 3910 # and therefore SYMROOT, needs to be set at the project level. |
3895 'SYMROOT': '<(DEPTH)/xcodebuild', | 3911 'SYMROOT': '<(DEPTH)/xcodebuild', |
3896 }, | 3912 }, |
3897 } | 3913 } |
OLD | NEW |