| 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 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3123 }], | 3123 }], |
| 3124 ['clang==1', { | 3124 ['clang==1', { |
| 3125 'cflags!': [ | 3125 'cflags!': [ |
| 3126 # Clang does not support the following options. | 3126 # Clang does not support the following options. |
| 3127 '-mthumb-interwork', | 3127 '-mthumb-interwork', |
| 3128 '-finline-limit=64', | 3128 '-finline-limit=64', |
| 3129 '-fno-tree-sra', | 3129 '-fno-tree-sra', |
| 3130 '-fuse-ld=gold', | 3130 '-fuse-ld=gold', |
| 3131 '-Wno-psabi', | 3131 '-Wno-psabi', |
| 3132 ], | 3132 ], |
| 3133 'ldflags!': [ |
| 3134 # Clang does not support the following options. |
| 3135 '-fuse-ld=gold', |
| 3136 ], |
| 3133 }], | 3137 }], |
| 3134 ], | 3138 ], |
| 3135 }], | 3139 }], |
| 3136 ], | 3140 ], |
| 3137 }], | 3141 }], |
| 3138 ], | 3142 ], |
| 3139 }], | 3143 }], |
| 3140 ['target_arch=="mipsel"', { | 3144 ['target_arch=="mipsel"', { |
| 3141 'target_conditions': [ | 3145 'target_conditions': [ |
| 3142 ['_toolset=="target"', { | 3146 ['_toolset=="target"', { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3207 # this is worth fixing. | 3211 # this is worth fixing. |
| 3208 '-Wno-c++11-narrowing', | 3212 '-Wno-c++11-narrowing', |
| 3209 | 3213 |
| 3210 # TODO(thakis): Remove, http://crbug.com/263960 | 3214 # TODO(thakis): Remove, http://crbug.com/263960 |
| 3211 '-Wno-reserved-user-defined-literal', | 3215 '-Wno-reserved-user-defined-literal', |
| 3212 | 3216 |
| 3213 # Clang considers the `register` keyword as deprecated, but e.g. | 3217 # Clang considers the `register` keyword as deprecated, but e.g. |
| 3214 # code generated by flex (used in angle) contains that keyword. | 3218 # code generated by flex (used in angle) contains that keyword. |
| 3215 # http://crbug.com/255186 | 3219 # http://crbug.com/255186 |
| 3216 '-Wno-deprecated-register', | 3220 '-Wno-deprecated-register', |
| 3221 |
| 3222 # TODO(hans): Remove once we've cleaned up the warnings. |
| 3223 '-Wno-unused-const-variable', |
| 3224 |
| 3225 # This warns about auto_ptr<>, used in third-party code. |
| 3226 '-Wno-deprecated-declarations', |
| 3217 ], | 3227 ], |
| 3218 'cflags!': [ | 3228 'cflags!': [ |
| 3219 # Clang doesn't seem to know know this flag. | 3229 # Clang doesn't seem to know know this flag. |
| 3220 '-mfpmath=sse', | 3230 '-mfpmath=sse', |
| 3221 ], | 3231 ], |
| 3222 'cflags_cc': [ | 3232 'cflags_cc': [ |
| 3223 # See the comment in the Mac section for what it takes to move | 3233 # See the comment in the Mac section for what it takes to move |
| 3224 # this to -std=c++11. | 3234 # this to -std=c++11. |
| 3225 '-std=gnu++11', | 3235 '-std=gnu++11', |
| 3226 ], | 3236 ], |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3910 # also contain a default: branch. Chrome is full of that. | 3920 # also contain a default: branch. Chrome is full of that. |
| 3911 '-Wno-covered-switch-default', | 3921 '-Wno-covered-switch-default', |
| 3912 | 3922 |
| 3913 # Warns when a const char[] is converted to bool. | 3923 # Warns when a const char[] is converted to bool. |
| 3914 '-Wstring-conversion', | 3924 '-Wstring-conversion', |
| 3915 | 3925 |
| 3916 # Clang considers the `register` keyword as deprecated, but e.g. | 3926 # Clang considers the `register` keyword as deprecated, but e.g. |
| 3917 # code generated by flex (used in angle) contains that keyword. | 3927 # code generated by flex (used in angle) contains that keyword. |
| 3918 # http://crbug.com/255186 | 3928 # http://crbug.com/255186 |
| 3919 '-Wno-deprecated-register', | 3929 '-Wno-deprecated-register', |
| 3930 |
| 3931 # TODO(hans): Remove once we've cleaned up the warnings. |
| 3932 '-Wno-unused-const-variable', |
| 3933 |
| 3934 # This warns about auto_ptr<>, used in third-party code. |
| 3935 '-Wno-deprecated-declarations', |
| 3920 ], | 3936 ], |
| 3921 }], | 3937 }], |
| 3922 ['clang==1 and clang_use_chrome_plugins==1', { | 3938 ['clang==1 and clang_use_chrome_plugins==1', { |
| 3923 'OTHER_CFLAGS': [ | 3939 'OTHER_CFLAGS': [ |
| 3924 '<@(clang_chrome_plugins_flags)', | 3940 '<@(clang_chrome_plugins_flags)', |
| 3925 ], | 3941 ], |
| 3926 }], | 3942 }], |
| 3927 ['clang==1 and clang_load!=""', { | 3943 ['clang==1 and clang_load!=""', { |
| 3928 'OTHER_CFLAGS': [ | 3944 'OTHER_CFLAGS': [ |
| 3929 '-Xclang', '-load', '-Xclang', '<(clang_load)', | 3945 '-Xclang', '-load', '-Xclang', '<(clang_load)', |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4737 # settings in target dicts. SYMROOT is a special case, because many other | 4753 # settings in target dicts. SYMROOT is a special case, because many other |
| 4738 # Xcode variables depend on it, including variables such as | 4754 # Xcode variables depend on it, including variables such as |
| 4739 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4755 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4740 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4756 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4741 # files to appear (when present) in the UI as actual files and not red | 4757 # files to appear (when present) in the UI as actual files and not red |
| 4742 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4758 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4743 # and therefore SYMROOT, needs to be set at the project level. | 4759 # and therefore SYMROOT, needs to be set at the project level. |
| 4744 'SYMROOT': '<(DEPTH)/xcodebuild', | 4760 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4745 }, | 4761 }, |
| 4746 } | 4762 } |
| OLD | NEW |