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 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 'icu.gypi', | 7 'icu.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'use_system_icu%': 0, | 10 'use_system_icu%': 0, |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 'U_I18N_IMPLEMENTATION', | 148 'U_I18N_IMPLEMENTATION', |
149 ], | 149 ], |
150 'dependencies': [ | 150 'dependencies': [ |
151 'icuuc', | 151 'icuuc', |
152 ], | 152 ], |
153 'direct_dependent_settings': { | 153 'direct_dependent_settings': { |
154 'include_dirs': [ | 154 'include_dirs': [ |
155 'source/i18n', | 155 'source/i18n', |
156 ], | 156 ], |
157 }, | 157 }, |
| 158 # Since ICU wants to internally use its own deprecated APIs, don't |
| 159 # complain about it. |
| 160 'cflags': [ |
| 161 '-Wno-deprecated-declarations', |
| 162 ], |
| 163 'cflags_cc': [ |
| 164 '-frtti', |
| 165 ], |
| 166 'xcode_settings': { |
| 167 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti |
| 168 }, |
| 169 'msvs_settings': { |
| 170 'VCCLCompilerTool': { |
| 171 'RuntimeTypeInfo': 'true', |
| 172 }, |
| 173 }, |
158 'conditions': [ | 174 'conditions': [ |
159 [ 'use_system_icu==1 and want_separate_host_toolset==1', { | 175 [ 'use_system_icu==1 and want_separate_host_toolset==1', { |
160 'toolsets': ['host'], | 176 'toolsets': ['host'], |
161 }], | 177 }], |
162 [ 'use_system_icu==0 and want_separate_host_toolset==1', { | 178 [ 'use_system_icu==0 and want_separate_host_toolset==1', { |
163 'toolsets': ['host', 'target'], | 179 'toolsets': ['host', 'target'], |
164 }], | 180 }], |
165 [ 'use_system_icu==0 and want_separate_host_toolset==0', { | 181 [ 'use_system_icu==0 and want_separate_host_toolset==0', { |
166 'toolsets': ['target'], | 182 'toolsets': ['target'], |
167 }], | 183 }], |
168 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', { | |
169 # Since ICU wants to internally use its own deprecated APIs, don't | |
170 # complain about it. | |
171 'cflags': [ | |
172 '-Wno-deprecated-declarations', | |
173 ], | |
174 'cflags_cc': [ | |
175 '-frtti', | |
176 ], | |
177 }], | |
178 ['OS == "mac" or OS == "ios"', { | |
179 'xcode_settings': { | |
180 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti | |
181 }, | |
182 }], | |
183 ['OS == "win"', { | |
184 'msvs_settings': { | |
185 'VCCLCompilerTool': { | |
186 'RuntimeTypeInfo': 'true', | |
187 }, | |
188 } | |
189 }], | |
190 ['clang==1', { | 184 ['clang==1', { |
191 'xcode_settings': { | 185 'xcode_settings': { |
192 'WARNING_CFLAGS': [ | 186 'WARNING_CFLAGS': [ |
193 # ICU uses its own deprecated functions. | 187 # ICU uses its own deprecated functions. |
194 '-Wno-deprecated-declarations', | 188 '-Wno-deprecated-declarations', |
195 # ICU prefers `a && b || c` over `(a && b) || c`. | 189 # ICU prefers `a && b || c` over `(a && b) || c`. |
196 '-Wno-logical-op-parentheses', | 190 '-Wno-logical-op-parentheses', |
197 # ICU has some `unsigned < 0` checks. | 191 # ICU has some `unsigned < 0` checks. |
198 '-Wno-tautological-compare', | 192 '-Wno-tautological-compare', |
199 # uspoof.h has a U_NAMESPACE_USE macro. That's a bug, | 193 # uspoof.h has a U_NAMESPACE_USE macro. That's a bug, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 'source/common', | 249 'source/common', |
256 ], | 250 ], |
257 'conditions': [ | 251 'conditions': [ |
258 [ 'component=="static_library"', { | 252 [ 'component=="static_library"', { |
259 'defines': [ | 253 'defines': [ |
260 'U_STATIC_IMPLEMENTATION', | 254 'U_STATIC_IMPLEMENTATION', |
261 ], | 255 ], |
262 }], | 256 }], |
263 ], | 257 ], |
264 }, | 258 }, |
| 259 'cflags': [ |
| 260 # Since ICU wants to internally use its own deprecated APIs, |
| 261 # don't complain about it. |
| 262 '-Wno-deprecated-declarations', |
| 263 '-Wno-unused-function', |
| 264 ], |
| 265 'cflags_cc': [ |
| 266 '-frtti', |
| 267 ], |
| 268 'xcode_settings': { |
| 269 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti |
| 270 }, |
| 271 'msvs_settings': { |
| 272 'VCCLCompilerTool': { |
| 273 'RuntimeTypeInfo': 'true', |
| 274 }, |
| 275 }, |
265 'conditions': [ | 276 'conditions': [ |
266 [ 'use_system_icu==1 and want_separate_host_toolset==1', { | 277 [ 'use_system_icu==1 and want_separate_host_toolset==1', { |
267 'toolsets': ['host'], | 278 'toolsets': ['host'], |
268 }], | 279 }], |
269 [ 'use_system_icu==0 and want_separate_host_toolset==1', { | 280 [ 'use_system_icu==0 and want_separate_host_toolset==1', { |
270 'toolsets': ['host', 'target'], | 281 'toolsets': ['host', 'target'], |
271 }], | 282 }], |
272 [ 'use_system_icu==0 and want_separate_host_toolset==0', { | 283 [ 'use_system_icu==0 and want_separate_host_toolset==0', { |
273 'toolsets': ['target'], | 284 'toolsets': ['target'], |
274 }], | 285 }], |
275 [ 'OS == "win"', { | 286 [ 'OS == "win"', { |
276 'sources': [ | 287 'sources': [ |
277 'source/stubdata/stubdata.c', | 288 'source/stubdata/stubdata.c', |
278 ], | 289 ], |
279 }], | 290 }], |
280 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', { | |
281 'cflags': [ | |
282 # Since ICU wants to internally use its own deprecated APIs, | |
283 # don't complain about it. | |
284 '-Wno-deprecated-declarations', | |
285 '-Wno-unused-function', | |
286 ], | |
287 'cflags_cc': [ | |
288 '-frtti', | |
289 ], | |
290 }], | |
291 ['OS == "mac" or OS == "ios"', { | |
292 'xcode_settings': { | |
293 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti | |
294 }, | |
295 }], | |
296 ['OS == "win"', { | |
297 'msvs_settings': { | |
298 'VCCLCompilerTool': { | |
299 'RuntimeTypeInfo': 'true', | |
300 }, | |
301 }, | |
302 }], | |
303 ['OS == "android" and use_system_stlport == 1', { | 291 ['OS == "android" and use_system_stlport == 1', { |
304 'target_conditions': [ | 292 'target_conditions': [ |
305 ['_toolset == "target"', { | 293 ['_toolset == "target"', { |
306 # ICU requires RTTI, which is not present in the system's | 294 # ICU requires RTTI, which is not present in the system's |
307 # stlport, so we have to include gabi++. | 295 # stlport, so we have to include gabi++. |
308 'include_dirs': [ | 296 'include_dirs': [ |
309 '<(android_src)/abi/cpp/include', | 297 '<(android_src)/abi/cpp/include', |
310 ], | 298 ], |
311 'link_settings': { | 299 'link_settings': { |
312 'libraries': [ | 300 'libraries': [ |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 }, | 568 }, |
581 'includes': [ | 569 'includes': [ |
582 '../../build/shim_headers.gypi', | 570 '../../build/shim_headers.gypi', |
583 ], | 571 ], |
584 'toolsets': ['target'], | 572 'toolsets': ['target'], |
585 }, | 573 }, |
586 ], # targets | 574 ], # targets |
587 }], | 575 }], |
588 ], # conditions | 576 ], # conditions |
589 } | 577 } |
OLD | NEW |