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

Side by Side Diff: icu.gyp

Issue 2165403003: Support Big Endian part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@bigendian
Patch Set: Created 4 years, 5 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 | scripts/make_data_assembly.py » ('j') | scripts/make_data_assembly.py » ('J')
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 ], 110 ],
111 }], 111 }],
112 ], 112 ],
113 }], 113 }],
114 ], 114 ],
115 }], 115 }],
116 }, 116 },
117 { 117 {
118 'target_name': 'data_assembly', 118 'target_name': 'data_assembly',
119 'type': 'none', 119 'type': 'none',
120 'data_assembly_inputs': [
Michael Achenbach 2016/07/22 07:34:08 Not enough gyp knowledge here. Can we just declare
jungshik at Google 2016/07/22 20:31:13 Yeah. It works. Thank you for the suggestion.
121 'scripts/make_data_assembly.py',
122 ],
120 'conditions': [ 123 'conditions': [
121 [ 'target_arch=="mips" or target_arch=="mips64"', { 124 [ 'target_arch=="mips" or target_arch=="mips64"', {
122 'data_assembly_sources': [ 125 'data_assembly_sources': [
123 'common/icudtb.dat', 126 'common/icudtb.dat',
124 ], 127 ],
125 'data_assembly_inputs': [ 128 'data_assembly_inputs': [
126 'scripts/make_data_assembly.py',
127 'common/icudtb.dat', 129 'common/icudtb.dat',
128 ], 130 ],
129 'data_assembly_outputs': [ 131 'data_assembly_outputs': [
130 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', 132 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S',
131 ], 133 ],
132 }], 134 }, { # 'target_arch!="mips" and target_arch!="mips64"'
133 [ 'target_arch!="mips" and target_arch!="mips64"', {
134 'data_assembly_sources': [
135 'common/icudtl.dat',
136 ],
137 'data_assembly_inputs': [
138 'scripts/make_data_assembly.py',
139 'common/icudtl.dat',
140 ],
141 'data_assembly_outputs': [ 135 'data_assembly_outputs': [
142 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', 136 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S',
143 ], 137 ],
138 'conditions': [
139 ['OS == "android"', {
140 'data_assembly_sources': [
141 'android/icudtl.dat',
142 ],
143 'data_assembly_inputs': [
144 'android/icudtl.dat',
145 ],
146 } , { # else: OS!="android"
147 'data_assembly_sources': [
148 'common/icudtl.dat',
149 ],
150 'data_assembly_inputs': [
151 'common/icudtl.dat',
152 ],
153 }], # OS==android
154 ],
144 }], 155 }],
145 ], 156 ],
146 'sources': [ 157 'sources': [
147 '<@(_data_assembly_sources)', 158 '<@(_data_assembly_sources)',
148 ], 159 ],
149 'actions': [ 160 'actions': [
150 { 161 {
151 'action_name': 'make_data_assembly', 162 'action_name': 'make_data_assembly',
152 'inputs': [ 163 'inputs': [
153 '<@(_data_assembly_inputs)', 164 '<@(_data_assembly_inputs)',
154 ], 165 ],
155 'outputs': [ 166 'outputs': [
156 '<@(_data_assembly_outputs)', 167 '<@(_data_assembly_outputs)',
157 ], 168 ],
158 'action': ['python', '<@(_inputs)', '<@(_outputs)'], 169 'target_conditions': [
170 [ 'OS != "mac" and OS != "ios" and '
Michael Achenbach 2016/07/22 07:34:08 Optional: I have the feeling the condition might b
jungshik at Google 2016/07/22 20:31:13 Yes !! I was copying/moving the condition from th
171 '((OS != "android" and OS != "qnx") or '
172 '_toolset != "host" or host_os != "mac")', {
173 'action': ['python', '<@(_inputs)', '<@(_outputs)'],
174 } , {
175 'action': ['python', '<@(_inputs)', '<@(_outputs)', '--mac'],
176 }],
177 ],
159 }, 178 },
160 ], 179 ],
161 }, 180 },
162 { 181 {
163 'target_name': 'icudata', 182 'target_name': 'icudata',
164 'type': 'static_library', 183 'type': 'static_library',
165 'defines': [ 184 'defines': [
166 'U_HIDE_DATA_SYMBOL', 185 'U_HIDE_DATA_SYMBOL',
167 ], 186 ],
168 'dependencies': [ 187 'dependencies': [
169 'data_assembly#target', 188 'data_assembly#target',
170 ], 189 ],
171 'sources': [ 190 'sources': [
172 # These are hand-generated, but will do for now. The linux
173 # version is an identical copy of the (mac) icudtl_dat.S file,
174 # modulo removal of the .private_extern and .const directives and
175 # with no leading underscore on the icudt52_dat symbol.
176 'android/icudtl_dat.S',
177 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', 191 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S',
178 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S', 192 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S',
179 'mac/icudtl_dat.S',
180 ], 193 ],
181 'conditions': [ 194 'conditions': [
182 [ 'target_arch=="mips" or target_arch=="mips64"', { 195 [ 'target_arch=="mips" or target_arch=="mips64"', {
183 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_da t.S'], 196 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_da t.S'],
184 }], 197 }, {
185 [ 'target_arch!="mips" and target_arch!="mips64"', {
186 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_da t.S'], 198 'sources!': ['<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_da t.S'],
187 }], 199 }],
188 [ 'use_system_icu==1 and want_separate_host_toolset==1', { 200 [ 'use_system_icu==1 and want_separate_host_toolset==1', {
189 'toolsets': ['host'], 201 'toolsets': ['host'],
190 }], 202 }],
191 [ 'use_system_icu==0 and want_separate_host_toolset==1', { 203 [ 'use_system_icu==0 and want_separate_host_toolset==1', {
192 'toolsets': ['host', 'target'], 204 'toolsets': ['host', 'target'],
193 }], 205 }],
194 [ 'use_system_icu==0 and want_separate_host_toolset==0', { 206 [ 'use_system_icu==0 and want_separate_host_toolset==0', {
195 'toolsets': ['target'], 207 'toolsets': ['target'],
196 }], 208 }],
197 [ 'OS == "win" and icu_use_data_file_flag==0', { 209 [ 'OS == "win" and icu_use_data_file_flag==0', {
198 'type': 'none', 210 'type': 'none',
199 'dependencies!': [ 211 'dependencies!': [
200 'data_assembly#target', 212 'data_assembly#target',
201 ], 213 ],
202 'copies': [ 214 'copies': [
203 { 215 {
204 'destination': '<(PRODUCT_DIR)', 216 'destination': '<(PRODUCT_DIR)',
205 'files': [ 217 'files': [
206 'windows/icudt.dll', 218 'windows/icudt.dll',
207 ], 219 ],
208 }, 220 },
209 ], 221 ],
210 }], 222 }],
211 [ '(OS == "mac" or OS == "ios") and icu_use_data_file_flag==0', {
212 'type': 'none',
213 'dependencies!': [
214 'data_assembly#target',
215 ],
216 }],
217 [ 'icu_use_data_file_flag==1', { 223 [ 'icu_use_data_file_flag==1', {
218 'type': 'none', 224 'type': 'none',
219 'dependencies!': [ 225 'dependencies!': [
220 'data_assembly#target', 226 'data_assembly#target',
221 ], 227 ],
222 # Remove any assembly data file. 228 # Remove any assembly data file.
223 'sources/': [['exclude', 'icudt[lb]_dat']], 229 'sources/': [['exclude', 'icudt[lb]_dat']],
224 230
225 # Make sure any binary depending on this gets the data file. 231 # Make sure any binary depending on this gets the data file.
226 'conditions': [ 232 'conditions': [
227 ['OS != "ios"', { 233 ['OS != "ios"', {
228 'dependencies': [ 234 'dependencies': [
229 'copy_icudt_dat#host', 235 'copy_icudt_dat#host',
230 ], 236 ],
231 } , { # else: OS=="ios" 237 } , { # else: OS=="ios"
232 'link_settings': { 238 'link_settings': {
233 'mac_bundle_resources': [ 239 'mac_bundle_resources': [
234 'common/icudtl.dat', 240 'common/icudtl.dat',
235 ], 241 ],
236 }, 242 },
237 }], # OS!=ios 243 }], # OS!=ios
238 ], # conditions 244 ], # conditions
239 }], # icu_use_data_file_flag 245 }], # icu_use_data_file_flag
240 ], # conditions 246 ], # conditions
241 'target_conditions': [ 247 'target_conditions': [
242 [ 'OS == "win" or OS == "mac" or OS == "ios" or ' 248 [ 'OS == "win"', {
243 '(OS == "android" and (_toolset != "host" or host_os != "linux")) or '
244 '(OS == "qnx" and (_toolset == "host" and host_os != "linux"))', {
245 'sources!': [ 249 'sources!': [
246 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S', 250 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtl_dat.S',
247 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S' 251 '<(SHARED_INTERMEDIATE_DIR)/third_party/icu/icudtb_dat.S'
248 ], 252 ],
249 }], 253 }],
250 [ 'OS != "android" or _toolset == "host"', {
251 'sources!': ['android/icudtl_dat.S'],
252 }],
253 [ 'OS != "mac" and OS != "ios" and '
254 '((OS != "android" and OS != "qnx") or '
255 '_toolset != "host" or host_os != "mac")', {
256 'sources!': ['mac/icudtl_dat.S'],
257 }],
258 ], # target_conditions 254 ], # target_conditions
259 }, 255 },
260 { 256 {
261 'target_name': 'icui18n', 257 'target_name': 'icui18n',
262 'type': '<(component)', 258 'type': '<(component)',
263 'sources': [ 259 'sources': [
264 '<@(icui18n_sources)', 260 '<@(icui18n_sources)',
265 ], 261 ],
266 'defines': [ 262 'defines': [
267 'U_I18N_IMPLEMENTATION', 263 'U_I18N_IMPLEMENTATION',
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 }, 683 },
688 'includes': [ 684 'includes': [
689 '../../build/shim_headers.gypi', 685 '../../build/shim_headers.gypi',
690 ], 686 ],
691 'toolsets': ['target'], 687 'toolsets': ['target'],
692 }, 688 },
693 ], # targets 689 ], # targets
694 }], 690 }],
695 ], # conditions 691 ], # conditions
696 } 692 }
OLDNEW
« no previous file with comments | « no previous file | scripts/make_data_assembly.py » ('j') | scripts/make_data_assembly.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698