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 26 matching lines...) Loading... |
37 ['_toolset=="host"', { | 37 ['_toolset=="host"', { |
38 'cflags': [ '-m32' ], | 38 'cflags': [ '-m32' ], |
39 'ldflags': [ '-m32' ], | 39 'ldflags': [ '-m32' ], |
40 'asflags': [ '-32' ], | 40 'asflags': [ '-32' ], |
41 'xcode_settings': { | 41 'xcode_settings': { |
42 'ARCHS': [ 'i386' ], | 42 'ARCHS': [ 'i386' ], |
43 }, | 43 }, |
44 }], | 44 }], |
45 ], | 45 ], |
46 }], | 46 }], |
| 47 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| 48 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
| 49 (target_arch=="arm64" or target_arch=="x64" or \ |
| 50 target_arch=="mipsel64")', { |
| 51 'target_conditions': [ |
| 52 ['_toolset=="host"', { |
| 53 'cflags': [ '-m64' ], |
| 54 'ldflags': [ '-m64' ], |
| 55 'asflags': [ '-64' ], |
| 56 'xcode_settings': { |
| 57 'ARCHS': [ 'x86_64' ], |
| 58 }, |
| 59 }], |
| 60 ], |
| 61 }], |
47 ], | 62 ], |
48 'include_dirs': [ | 63 'include_dirs': [ |
49 'source/common', | 64 'source/common', |
50 'source/i18n', | 65 'source/i18n', |
51 ], | 66 ], |
52 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267], | 67 'msvs_disabled_warnings': [4005, 4068, 4355, 4996, 4267], |
53 }, | 68 }, |
54 'conditions': [ | 69 'conditions': [ |
55 ['use_system_icu==0 or want_separate_host_toolset==1', { | 70 ['use_system_icu==0 or want_separate_host_toolset==1', { |
56 'targets': [ | 71 'targets': [ |
(...skipping 31 matching lines...) Loading... |
88 'windows/icudt.dll', | 103 'windows/icudt.dll', |
89 ], | 104 ], |
90 }, | 105 }, |
91 ], | 106 ], |
92 }], | 107 }], |
93 [ 'icu_use_data_file_flag==1', { | 108 [ 'icu_use_data_file_flag==1', { |
94 # Remove any assembly data file. | 109 # Remove any assembly data file. |
95 'sources/': [['exclude', 'icudtl_dat']], | 110 'sources/': [['exclude', 'icudtl_dat']], |
96 # Compile in the stub data symbol. | 111 # Compile in the stub data symbol. |
97 'sources': ['source/stubdata/stubdata.c'], | 112 'sources': ['source/stubdata/stubdata.c'], |
98 | 113 |
99 # Make sure any binary depending on this gets the data file. | 114 # Make sure any binary depending on this gets the data file. |
100 'conditions': [ | 115 'conditions': [ |
101 ['OS != "ios"', { | 116 ['OS != "ios"', { |
102 'copies': [{ | 117 'copies': [{ |
103 'destination': '<(PRODUCT_DIR)', | 118 'destination': '<(PRODUCT_DIR)', |
104 'conditions': [ | 119 'conditions': [ |
105 ['OS == "android"', { | 120 ['OS == "android"', { |
106 'files': [ | 121 'files': [ |
107 'android/icudtl.dat', | 122 'android/icudtl.dat', |
108 ], | 123 ], |
109 } , { # else: OS != android | 124 } , { # else: OS != android |
110 'files': [ | 125 'files': [ |
111 'source/data/in/icudtl.dat', | 126 'source/data/in/icudtl.dat', |
112 ], | 127 ], |
113 }], | 128 }], |
114 ], | 129 ], |
115 }], | 130 }], |
116 } , { # else: OS=="ios" | 131 } , { # else: OS=="ios" |
117 'link_settings': { | 132 'link_settings': { |
118 'mac_bundle_resources': [ | 133 'mac_bundle_resources': [ |
119 'source/data/in/icudtl.dat', | 134 'source/data/in/icudtl.dat', |
120 ], | 135 ], |
121 }, | 136 }, |
122 }], # OS!=ios | 137 }], # OS!=ios |
123 ], # conditions | 138 ], # conditions |
124 }], # icu_use_data_file_flag | 139 }], # icu_use_data_file_flag |
125 ], # conditions | 140 ], # conditions |
126 'target_conditions': [ | 141 'target_conditions': [ |
127 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' | 142 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' |
128 '(OS == "android" and (_toolset != "host" or host_os != "linux"))
or ' | 143 '(OS == "android" and (_toolset != "host" or host_os != "linux"))
or ' |
129 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { | 144 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { |
130 'sources!': ['linux/icudtl_dat.S'], | 145 'sources!': ['linux/icudtl_dat.S'], |
131 }], | 146 }], |
132 [ 'OS != "android" or _toolset == "host"', { | 147 [ 'OS != "android" or _toolset == "host"', { |
133 'sources!': ['android/icudtl_dat.S'], | 148 'sources!': ['android/icudtl_dat.S'], |
134 }], | 149 }], |
(...skipping 437 matching lines...) Loading... |
572 }, | 587 }, |
573 'includes': [ | 588 'includes': [ |
574 '../../build/shim_headers.gypi', | 589 '../../build/shim_headers.gypi', |
575 ], | 590 ], |
576 'toolsets': ['target'], | 591 'toolsets': ['target'], |
577 }, | 592 }, |
578 ], # targets | 593 ], # targets |
579 }], | 594 }], |
580 ], # conditions | 595 ], # conditions |
581 } | 596 } |
OLD | NEW |