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

Side by Side Diff: icu52/icu.gyp

Issue 239543018: Trim ICU data to reduce the download size/memory usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « icu52/README.chromium ('k') | icu52/scripts/accept_lang.list » ('j') | 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ['use_system_icu==0 or want_separate_host_toolset==1', { 55 ['use_system_icu==0 or want_separate_host_toolset==1', {
56 'targets': [ 56 'targets': [
57 { 57 {
58 'target_name': 'icudata', 58 'target_name': 'icudata',
59 'type': 'static_library', 59 'type': 'static_library',
60 'defines': [ 60 'defines': [
61 'U_HIDE_DATA_SYMBOL', 61 'U_HIDE_DATA_SYMBOL',
62 ], 62 ],
63 'sources': [ 63 'sources': [
64 # These are hand-generated, but will do for now. The linux 64 # These are hand-generated, but will do for now. The linux
65 # version is an identical copy of the (mac) icudt52l_dat.S file, 65 # version is an identical copy of the (mac) icudtl_dat.S file,
66 # modulo removal of the .private_extern and .const directives and 66 # modulo removal of the .private_extern and .const directives and
67 # with no leading underscore on the icudt52_dat symbol. 67 # with no leading underscore on the icudt52_dat symbol.
68 'android/icudt52l_dat.S', 68 'android/icudtl_dat.S',
69 'linux/icudt52l_dat.S', 69 'linux/icudtl_dat.S',
70 'mac/icudt52l_dat.S', 70 'mac/icudtl_dat.S',
71 ], 71 ],
72 'conditions': [ 72 'conditions': [
73 [ 'use_system_icu==1 and want_separate_host_toolset==1', { 73 [ 'use_system_icu==1 and want_separate_host_toolset==1', {
74 'toolsets': ['host'], 74 'toolsets': ['host'],
75 }], 75 }],
76 [ 'use_system_icu==0 and want_separate_host_toolset==1', { 76 [ 'use_system_icu==0 and want_separate_host_toolset==1', {
77 'toolsets': ['host', 'target'], 77 'toolsets': ['host', 'target'],
78 }], 78 }],
79 [ 'use_system_icu==0 and want_separate_host_toolset==0', { 79 [ 'use_system_icu==0 and want_separate_host_toolset==0', {
80 'toolsets': ['target'], 80 'toolsets': ['target'],
81 }], 81 }],
82 [ 'OS == "win" and icu_use_data_file_flag==0', { 82 [ 'OS == "win" and icu_use_data_file_flag==0', {
83 'type': 'none', 83 'type': 'none',
84 'copies': [ 84 'copies': [
85 { 85 {
86 'destination': '<(PRODUCT_DIR)', 86 'destination': '<(PRODUCT_DIR)',
87 'files': [ 87 'files': [
88 'windows/icudt.dll', 88 'windows/icudt.dll',
89 ], 89 ],
90 }, 90 },
91 ], 91 ],
92 }], 92 }],
93 [ 'icu_use_data_file_flag==1', { 93 [ 'icu_use_data_file_flag==1', {
94 # Remove any assembly data file. 94 # Remove any assembly data file.
95 'sources/': [['exclude', 'icudt52l_dat']], 95 'sources/': [['exclude', 'icudtl_dat']],
96 # Compile in the stub data symbol. 96 # Compile in the stub data symbol.
97 'sources': ['source/stubdata/stubdata.c'], 97 'sources': ['source/stubdata/stubdata.c'],
98 98
99 # Make sure any binary depending on this gets the data file. 99 # Make sure any binary depending on this gets the data file.
100 'conditions': [ 100 'conditions': [
101 ['OS != "ios"', { 101 ['OS != "ios"', {
102 'copies': [{ 102 'copies': [{
103 'destination': '<(PRODUCT_DIR)', 103 'destination': '<(PRODUCT_DIR)',
104 'conditions': [ 104 'conditions': [
105 ['OS == "android"', { 105 ['OS == "android"', {
(...skipping 14 matching lines...) Expand all
120 ], 120 ],
121 }, 121 },
122 }], # OS!=ios 122 }], # OS!=ios
123 ], # conditions 123 ], # conditions
124 }], # icu_use_data_file_flag 124 }], # icu_use_data_file_flag
125 ], # conditions 125 ], # conditions
126 'target_conditions': [ 126 'target_conditions': [
127 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' 127 [ 'OS == "win" or OS == "mac" or OS == "ios" or '
128 '(OS == "android" and (_toolset != "host" or host_os != "linux")) or ' 128 '(OS == "android" and (_toolset != "host" or host_os != "linux")) or '
129 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', { 129 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', {
130 'sources!': ['linux/icudt52l_dat.S'], 130 'sources!': ['linux/icudtl_dat.S'],
131 }], 131 }],
132 [ 'OS != "android" or _toolset == "host"', { 132 [ 'OS != "android" or _toolset == "host"', {
133 'sources!': ['android/icudt52l_dat.S'], 133 'sources!': ['android/icudtl_dat.S'],
134 }], 134 }],
135 [ 'OS != "mac" and OS != "ios" and ' 135 [ 'OS != "mac" and OS != "ios" and '
136 '((OS != "android" and OS != "qnx") or ' 136 '((OS != "android" and OS != "qnx") or '
137 '_toolset != "host" or host_os != "mac")', { 137 '_toolset != "host" or host_os != "mac")', {
138 'sources!': ['mac/icudt52l_dat.S'], 138 'sources!': ['mac/icudtl_dat.S'],
139 }], 139 }],
140 ], # target_conditions 140 ], # target_conditions
141 }, 141 },
142 { 142 {
143 'target_name': 'icui18n', 143 'target_name': 'icui18n',
144 'type': '<(component)', 144 'type': '<(component)',
145 'sources': [ 145 'sources': [
146 '<@(icui18n_sources)', 146 '<@(icui18n_sources)',
147 ], 147 ],
148 'defines': [ 148 'defines': [
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 }, 572 },
573 'includes': [ 573 'includes': [
574 '../../build/shim_headers.gypi', 574 '../../build/shim_headers.gypi',
575 ], 575 ],
576 'toolsets': ['target'], 576 'toolsets': ['target'],
577 }, 577 },
578 ], # targets 578 ], # targets
579 }], 579 }],
580 ], # conditions 580 ], # conditions
581 } 581 }
OLDNEW
« no previous file with comments | « icu52/README.chromium ('k') | icu52/scripts/accept_lang.list » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698