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 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3739 '-Wno-unused-function', | 3739 '-Wno-unused-function', |
3740 | 3740 |
3741 # Warns on switches on enums that cover all enum values but | 3741 # Warns on switches on enums that cover all enum values but |
3742 # also contain a default: branch. Chrome is full of that. | 3742 # also contain a default: branch. Chrome is full of that. |
3743 '-Wno-covered-switch-default', | 3743 '-Wno-covered-switch-default', |
3744 | 3744 |
3745 # Warns when a const char[] is converted to bool. | 3745 # Warns when a const char[] is converted to bool. |
3746 '-Wstring-conversion', | 3746 '-Wstring-conversion', |
3747 ], | 3747 ], |
3748 'OTHER_CPLUSPLUSFLAGS': [ | 3748 'OTHER_CPLUSPLUSFLAGS': [ |
3749 # gnu++11 instead of c++11 so that __ANSI_C__ doesn't get | 3749 # gnu++11 instead of c++11 is needed because some code uses |
3750 # defined. (Else e.g. finite() in base/float_util.h needs to | 3750 # typeof() (a GNU extension). |
3751 # be isfinite() which doesn't exist on the android bots.) | |
3752 # typeof() is also disabled in c++11 (but we could use | |
danakj
2013/05/09 00:02:24
Oh, it mentioned typeof() here, but I see it's als
| |
3753 # decltype() instead). | |
3754 # TODO(thakis): Use CLANG_CXX_LANGUAGE_STANDARD instead once all | |
3755 # bots use xcode 4 -- http://crbug.com/147515). | |
3756 # TODO(thakis): Eventually switch this to c++11 instead of | 3751 # TODO(thakis): Eventually switch this to c++11 instead of |
3757 # gnu++11 (once typeof can be removed, which is blocked on c++11 | 3752 # gnu++11 (once typeof can be removed, which is blocked on c++11 |
3758 # being available everywhere). | 3753 # being available everywhere). |
3754 # TODO(thakis): Use CLANG_CXX_LANGUAGE_STANDARD instead once all | |
3755 # bots use xcode 4 -- http://crbug.com/147515). | |
3759 '$(inherited)', '-std=gnu++11', | 3756 '$(inherited)', '-std=gnu++11', |
3760 ], | 3757 ], |
3761 }], | 3758 }], |
3762 # TODO(thakis): Reenable plugins with once | 3759 # TODO(thakis): Reenable plugins with once |
3763 # tools/clang/scripts/update.sh no longer pins clang to an ancient | 3760 # tools/clang/scripts/update.sh no longer pins clang to an ancient |
3764 # version for asan (http://crbug.com/170629) | 3761 # version for asan (http://crbug.com/170629) |
3765 ['clang==1 and clang_use_chrome_plugins==1 and asan!=1', { | 3762 ['clang==1 and clang_use_chrome_plugins==1 and asan!=1', { |
3766 'OTHER_CFLAGS': [ | 3763 'OTHER_CFLAGS': [ |
3767 '<@(clang_chrome_plugins_flags)', | 3764 '<@(clang_chrome_plugins_flags)', |
3768 ], | 3765 ], |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4458 # settings in target dicts. SYMROOT is a special case, because many other | 4455 # settings in target dicts. SYMROOT is a special case, because many other |
4459 # Xcode variables depend on it, including variables such as | 4456 # Xcode variables depend on it, including variables such as |
4460 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4457 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4461 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4458 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4462 # files to appear (when present) in the UI as actual files and not red | 4459 # files to appear (when present) in the UI as actual files and not red |
4463 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4460 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4464 # and therefore SYMROOT, needs to be set at the project level. | 4461 # and therefore SYMROOT, needs to be set at the project level. |
4465 'SYMROOT': '<(DEPTH)/xcodebuild', | 4462 'SYMROOT': '<(DEPTH)/xcodebuild', |
4466 }, | 4463 }, |
4467 } | 4464 } |
OLD | NEW |