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, |
11 'icu_use_data_file_flag%': 0, | 11 'icu_use_data_file_flag%': 0, |
12 'want_separate_host_toolset%': 1, | 12 'want_separate_host_toolset%': 1, |
13 }, | 13 }, |
14 'target_defaults': { | 14 'target_defaults': { |
15 'direct_dependent_settings': { | 15 'direct_dependent_settings': { |
16 'defines': [ | 16 'defines': [ |
17 # Tell ICU to not insert |using namespace icu;| into its headers, | 17 # Tell ICU to not insert |using namespace icu;| into its headers, |
18 # so that chrome's source explicitly has to use |icu::|. | 18 # so that chrome's source explicitly has to use |icu::|. |
19 'U_USING_ICU_NAMESPACE=0', | 19 'U_USING_ICU_NAMESPACE=0', |
20 # We don't use ICU plugins and dyload is only necessary for them. | 20 # We don't use ICU plugins and dyload is only necessary for them. |
21 # NaCl-related builds also fail looking for dlfcn.h when it's enabled. | 21 # NaCl-related builds also fail looking for dlfcn.h when it's enabled. |
22 'U_ENABLE_DYLOAD=0', | 22 'U_ENABLE_DYLOAD=0', |
23 ], | 23 ], |
24 }, | 24 }, |
25 'defines': [ | 25 'defines': [ |
26 'U_USING_ICU_NAMESPACE=0', | 26 'U_USING_ICU_NAMESPACE=0', |
27 'HAVE_DLOPEN=0', | 27 'HAVE_DLOPEN=0', |
28 # Only build encoding coverters and detectors necessary for HTML5. | 28 # Only build encoding coverters and detectors necessary for HTML5. |
29 'UCONFIG_NO_NON_HTML5_CONVERSION=1', | 29 'UCONFIG_NO_NON_HTML5_CONVERSION=1', |
| 30 # No dependency on the default platform encoding. |
| 31 # Will cut down the code size. |
| 32 'U_CHARSET_IS_UTF8=1', |
30 ], | 33 ], |
31 'conditions': [ | 34 'conditions': [ |
32 ['component=="static_library"', { | 35 ['component=="static_library"', { |
33 'defines': [ | 36 'defines': [ |
34 'U_STATIC_IMPLEMENTATION', | 37 'U_STATIC_IMPLEMENTATION', |
35 ], | 38 ], |
36 }], | 39 }], |
37 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 40 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
38 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | 41 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
39 (target_arch=="arm" or target_arch=="ia32" or \ | 42 (target_arch=="arm" or target_arch=="ia32" or \ |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 }, | 585 }, |
583 'includes': [ | 586 'includes': [ |
584 '../../build/shim_headers.gypi', | 587 '../../build/shim_headers.gypi', |
585 ], | 588 ], |
586 'toolsets': ['target'], | 589 'toolsets': ['target'], |
587 }, | 590 }, |
588 ], # targets | 591 ], # targets |
589 }], | 592 }], |
590 ], # conditions | 593 ], # conditions |
591 } | 594 } |
OLD | NEW |