|
8 | 8 | { |
9 | 9 | 'variables': { |
10 | 10 | 'icu_src_derb': [ '../../deps/icu/source/tools/genrb/derb.c' ], |
| 11 | + 'icu_src_trim_common': [ |
| 12 | + # bidi- not needed (yet!) |
| 13 | + '../../deps/icu/source/common/ubidi.c', |
| 14 | + '../../deps/icu/source/common/ubidiimp.h', |
| 15 | + '../../deps/icu/source/common/ubidiln.c', |
| 16 | + '../../deps/icu/source/common/ubidiwrt.c', |
| 17 | + '../../deps/icu/source/common/ubidi_props.c', |
| 18 | + '../../deps/icu/source/common/ubidi_props.h', |
| 19 | + '../../deps/icu/source/common/ubidi_props_data.h', |
| 20 | + # windows tz |
| 21 | + '../../deps/icu/source/common/wintz.c', |
| 22 | + '../../deps/icu/source/common/wintz.h', |
| 23 | + ], |
11 | 24 | }, |
12 | 25 | 'includes': [ '../../icu_config.gypi' ], |
13 | 26 | 'targets': [ |
| 27 | + { |
| 28 | + # a target for additional uconfig defines, target only |
| 29 | + 'target_name': 'icu_uconfig_target', |
| 30 | + 'type': 'none', |
| 31 | + 'toolsets': [ 'target' ], |
| 32 | + 'direct_dependent_settings': { |
| 33 | + 'defines': [ |
| 34 | + 'UCONFIG_NO_CONVERSION=1', |
| 35 | + ] |
| 36 | + }, |
| 37 | + }, |
14 | 38 | { |
15 | 39 | # a target to hold uconfig defines. |
16 | 40 | # for now these are hard coded, but could be defined. |
|
100 | 124 | 'defines': [ |
101 | 125 | 'U_I18N_IMPLEMENTATION=1', |
102 | 126 | ], |
103 | | - 'dependencies': [ 'icuucx', 'icu_implementation', 'icu_uconfig' ], |
| 127 | + 'dependencies': [ 'icuucx', 'icu_implementation', 'icu_uconfig', 'icu_uconfig_target' ], |
104 | 128 | 'direct_dependent_settings': { |
105 | 129 | 'include_dirs': [ |
106 | 130 | '../../deps/icu/source/i18n', |
107 | 131 | ], |
108 | 132 | }, |
109 | | - 'export_dependent_settings': [ 'icuucx' ], |
| 133 | + 'export_dependent_settings': [ 'icuucx', 'icu_uconfig_target' ], |
110 | 134 | }, |
111 | 135 | # this library is only built for derb.. |
112 | 136 | { |
|
308 | 332 | 'export_dependent_settings': [ 'icuucx', 'icudata' ], |
309 | 333 | }, |
310 | 334 | # This is the 'real' icuuc. |
311 | | - # tools can depend on 'icuuc + stubdata' |
312 | 335 | { |
313 | 336 | 'target_name': 'icuucx', |
314 | 337 | 'type': '<(library)', |
315 | | - 'dependencies': [ 'icu_implementation', 'icu_uconfig' ], |
| 338 | + 'dependencies': [ 'icu_implementation', 'icu_uconfig', 'icu_uconfig_target' ], |
316 | 339 | 'toolsets': [ 'host', 'target' ], |
317 | 340 | 'sources': [ |
318 | | - '<@(icu_src_common)' |
| 341 | + '<@(icu_src_common)', |
| 342 | + ], |
| 343 | + 'sources!': [ |
| 344 | + '<@(icu_src_trim_common)', |
319 | 345 | ], |
320 | 346 | 'include_dirs': [ |
321 | 347 | '../../deps/icu/source/common', |
322 | 348 | ], |
323 | 349 | 'defines': [ |
324 | 350 | 'U_COMMON_IMPLEMENTATION=1', |
325 | 351 | ], |
326 | | - 'export_dependent_settings': [ 'icu_uconfig' ], |
| 352 | + 'export_dependent_settings': [ 'icu_uconfig', 'icu_uconfig_target' ], |
327 | 353 | 'direct_dependent_settings': { |
328 | 354 | 'include_dirs': [ |
329 | 355 | '../../deps/icu/source/common', |
|
0 commit comments