|
2 | 2 | 'includes': |
3 | 3 | [ |
4 | 4 | '../common.gypi', |
5 | | - 'prebuilt-common.gypi', |
6 | 5 | ], |
7 | 6 |
|
| 7 | + 'target_defaults': |
| 8 | + { |
| 9 | + 'conditions': |
| 10 | + [ |
| 11 | + [ |
| 12 | + 'host_os == "mac"', |
| 13 | + { |
| 14 | + 'variables': |
| 15 | + { |
| 16 | + 'prebuilt_icu_bin_dir': 'bin/mac', |
| 17 | + 'prebuilt_icu_share_dir': 'share', |
| 18 | + }, |
| 19 | + }, |
| 20 | + ], |
| 21 | + [ |
| 22 | + 'host_os == "linux"', |
| 23 | + { |
| 24 | + 'variables': |
| 25 | + { |
| 26 | + # Gyp doesn't seem to handle non-absolute paths here properly... |
| 27 | + 'prebuilt_icu_bin_dir': 'bin/linux/>(toolset_arch)', |
| 28 | + 'prebuilt_icu_share_dir': 'share', |
| 29 | + }, |
| 30 | + }, |
| 31 | + ], |
| 32 | + [ |
| 33 | + 'host_os == "win"', |
| 34 | + { |
| 35 | + 'variables': |
| 36 | + { |
| 37 | + # Hack required due to GYP failure / refusal to treat this as a path |
| 38 | + 'prebuilt_icu_bin_dir': '$(SolutionDir)../../prebuilt/unpacked/icu/<(uniform_arch)-win32-$(PlatformToolset)_static_$(ConfigurationName)/bin', |
| 39 | + 'prebuilt_icu_share_dir': 'unpacked/icu/<(uniform_arch)-win32-$(PlatformToolset)_static_$(ConfigurationName)/share', |
| 40 | + }, |
| 41 | + }, |
| 42 | + ], |
| 43 | + ], |
| 44 | + }, |
| 45 | + |
8 | 46 | 'targets': |
9 | 47 | [ |
10 | 48 | { |
|
189 | 227 | 'target_name': 'minimal_icu_data', |
190 | 228 | 'type': 'none', |
191 | 229 |
|
192 | | - 'toolsets': ['host'], |
| 230 | + 'toolsets': ['host', 'target'], |
193 | 231 |
|
194 | 232 | 'dependencies': |
195 | 233 | [ |
196 | | - 'libicu', |
| 234 | + 'fetch.gyp:fetch#host', |
197 | 235 | ], |
198 | 236 |
|
199 | 237 | 'actions': |
|
206 | 244 | ], |
207 | 245 | 'outputs': |
208 | 246 | [ |
209 | | - '<(SHARED_INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
| 247 | + '<(INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
210 | 248 | ], |
211 | 249 | 'action': |
212 | 250 | [ |
|
215 | 253 | '>(prebuilt_icu_share_dir)/icudt58l.dat', |
216 | 254 | '--auto_toc_prefix', |
217 | 255 | '--outlist', |
218 | | - '<(SHARED_INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
| 256 | + '<(INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
219 | 257 | ], |
220 | 258 | }, |
221 | 259 |
|
222 | 260 | { |
223 | 261 | 'action_name': 'gen_icu_data_remove_list', |
224 | 262 | 'inputs': |
225 | 263 | [ |
226 | | - '>(SHARED_INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
| 264 | + '<(INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
227 | 265 | 'rsrc/icudata-minimal-list.txt', |
228 | 266 | ], |
229 | 267 | 'outputs': |
230 | 268 | [ |
231 | | - '>(SHARED_INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
| 269 | + '<(INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
232 | 270 | ], |
233 | 271 | 'action': |
234 | 272 | [ |
235 | 273 | 'python', |
236 | 274 | '../util/remove_matching.py', |
237 | | - '>(SHARED_INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
| 275 | + '<(INTERMEDIATE_DIR)/data/icudata-full-list.txt', |
238 | 276 | 'rsrc/icudata-minimal-list.txt', |
239 | | - '>(SHARED_INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
| 277 | + '<(INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
240 | 278 | ], |
241 | 279 | }, |
242 | 280 |
|
243 | 281 | { |
244 | 282 | 'action_name': 'minimal_icu_data', |
245 | 283 | 'inputs': |
246 | 284 | [ |
247 | | - '>(SHARED_INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
| 285 | + '<(INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
248 | 286 | ], |
249 | 287 | 'outputs': |
250 | 288 | [ |
|
255 | 293 | [ |
256 | 294 | '>(prebuilt_icu_bin_dir)/icupkg', |
257 | 295 | '--remove', |
258 | | - '>(SHARED_INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
| 296 | + '<(INTERMEDIATE_DIR)/data/icudata-remove-list.txt', |
259 | 297 | '--auto_toc_prefix', |
260 | 298 | '>(prebuilt_icu_share_dir)/icudt58l.dat', |
261 | 299 | '<(SHARED_INTERMEDIATE_DIR)/data/icudata-minimal.dat', |
|
268 | 306 | 'target_name': 'encode_minimal_icu_data', |
269 | 307 | 'type': 'none', |
270 | 308 |
|
271 | | - 'toolsets': ['host'], |
| 309 | + 'toolsets': ['host', 'target'], |
272 | 310 |
|
273 | 311 | 'dependencies': |
274 | 312 | [ |
|
0 commit comments