Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: build/common.gypi

Issue 13936005: Enable C++11 mode for iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after
3805 }], # OS=="mac" 3805 }], # OS=="mac"
3806 ['OS=="ios"', { 3806 ['OS=="ios"', {
3807 'target_defaults': { 3807 'target_defaults': {
3808 'xcode_settings' : { 3808 'xcode_settings' : {
3809 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 3809 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
3810 3810
3811 # This next block is mostly common with the 'mac' section above, 3811 # This next block is mostly common with the 'mac' section above,
3812 # but keying off (or setting) 'clang' isn't valid for iOS as it 3812 # but keying off (or setting) 'clang' isn't valid for iOS as it
3813 # also seems to mean using the custom build of clang. 3813 # also seems to mean using the custom build of clang.
3814 3814
3815 # TODO(stuartmorgan): switch to c++0x (see TODOs in the clang
3816 # section above).
3817 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x',
qsr 2013/04/10 13:45:33 How do we plan to be notified when we need to chan
3815 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default 3818 # Don't use -Wc++0x-extensions, which Xcode 4 enables by default
3816 # when building with clang. This warning is triggered when the 3819 # when building with clang. This warning is triggered when the
3817 # override keyword is used via the OVERRIDE macro from 3820 # override keyword is used via the OVERRIDE macro from
3818 # base/compiler_specific.h. 3821 # base/compiler_specific.h.
3819 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO', 3822 'CLANG_WARN_CXX0X_EXTENSIONS': 'NO',
3820 # Warn if automatic synthesis is triggered with 3823 # Warn if automatic synthesis is triggered with
3821 # the -Wobjc-missing-property-synthesis flag. 3824 # the -Wobjc-missing-property-synthesis flag.
3822 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', 3825 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
3823 'WARNING_CFLAGS': [ 3826 'WARNING_CFLAGS': [
3824 '-Wheader-hygiene', 3827 '-Wheader-hygiene',
3825 # Don't die on dtoa code that uses a char as an array index. 3828 # Don't die on dtoa code that uses a char as an array index.
3826 # This is required solely for base/third_party/dmg_fp/dtoa.cc. 3829 # This is required solely for base/third_party/dmg_fp/dtoa.cc.
3827 '-Wno-char-subscripts', 3830 '-Wno-char-subscripts',
3828 # Clang spots more unused functions. 3831 # Clang spots more unused functions.
3829 '-Wno-unused-function', 3832 '-Wno-unused-function',
3830 # See comments on this flag higher up in this file. 3833 # See comments on this flag higher up in this file.
3831 '-Wno-unnamed-type-template-args', 3834 '-Wno-unnamed-type-template-args',
3832 # This (rightfully) complains about 'override', which we use 3835 # Match OS X clang C++11 warning settings.
3833 # heavily. 3836 '-Wno-c++11-narrowing',
3834 '-Wno-c++11-extensions', 3837 '-Wno-reserved-user-defined-literal',
3835 ], 3838 ],
3836 }, 3839 },
3837 'target_conditions': [ 3840 'target_conditions': [
3838 ['_type=="executable"', { 3841 ['_type=="executable"', {
3839 'configurations': { 3842 'configurations': {
3840 'Release_Base': { 3843 'Release_Base': {
3841 'xcode_settings': { 3844 'xcode_settings': {
3842 'DEPLOYMENT_POSTPROCESSING': 'YES', 3845 'DEPLOYMENT_POSTPROCESSING': 'YES',
3843 'STRIP_INSTALLED_PRODUCT': 'YES', 3846 'STRIP_INSTALLED_PRODUCT': 'YES',
3844 }, 3847 },
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
4227 # settings in target dicts. SYMROOT is a special case, because many other 4230 # settings in target dicts. SYMROOT is a special case, because many other
4228 # Xcode variables depend on it, including variables such as 4231 # Xcode variables depend on it, including variables such as
4229 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4232 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4230 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4233 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4231 # files to appear (when present) in the UI as actual files and not red 4234 # files to appear (when present) in the UI as actual files and not red
4232 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4235 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4233 # and therefore SYMROOT, needs to be set at the project level. 4236 # and therefore SYMROOT, needs to be set at the project level.
4234 'SYMROOT': '<(DEPTH)/xcodebuild', 4237 'SYMROOT': '<(DEPTH)/xcodebuild',
4235 }, 4238 },
4236 } 4239 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698