Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit a0277bb

Browse files
committed
build: i18n: further trim
1 parent 9f6da7c commit a0277bb

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

tools/icu/icu-generic.gyp

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,33 @@
88
{
99
'variables': {
1010
'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+
],
1124
},
1225
'includes': [ '../../icu_config.gypi' ],
1326
'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+
},
1438
{
1539
# a target to hold uconfig defines.
1640
# for now these are hard coded, but could be defined.
@@ -100,13 +124,13 @@
100124
'defines': [
101125
'U_I18N_IMPLEMENTATION=1',
102126
],
103-
'dependencies': [ 'icuucx', 'icu_implementation', 'icu_uconfig' ],
127+
'dependencies': [ 'icuucx', 'icu_implementation', 'icu_uconfig', 'icu_uconfig_target' ],
104128
'direct_dependent_settings': {
105129
'include_dirs': [
106130
'../../deps/icu/source/i18n',
107131
],
108132
},
109-
'export_dependent_settings': [ 'icuucx' ],
133+
'export_dependent_settings': [ 'icuucx', 'icu_uconfig_target' ],
110134
},
111135
# this library is only built for derb..
112136
{
@@ -308,22 +332,24 @@
308332
'export_dependent_settings': [ 'icuucx', 'icudata' ],
309333
},
310334
# This is the 'real' icuuc.
311-
# tools can depend on 'icuuc + stubdata'
312335
{
313336
'target_name': 'icuucx',
314337
'type': '<(library)',
315-
'dependencies': [ 'icu_implementation', 'icu_uconfig' ],
338+
'dependencies': [ 'icu_implementation', 'icu_uconfig', 'icu_uconfig_target' ],
316339
'toolsets': [ 'host', 'target' ],
317340
'sources': [
318-
'<@(icu_src_common)'
341+
'<@(icu_src_common)',
342+
],
343+
'sources!': [
344+
'<@(icu_src_trim_common)',
319345
],
320346
'include_dirs': [
321347
'../../deps/icu/source/common',
322348
],
323349
'defines': [
324350
'U_COMMON_IMPLEMENTATION=1',
325351
],
326-
'export_dependent_settings': [ 'icu_uconfig' ],
352+
'export_dependent_settings': [ 'icu_uconfig', 'icu_uconfig_target' ],
327353
'direct_dependent_settings': {
328354
'include_dirs': [
329355
'../../deps/icu/source/common',

0 commit comments

Comments
 (0)