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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 }], | 111 }], |
112 ], | 112 ], |
113 }], | 113 }], |
114 ], | 114 ], |
115 }], | 115 }], |
116 }, | 116 }, |
117 { | 117 { |
118 'target_name': 'data_assembly', | 118 'target_name': 'data_assembly', |
119 'type': 'none', | 119 'type': 'none', |
120 'conditions': [ | 120 'conditions': [ |
121 [ 'target_arch=="mips" or target_arch=="mips64"', { | 121 [ 'target_arch=="mips" or target_arch=="mips64"', { # Big Endian |
122 'data_assembly_sources': [ | |
123 'common/icudtb.dat', | |
124 ], | |
125 'data_assembly_inputs': [ | 122 'data_assembly_inputs': [ |
126 'scripts/make_data_assembly.py', | |
127 'common/icudtb.dat', | 123 'common/icudtb.dat', |
128 ], | 124 ], |
129 'data_assembly_outputs': [ | 125 'data_assembly_outputs': [ |
130 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', | 126 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', |
131 ], | 127 ], |
132 }], | 128 }, { # Little Endian |
133 [ 'target_arch!="mips" and target_arch!="mips64"', { | |
134 'data_assembly_sources': [ | |
135 'common/icudtl.dat', | |
136 ], | |
137 'data_assembly_inputs': [ | |
138 'scripts/make_data_assembly.py', | |
139 'common/icudtl.dat', | |
140 ], | |
141 'data_assembly_outputs': [ | 129 'data_assembly_outputs': [ |
142 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', | 130 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', |
143 ], | 131 ], |
| 132 'conditions': [ |
| 133 ['OS == "android"', { |
| 134 'data_assembly_inputs': [ |
| 135 'android/icudtl.dat', |
| 136 ], |
| 137 } , { # else: OS!="android" |
| 138 'data_assembly_inputs': [ |
| 139 'common/icudtl.dat', |
| 140 ], |
| 141 }], # OS==android |
| 142 ], |
144 }], | 143 }], |
145 ], | 144 ], |
146 'sources': [ | 145 'sources': [ |
147 '<@(_data_assembly_sources)', | 146 '<@(_data_assembly_inputs)', |
148 ], | 147 ], |
149 'actions': [ | 148 'actions': [ |
150 { | 149 { |
151 'action_name': 'make_data_assembly', | 150 'action_name': 'make_data_assembly', |
152 'inputs': [ | 151 'inputs': [ |
| 152 'scripts/make_data_assembly.py', |
153 '<@(_data_assembly_inputs)', | 153 '<@(_data_assembly_inputs)', |
154 ], | 154 ], |
155 'outputs': [ | 155 'outputs': [ |
156 '<@(_data_assembly_outputs)', | 156 '<@(_data_assembly_outputs)', |
157 ], | 157 ], |
158 'action': ['python', '<@(_inputs)', '<@(_outputs)'], | 158 'target_conditions': [ |
| 159 [ 'OS == "mac" or OS == "ios" or ' |
| 160 '((OS == "android" or OS == "qnx") and ' |
| 161 '_toolset == "host" and host_os == "mac")', { |
| 162 'action': ['python', '<@(_inputs)', '<@(_outputs)', '--mac'], |
| 163 } , { |
| 164 'action': ['python', '<@(_inputs)', '<@(_outputs)'], |
| 165 }], |
| 166 ], |
159 }, | 167 }, |
160 ], | 168 ], |
161 }, | 169 }, |
162 { | 170 { |
163 'target_name': 'icudata', | 171 'target_name': 'icudata', |
164 'type': 'static_library', | 172 'type': 'static_library', |
165 'defines': [ | 173 'defines': [ |
166 'U_HIDE_DATA_SYMBOL', | 174 'U_HIDE_DATA_SYMBOL', |
167 ], | 175 ], |
168 'dependencies': [ | 176 'dependencies': [ |
169 'data_assembly#target', | 177 'data_assembly#target', |
170 ], | 178 ], |
171 'sources': [ | 179 'sources': [ |
172 # These are hand-generated, but will do for now. The linux | |
173 # version is an identical copy of the (mac) icudtl_dat.S file, | |
174 # modulo removal of the .private_extern and .const directives and | |
175 # with no leading underscore on the icudt52_dat symbol. | |
176 'android/icudtl_dat.S', | |
177 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', | 180 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', |
178 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', | 181 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', |
179 'mac/icudtl_dat.S', | |
180 ], | 182 ], |
181 'conditions': [ | 183 'conditions': [ |
182 [ 'target_arch=="mips" or target_arch=="mips64"', { | 184 [ 'target_arch=="mips" or target_arch=="mips64"', { |
183 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_da
t.S'], | 185 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_da
t.S'], |
184 }], | 186 }, { |
185 [ 'target_arch!="mips" and target_arch!="mips64"', { | |
186 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_da
t.S'], | 187 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_da
t.S'], |
187 }], | 188 }], |
188 [ 'use_system_icu==1 and want_separate_host_toolset==1', { | 189 [ 'use_system_icu==1 and want_separate_host_toolset==1', { |
189 'toolsets': ['host'], | 190 'toolsets': ['host'], |
190 }], | 191 }], |
191 [ 'use_system_icu==0 and want_separate_host_toolset==1', { | 192 [ 'use_system_icu==0 and want_separate_host_toolset==1', { |
192 'toolsets': ['host', 'target'], | 193 'toolsets': ['host', 'target'], |
193 }], | 194 }], |
194 [ 'use_system_icu==0 and want_separate_host_toolset==0', { | 195 [ 'use_system_icu==0 and want_separate_host_toolset==0', { |
195 'toolsets': ['target'], | 196 'toolsets': ['target'], |
196 }], | 197 }], |
197 [ 'OS == "win" and icu_use_data_file_flag==0', { | 198 [ 'OS == "win" and icu_use_data_file_flag==0', { |
198 'type': 'none', | 199 'type': 'none', |
199 'dependencies!': [ | 200 'dependencies!': [ |
200 'data_assembly#target', | 201 'data_assembly#target', |
201 ], | 202 ], |
202 'copies': [ | 203 'copies': [ |
203 { | 204 { |
204 'destination': '<(PRODUCT_DIR)', | 205 'destination': '<(PRODUCT_DIR)', |
205 'files': [ | 206 'files': [ |
206 'windows/icudt.dll', | 207 'windows/icudt.dll', |
207 ], | 208 ], |
208 }, | 209 }, |
209 ], | 210 ], |
210 }], | 211 }], |
211 [ '(OS == "mac" or OS == "ios") and icu_use_data_file_flag==0', { | |
212 'type': 'none', | |
213 'dependencies!': [ | |
214 'data_assembly#target', | |
215 ], | |
216 }], | |
217 [ 'icu_use_data_file_flag==1', { | 212 [ 'icu_use_data_file_flag==1', { |
218 'type': 'none', | 213 'type': 'none', |
219 'dependencies!': [ | 214 'dependencies!': [ |
220 'data_assembly#target', | 215 'data_assembly#target', |
221 ], | 216 ], |
222 # Remove any assembly data file. | 217 # Remove any assembly data file. |
223 'sources/': [['exclude', 'icudt[lb]_dat']], | 218 'sources/': [['exclude', 'icudt[lb]_dat']], |
224 | 219 |
225 # Make sure any binary depending on this gets the data file. | 220 # Make sure any binary depending on this gets the data file. |
226 'conditions': [ | 221 'conditions': [ |
227 ['OS != "ios"', { | 222 ['OS != "ios"', { |
228 'dependencies': [ | 223 'dependencies': [ |
229 'copy_icudt_dat#host', | 224 'copy_icudt_dat#host', |
230 ], | 225 ], |
231 } , { # else: OS=="ios" | 226 } , { # else: OS=="ios" |
232 'link_settings': { | 227 'link_settings': { |
233 'mac_bundle_resources': [ | 228 'mac_bundle_resources': [ |
234 'common/icudtl.dat', | 229 'common/icudtl.dat', |
235 ], | 230 ], |
236 }, | 231 }, |
237 }], # OS!=ios | 232 }], # OS!=ios |
238 ], # conditions | 233 ], # conditions |
239 }], # icu_use_data_file_flag | 234 }], # icu_use_data_file_flag |
240 ], # conditions | 235 ], # conditions |
241 'target_conditions': [ | 236 'target_conditions': [ |
242 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' | 237 [ 'OS == "win"', { |
243 '(OS == "android" and (_toolset != "host" or host_os != "linux"))
or ' | |
244 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { | |
245 'sources!': [ | 238 'sources!': [ |
246 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', | 239 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', |
247 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S' | 240 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S' |
248 ], | 241 ], |
249 }], | 242 }], |
250 [ 'OS != "android" or _toolset == "host"', { | |
251 'sources!': ['android/icudtl_dat.S'], | |
252 }], | |
253 [ 'OS != "mac" and OS != "ios" and ' | |
254 '((OS != "android" and OS != "qnx") or ' | |
255 '_toolset != "host" or host_os != "mac")', { | |
256 'sources!': ['mac/icudtl_dat.S'], | |
257 }], | |
258 ], # target_conditions | 243 ], # target_conditions |
259 }, | 244 }, |
260 { | 245 { |
261 'target_name': 'icui18n', | 246 'target_name': 'icui18n', |
262 'type': '<(component)', | 247 'type': '<(component)', |
263 'sources': [ | 248 'sources': [ |
264 '<@(icui18n_sources)', | 249 '<@(icui18n_sources)', |
265 ], | 250 ], |
266 'defines': [ | 251 'defines': [ |
267 'U_I18N_IMPLEMENTATION', | 252 'U_I18N_IMPLEMENTATION', |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 }, | 672 }, |
688 'includes': [ | 673 'includes': [ |
689 '../../build/shim_headers.gypi', | 674 '../../build/shim_headers.gypi', |
690 ], | 675 ], |
691 'toolsets': ['target'], | 676 'toolsets': ['target'], |
692 }, | 677 }, |
693 ], # targets | 678 ], # targets |
694 }], | 679 }], |
695 ], # conditions | 680 ], # conditions |
696 } | 681 } |
OLD | NEW |