Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Side by Side Diff: icu.gyp

Issue 124003004: Correct gyp toolsets for all combinations of want_separate_host_toolset and use_system_icu. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu46.git@separateOld
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 'sources': [ 62 'sources': [
63 # These are hand-generated, but will do for now. The linux 63 # These are hand-generated, but will do for now. The linux
64 # version is an identical copy of the (mac) icudt46l_dat.S file, 64 # version is an identical copy of the (mac) icudt46l_dat.S file,
65 # modulo removal of the .private_extern and .const directives and 65 # modulo removal of the .private_extern and .const directives and
66 # with no leading underscore on the icudt46_dat symbol. 66 # with no leading underscore on the icudt46_dat symbol.
67 'android/icudt46l_dat.S', 67 'android/icudt46l_dat.S',
68 'linux/icudt46l_dat.S', 68 'linux/icudt46l_dat.S',
69 'mac/icudt46l_dat.S', 69 'mac/icudt46l_dat.S',
70 ], 70 ],
71 'conditions': [ 71 'conditions': [
72 [ 'use_system_icu==1', { 72 [ 'use_system_icu==1 and want_separate_host_toolset==1', {
73 'toolsets': ['host'], 73 'toolsets': ['host'],
74 }, { 74 }],
75 [ 'use_system_icu==0 and want_separate_host_toolset==1', {
75 'toolsets': ['host', 'target'], 76 'toolsets': ['host', 'target'],
76 }], 77 }],
78 [ 'use_system_icu==0 and want_separate_host_toolset==0', {
79 'toolsets': ['target'],
80 }],
77 [ 'OS == "win" and icu_use_data_file_flag==0', { 81 [ 'OS == "win" and icu_use_data_file_flag==0', {
78 'type': 'none', 82 'type': 'none',
79 'copies': [ 83 'copies': [
80 { 84 {
81 'destination': '<(PRODUCT_DIR)', 85 'destination': '<(PRODUCT_DIR)',
82 'files': [ 86 'files': [
83 'windows/icudt.dll', 87 'windows/icudt.dll',
84 ], 88 ],
85 }, 89 },
86 ], 90 ],
(...skipping 28 matching lines...) Expand all
115 '(OS == "android" and (_toolset == "target" or host_os != "linux") )', { 119 '(OS == "android" and (_toolset == "target" or host_os != "linux") )', {
116 'sources!': ['linux/icudt46l_dat.S'], 120 'sources!': ['linux/icudt46l_dat.S'],
117 }], 121 }],
118 [ 'OS != "android" or _toolset == "host"', { 122 [ 'OS != "android" or _toolset == "host"', {
119 'sources!': ['android/icudt46l_dat.S'], 123 'sources!': ['android/icudt46l_dat.S'],
120 }], 124 }],
121 [ 'OS != "mac" and OS != "ios" and ' 125 [ 'OS != "mac" and OS != "ios" and '
122 '(OS != "android" or _toolset != "host" or host_os != "mac")', { 126 '(OS != "android" or _toolset != "host" or host_os != "mac")', {
123 'sources!': ['mac/icudt46l_dat.S'], 127 'sources!': ['mac/icudt46l_dat.S'],
124 }], 128 }],
125 ], 129 ], # target_conditions
126 }, 130 },
127 { 131 {
128 'target_name': 'icui18n', 132 'target_name': 'icui18n',
129 'type': '<(component)', 133 'type': '<(component)',
130 'sources': [ 134 'sources': [
131 '<@(icui18n_sources)', 135 '<@(icui18n_sources)',
132 ], 136 ],
133 'defines': [ 137 'defines': [
134 'U_I18N_IMPLEMENTATION', 138 'U_I18N_IMPLEMENTATION',
135 ], 139 ],
136 'dependencies': [ 140 'dependencies': [
137 'icuuc', 141 'icuuc',
138 ], 142 ],
139 'direct_dependent_settings': { 143 'direct_dependent_settings': {
140 'include_dirs': [ 144 'include_dirs': [
141 'source/i18n', 145 'source/i18n',
142 ], 146 ],
143 }, 147 },
144 'conditions': [ 148 'conditions': [
145 [ 'use_system_icu==1', { 149 [ 'use_system_icu==1 and want_separate_host_toolset==1', {
146 'toolsets': ['host'], 150 'toolsets': ['host'],
147 }, { 151 }],
152 [ 'use_system_icu==0 and want_separate_host_toolset==1', {
148 'toolsets': ['host', 'target'], 153 'toolsets': ['host', 'target'],
149 }], 154 }],
155 [ 'use_system_icu==0 and want_separate_host_toolset==0', {
156 'toolsets': ['target'],
157 }],
150 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', { 158 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
151 # Since ICU wants to internally use its own deprecated APIs, don't 159 # Since ICU wants to internally use its own deprecated APIs, don't
152 # complain about it. 160 # complain about it.
153 'cflags': [ 161 'cflags': [
154 '-Wno-deprecated-declarations', 162 '-Wno-deprecated-declarations',
155 ], 163 ],
156 'cflags_cc': [ 164 'cflags_cc': [
157 '-frtti', 165 '-frtti',
158 ], 166 ],
159 }], 167 }],
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 '<(android_src)/abi/cpp/include', 219 '<(android_src)/abi/cpp/include',
212 ], 220 ],
213 'link_settings': { 221 'link_settings': {
214 'libraries': [ 222 'libraries': [
215 '-lgabi++', 223 '-lgabi++',
216 ], 224 ],
217 }, 225 },
218 }], 226 }],
219 ], 227 ],
220 }], 228 }],
221 ], 229 ], # conditions
222 }, 230 },
223 { 231 {
224 'target_name': 'icuuc', 232 'target_name': 'icuuc',
225 'type': '<(component)', 233 'type': '<(component)',
226 'sources': [ 234 'sources': [
227 '<@(icuuc_sources)', 235 '<@(icuuc_sources)',
228 ], 236 ],
229 'defines': [ 237 'defines': [
230 'U_COMMON_IMPLEMENTATION', 238 'U_COMMON_IMPLEMENTATION',
231 ], 239 ],
232 'dependencies': [ 240 'dependencies': [
233 'icudata', 241 'icudata',
234 ], 242 ],
235 'direct_dependent_settings': { 243 'direct_dependent_settings': {
236 'include_dirs': [ 244 'include_dirs': [
237 'source/common', 245 'source/common',
238 ], 246 ],
239 'conditions': [ 247 'conditions': [
240 [ 'component=="static_library"', { 248 [ 'component=="static_library"', {
241 'defines': [ 249 'defines': [
242 'U_STATIC_IMPLEMENTATION', 250 'U_STATIC_IMPLEMENTATION',
243 ], 251 ],
244 }], 252 }],
245 ], 253 ],
246 }, 254 },
247 'conditions': [ 255 'conditions': [
248 [ 'use_system_icu==1', { 256 [ 'use_system_icu==1 and want_separate_host_toolset==1', {
249 'toolsets': ['host'], 257 'toolsets': ['host'],
250 }, { 258 }],
259 [ 'use_system_icu==0 and want_separate_host_toolset==1', {
251 'toolsets': ['host', 'target'], 260 'toolsets': ['host', 'target'],
252 }], 261 }],
262 [ 'use_system_icu==0 and want_separate_host_toolset==0', {
263 'toolsets': ['target'],
264 }],
253 [ 'OS == "win"', { 265 [ 'OS == "win"', {
254 'sources': [ 266 'sources': [
255 'source/stubdata/stubdata.c', 267 'source/stubdata/stubdata.c',
256 ], 268 ],
257 }], 269 }],
258 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', { 270 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
259 'cflags': [ 271 'cflags': [
260 # Since ICU wants to internally use its own deprecated APIs, 272 # Since ICU wants to internally use its own deprecated APIs,
261 # don't complain about it. 273 # don't complain about it.
262 '-Wno-deprecated-declarations', 274 '-Wno-deprecated-declarations',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 '-Wno-switch', 323 '-Wno-switch',
312 ], 324 ],
313 }, 325 },
314 'cflags': [ 326 'cflags': [
315 '-Wno-deprecated-declarations', 327 '-Wno-deprecated-declarations',
316 '-Wno-logical-op-parentheses', 328 '-Wno-logical-op-parentheses',
317 '-Wno-tautological-compare', 329 '-Wno-tautological-compare',
318 '-Wno-switch', 330 '-Wno-switch',
319 ], 331 ],
320 }], 332 }],
321 ], 333 ], # conditions
322 }, 334 },
323 ], 335 ], # targets
324 }], 336 }],
325 ['use_system_icu==1', { 337 ['use_system_icu==1', {
326 'targets': [ 338 'targets': [
327 { 339 {
328 'target_name': 'system_icu', 340 'target_name': 'system_icu',
329 'type': 'none', 341 'type': 'none',
330 'conditions': [ 342 'conditions': [
331 ['want_separate_host_toolset==1', {
332 'toolsets': ['target'],
333 }, {
334 'toolsets': ['host', 'target'],
335 }],
336 ['OS=="android"', { 343 ['OS=="android"', {
337 'direct_dependent_settings': { 344 'direct_dependent_settings': {
338 'include_dirs': [ 345 'include_dirs': [
339 '<(android_src)/external/icu4c/common', 346 '<(android_src)/external/icu4c/common',
340 '<(android_src)/external/icu4c/i18n', 347 '<(android_src)/external/icu4c/i18n',
341 ], 348 ],
342 }, 349 },
343 'link_settings': { 350 'link_settings': {
344 'libraries': [ 351 'libraries': [
345 '-licui18n', 352 '-licui18n',
(...skipping 10 matching lines...) Expand all
356 ], 363 ],
357 }, 364 },
358 }], 365 }],
359 ], 366 ],
360 }, 367 },
361 { 368 {
362 'target_name': 'icudata', 369 'target_name': 'icudata',
363 'type': 'none', 370 'type': 'none',
364 'dependencies': ['system_icu'], 371 'dependencies': ['system_icu'],
365 'export_dependent_settings': ['system_icu'], 372 'export_dependent_settings': ['system_icu'],
366 'conditions': [ 373 'toolsets': ['target'],
367 ['want_separate_host_toolset==1', {
368 'toolsets': ['target'],
369 }, {
370 'toolsets': ['host', 'target'],
371 }],
372 ],
373 }, 374 },
374 { 375 {
375 'target_name': 'icui18n', 376 'target_name': 'icui18n',
376 'type': 'none', 377 'type': 'none',
377 'dependencies': ['system_icu'], 378 'dependencies': ['system_icu'],
378 'export_dependent_settings': ['system_icu'], 379 'export_dependent_settings': ['system_icu'],
379 'variables': { 380 'variables': {
380 'headers_root_path': 'source/i18n', 381 'headers_root_path': 'source/i18n',
381 'header_filenames': [ 382 'header_filenames': [
382 # This list can easily be updated using the command below: 383 # This list can easily be updated using the command below:
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 'unicode/usearch.h', 450 'unicode/usearch.h',
450 'unicode/uspoof.h', 451 'unicode/uspoof.h',
451 'unicode/utmscale.h', 452 'unicode/utmscale.h',
452 'unicode/utrans.h', 453 'unicode/utrans.h',
453 'unicode/vtzone.h', 454 'unicode/vtzone.h',
454 ], 455 ],
455 }, 456 },
456 'includes': [ 457 'includes': [
457 '../../build/shim_headers.gypi', 458 '../../build/shim_headers.gypi',
458 ], 459 ],
459 'conditions': [ 460 'toolsets': ['target'],
460 ['want_separate_host_toolset==1', {
461 'toolsets': ['target'],
462 }, {
463 'toolsets': ['host', 'target'],
464 }],
465 ],
466 }, 461 },
467 { 462 {
468 'target_name': 'icuuc', 463 'target_name': 'icuuc',
469 'type': 'none', 464 'type': 'none',
470 'dependencies': ['system_icu'], 465 'dependencies': ['system_icu'],
471 'export_dependent_settings': ['system_icu'], 466 'export_dependent_settings': ['system_icu'],
472 'variables': { 467 'variables': {
473 'headers_root_path': 'source/common', 468 'headers_root_path': 'source/common',
474 'header_filenames': [ 469 'header_filenames': [
475 # This list can easily be updated using the command below: 470 # This list can easily be updated using the command below:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 'unicode/utrace.h', 555 'unicode/utrace.h',
561 'unicode/utypeinfo.h', 556 'unicode/utypeinfo.h',
562 'unicode/utypes.h', 557 'unicode/utypes.h',
563 'unicode/uvernum.h', 558 'unicode/uvernum.h',
564 'unicode/uversion.h', 559 'unicode/uversion.h',
565 ], 560 ],
566 }, 561 },
567 'includes': [ 562 'includes': [
568 '../../build/shim_headers.gypi', 563 '../../build/shim_headers.gypi',
569 ], 564 ],
570 'conditions': [ 565 'toolsets': ['target'],
571 ['want_separate_host_toolset==1', {
572 'toolsets': ['target'],
573 }, {
574 'toolsets': ['host', 'target'],
575 }],
576 ],
577 }, 566 },
578 ], 567 ], # targets
579 }], 568 }],
580 ], 569 ], # conditions
581 } 570 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698