|
90 | 90 | { |
91 | 91 | 'target_name': 'icui18n', |
92 | 92 | 'type': '<(library)', |
93 | | - 'toolsets': [ 'host', 'target' ], |
| 93 | + 'toolsets': [ 'target' ], |
94 | 94 | 'sources': [ |
95 | 95 | '<@(icu_src_i18n)' |
96 | 96 | ], |
|
108 | 108 | }, |
109 | 109 | 'export_dependent_settings': [ 'icuucx' ], |
110 | 110 | }, |
111 | | - # this library is only built for derb.. |
112 | | - { |
113 | | - 'target_name': 'icuio', |
114 | | - 'type': '<(library)', |
115 | | - 'toolsets': [ 'host' ], |
116 | | - 'sources': [ |
117 | | - '<@(icu_src_io)' |
118 | | - ], |
119 | | - 'include_dirs': [ |
120 | | - '../../deps/icu/source/io', |
121 | | - ], |
122 | | - 'defines': [ |
123 | | - 'U_IO_IMPLEMENTATION=1', |
124 | | - ], |
125 | | - 'dependencies': [ 'icuucx', 'icui18n', 'icu_implementation', 'icu_uconfig' ], |
126 | | - 'direct_dependent_settings': { |
127 | | - 'include_dirs': [ |
128 | | - '../../deps/icu/source/io', |
129 | | - ], |
130 | | - }, |
131 | | - 'export_dependent_settings': [ 'icuucx', 'icui18n' ], |
132 | | - }, |
133 | 111 | # This exports actual ICU data |
134 | 112 | { |
135 | 113 | 'target_name': 'icudata', |
|
288 | 266 | { |
289 | 267 | 'target_name': 'icustubdata', |
290 | 268 | 'type': '<(library)', |
291 | | - 'toolsets': [ 'host', 'target' ], |
| 269 | + 'toolsets': [ 'target' ], |
292 | 270 | 'dependencies': [ 'icu_implementation' ], |
293 | 271 | 'sources': [ |
294 | 272 | '<@(icu_src_stubdata)' |
|
313 | 291 | 'target_name': 'icuucx', |
314 | 292 | 'type': '<(library)', |
315 | 293 | 'dependencies': [ 'icu_implementation', 'icu_uconfig' ], |
316 | | - 'toolsets': [ 'host', 'target' ], |
| 294 | + 'toolsets': [ 'target' ], |
317 | 295 | 'sources': [ |
318 | 296 | '<@(icu_src_common)' |
319 | 297 | ], |
|
342 | 320 | 'target_name': 'icutools', |
343 | 321 | 'type': '<(library)', |
344 | 322 | 'toolsets': [ 'host' ], |
345 | | - 'dependencies': [ 'icuucx', 'icui18n', 'icustubdata' ], |
| 323 | + 'dependencies': [ 'icu_implementation', 'icu_uconfig' ], |
346 | 324 | 'sources': [ |
347 | | - '<@(icu_src_tools)' |
| 325 | + '<@(icu_src_tools)', |
| 326 | + '<@(icu_src_common)', |
| 327 | + '<@(icu_src_i18n)', |
| 328 | + '<@(icu_src_io)', |
| 329 | + '<@(icu_src_stubdata)', |
348 | 330 | ], |
349 | 331 | 'include_dirs': [ |
| 332 | + '../../deps/icu/source/common', |
| 333 | + '../../deps/icu/source/i18n', |
| 334 | + '../../deps/icu/source/io', |
350 | 335 | '../../deps/icu/source/tools/toolutil', |
351 | 336 | ], |
352 | 337 | 'defines': [ |
| 338 | + 'U_COMMON_IMPLEMENTATION=1', |
| 339 | + 'U_I18N_IMPLEMENTATION=1', |
| 340 | + 'U_IO_IMPLEMENTATION=1', |
353 | 341 | 'U_TOOLUTIL_IMPLEMENTATION=1', |
354 | 342 | #'DEBUG=0', # http://bugs.icu-project.org/trac/ticket/10977 |
355 | 343 | ], |
356 | 344 | 'direct_dependent_settings': { |
357 | 345 | 'include_dirs': [ |
| 346 | + '../../deps/icu/source/common', |
| 347 | + '../../deps/icu/source/i18n', |
| 348 | + '../../deps/icu/source/io', |
358 | 349 | '../../deps/icu/source/tools/toolutil', |
359 | 350 | ], |
| 351 | + 'conditions': [ |
| 352 | + [ 'OS=="win"', { |
| 353 | + 'link_settings': { |
| 354 | + 'libraries': [ '-lAdvAPI32.Lib', '-lUser32.lib' ], |
| 355 | + }, |
| 356 | + }], |
| 357 | + ], |
360 | 358 | }, |
361 | | - 'export_dependent_settings': [ 'icuucx', 'icui18n', 'icustubdata' ], |
| 359 | + 'export_dependent_settings': [ 'icu_implementation', 'icu_uconfig' ], |
362 | 360 | }, |
363 | 361 | # This tool is needed to rebuild .res files from .txt, |
364 | 362 | # or to build index (res_index.txt) files for small-icu |
365 | 363 | { |
366 | 364 | 'target_name': 'genrb', |
367 | 365 | 'type': 'executable', |
368 | 366 | 'toolsets': [ 'host' ], |
369 | | - 'dependencies': [ 'icutools', 'icuucx', 'icui18n' ], |
| 367 | + 'dependencies': [ 'icutools' ], |
370 | 368 | 'sources': [ |
371 | 369 | '<@(icu_src_genrb)' |
372 | 370 | ], |
|
382 | 380 | 'target_name': 'iculslocs', |
383 | 381 | 'toolsets': [ 'host' ], |
384 | 382 | 'type': 'executable', |
385 | | - 'dependencies': [ 'icutools', 'icuucx', 'icui18n', 'icuio' ], |
| 383 | + 'dependencies': [ 'icutools' ], |
386 | 384 | 'sources': [ |
387 | 385 | 'iculslocs.cc', |
388 | 386 | 'no-op.cc', |
|
394 | 392 | 'target_name': 'icupkg', |
395 | 393 | 'toolsets': [ 'host' ], |
396 | 394 | 'type': 'executable', |
397 | | - 'dependencies': [ 'icutools', 'icuucx', 'icui18n' ], |
| 395 | + 'dependencies': [ 'icutools' ], |
398 | 396 | 'sources': [ |
399 | 397 | '<@(icu_src_icupkg)', |
400 | 398 | 'no-op.cc', |
|
405 | 403 | 'target_name': 'genccode', |
406 | 404 | 'toolsets': [ 'host' ], |
407 | 405 | 'type': 'executable', |
408 | | - 'dependencies': [ 'icutools', 'icuucx', 'icui18n' ], |
| 406 | + 'dependencies': [ 'icutools' ], |
409 | 407 | 'sources': [ |
410 | 408 | '<@(icu_src_genccode)', |
411 | 409 | 'no-op.cc', |
|
0 commit comments