|
139 | 139 | # full data - just build the full data file, then we are done.
|
140 | 140 | 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)<(icu_endianness)_dat.<(icu_asm_ext)' ],
|
141 | 141 | 'dependencies': [ 'genccode#host' ],
|
142 |
| - 'actions': [ |
143 |
| - { |
144 |
| - 'action_name': 'icudata', |
145 |
| - 'msvs_quote_cmd': 0, |
146 |
| - 'inputs': [ '<(icu_data_in)' ], |
147 |
| - 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)<(icu_endianness)_dat.<(icu_asm_ext)' ], |
148 |
| - # on Windows, we can go directly to .obj file (-o) option. |
149 |
| - 'action': [ '<(PRODUCT_DIR)/genccode<(EXECUTABLE_SUFFIX)', |
150 |
| - '<@(icu_asm_opts)', # -o |
151 |
| - '-d', '<(SHARED_INTERMEDIATE_DIR)', |
152 |
| - '-n', 'icudata', |
153 |
| - '-e', 'icudt<(icu_ver_major)', |
154 |
| - '<@(_inputs)' ], |
155 |
| - }, |
| 142 | + 'conditions': [ |
| 143 | + [ 'clang==1', { |
| 144 | + 'actions': [ |
| 145 | + { |
| 146 | + 'action_name': 'icudata', |
| 147 | + 'msvs_quote_cmd': 0, |
| 148 | + 'inputs': [ '<(icu_data_in)' ], |
| 149 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)<(icu_endianness)_dat.<(icu_asm_ext)' ], |
| 150 | + # on Windows, we can go directly to .obj file (-o) option. |
| 151 | + # for Clang use "-c <(target_arch)" option |
| 152 | + 'action': [ '<(PRODUCT_DIR)/genccode<(EXECUTABLE_SUFFIX)', |
| 153 | + '<@(icu_asm_opts)', # -o |
| 154 | + '-c', '<(target_arch)', |
| 155 | + '-d', '<(SHARED_INTERMEDIATE_DIR)', |
| 156 | + '-n', 'icudata', |
| 157 | + '-e', 'icudt<(icu_ver_major)', |
| 158 | + '<@(_inputs)' ], |
| 159 | + }, |
| 160 | + ], |
| 161 | + }, { |
| 162 | + 'actions': [ |
| 163 | + { |
| 164 | + 'action_name': 'icudata', |
| 165 | + 'msvs_quote_cmd': 0, |
| 166 | + 'inputs': [ '<(icu_data_in)' ], |
| 167 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)<(icu_endianness)_dat.<(icu_asm_ext)' ], |
| 168 | + # on Windows, we can go directly to .obj file (-o) option. |
| 169 | + # for MSVC do not use "-c <(target_arch)" option |
| 170 | + 'action': [ '<(PRODUCT_DIR)/genccode<(EXECUTABLE_SUFFIX)', |
| 171 | + '<@(icu_asm_opts)', # -o |
| 172 | + '-d', '<(SHARED_INTERMEDIATE_DIR)', |
| 173 | + '-n', 'icudata', |
| 174 | + '-e', 'icudt<(icu_ver_major)', |
| 175 | + '<@(_inputs)' ], |
| 176 | + }, |
| 177 | + ], |
| 178 | + }] |
156 | 179 | ],
|
157 | 180 | }, { # icu_small == TRUE and OS == win
|
158 | 181 | # link against stub data primarily
|
|
244 | 267 | 'dependencies': [ 'icustubdata', 'genccode#host', 'icupkg#host', 'genrb#host', 'iculslocs#host',
|
245 | 268 | 'icu_implementation', 'icu_uconfig' ],
|
246 | 269 | 'export_dependent_settings': [ 'icustubdata' ],
|
247 |
| - 'actions': [ |
248 |
| - { |
249 |
| - # Trim down ICU. |
250 |
| - # Note that icupkg is invoked automatically, swapping endianness if needed. |
251 |
| - 'action_name': 'icutrim', |
252 |
| - 'inputs': [ '<(icu_data_in)', 'icu_small.json' ], |
253 |
| - 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], |
254 |
| - 'action': [ '<(python)', |
255 |
| - 'icutrim.py', |
256 |
| - '-P', '<(PRODUCT_DIR)', |
257 |
| - '-D', '<(icu_data_in)', |
258 |
| - '--delete-tmp', |
259 |
| - '-T', '<(SHARED_INTERMEDIATE_DIR)/icutmp', |
260 |
| - '-F', 'icu_small.json', |
261 |
| - '-O', 'icudt<(icu_ver_major)<(icu_endianness).dat', |
262 |
| - '-v', |
263 |
| - '-L', '<(icu_locales)'], |
| 270 | + 'conditions': [ |
| 271 | + [ 'clang==1', { |
| 272 | + 'actions': [ |
| 273 | + { |
| 274 | + # Trim down ICU. |
| 275 | + # Note that icupkg is invoked automatically, swapping endianness if needed. |
| 276 | + 'action_name': 'icutrim', |
| 277 | + 'inputs': [ '<(icu_data_in)', 'icu_small.json' ], |
| 278 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], |
| 279 | + 'action': [ '<(python)', |
| 280 | + 'icutrim.py', |
| 281 | + '-P', '<(PRODUCT_DIR)', |
| 282 | + '-D', '<(icu_data_in)', |
| 283 | + '--delete-tmp', |
| 284 | + '-T', '<(SHARED_INTERMEDIATE_DIR)/icutmp', |
| 285 | + '-F', 'icu_small.json', |
| 286 | + '-O', 'icudt<(icu_ver_major)<(icu_endianness).dat', |
| 287 | + '-v', |
| 288 | + '-L', '<(icu_locales)'], |
| 289 | + }, { |
| 290 | + # rename to get the final entrypoint name right (icudt64l.dat -> icusmdt64.dat) |
| 291 | + 'action_name': 'rename', |
| 292 | + 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], |
| 293 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icusmdt<(icu_ver_major).dat' ], |
| 294 | + 'action': [ 'cp', |
| 295 | + '<@(_inputs)', |
| 296 | + '<@(_outputs)', |
| 297 | + ], |
| 298 | + }, { |
| 299 | + # For icu-small, always use .c, don't try to use .S, etc. |
| 300 | + 'action_name': 'genccode', |
| 301 | + 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icusmdt<(icu_ver_major).dat' ], |
| 302 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.<(icu_asm_ext)' ], |
| 303 | + # for Clang use "-c <(target_arch)" option |
| 304 | + 'action': [ '<(PRODUCT_DIR)/genccode<(EXECUTABLE_SUFFIX)', |
| 305 | + '<@(icu_asm_opts)', |
| 306 | + '-c', '<(target_arch)', |
| 307 | + '-d', '<(SHARED_INTERMEDIATE_DIR)', |
| 308 | + '<@(_inputs)' ], |
| 309 | + }, |
| 310 | + ], |
264 | 311 | }, {
|
265 |
| - # rename to get the final entrypoint name right (icudt64l.dat -> icusmdt64.dat) |
266 |
| - 'action_name': 'rename', |
267 |
| - 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], |
268 |
| - 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icusmdt<(icu_ver_major).dat' ], |
269 |
| - 'action': [ 'cp', |
270 |
| - '<@(_inputs)', |
271 |
| - '<@(_outputs)', |
272 |
| - ], |
273 |
| - }, { |
274 |
| - # For icu-small, always use .c, don't try to use .S, etc. |
275 |
| - 'action_name': 'genccode', |
276 |
| - 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icusmdt<(icu_ver_major).dat' ], |
277 |
| - 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.<(icu_asm_ext)' ], |
278 |
| - 'action': [ '<(PRODUCT_DIR)/genccode<(EXECUTABLE_SUFFIX)', |
279 |
| - '<@(icu_asm_opts)', |
280 |
| - '-d', '<(SHARED_INTERMEDIATE_DIR)', |
281 |
| - '<@(_inputs)' ], |
282 |
| - }, |
| 312 | + 'actions': [ |
| 313 | + { |
| 314 | + # Trim down ICU. |
| 315 | + # Note that icupkg is invoked automatically, swapping endianness if needed. |
| 316 | + 'action_name': 'icutrim', |
| 317 | + 'inputs': [ '<(icu_data_in)', 'icu_small.json' ], |
| 318 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], |
| 319 | + 'action': [ '<(python)', |
| 320 | + 'icutrim.py', |
| 321 | + '-P', '<(PRODUCT_DIR)', |
| 322 | + '-D', '<(icu_data_in)', |
| 323 | + '--delete-tmp', |
| 324 | + '-T', '<(SHARED_INTERMEDIATE_DIR)/icutmp', |
| 325 | + '-F', 'icu_small.json', |
| 326 | + '-O', 'icudt<(icu_ver_major)<(icu_endianness).dat', |
| 327 | + '-v', |
| 328 | + '-L', '<(icu_locales)'], |
| 329 | + }, { |
| 330 | + # rename to get the final entrypoint name right (icudt64l.dat -> icusmdt64.dat) |
| 331 | + 'action_name': 'rename', |
| 332 | + 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icudt<(icu_ver_major)<(icu_endianness).dat' ], |
| 333 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icusmdt<(icu_ver_major).dat' ], |
| 334 | + 'action': [ 'cp', |
| 335 | + '<@(_inputs)', |
| 336 | + '<@(_outputs)', |
| 337 | + ], |
| 338 | + }, { |
| 339 | + # For icu-small, always use .c, don't try to use .S, etc. |
| 340 | + 'action_name': 'genccode', |
| 341 | + 'inputs': [ '<(SHARED_INTERMEDIATE_DIR)/icutmp/icusmdt<(icu_ver_major).dat' ], |
| 342 | + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.<(icu_asm_ext)' ], |
| 343 | + # for MSVC do not use "-c <(target_arch)" option |
| 344 | + 'action': [ '<(PRODUCT_DIR)/genccode<(EXECUTABLE_SUFFIX)', |
| 345 | + '<@(icu_asm_opts)', |
| 346 | + '-d', '<(SHARED_INTERMEDIATE_DIR)', |
| 347 | + '<@(_inputs)' ], |
| 348 | + }, |
| 349 | + ], |
| 350 | + }] |
283 | 351 | ],
|
284 | 352 | # This file contains the small ICU data
|
285 | 353 | 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.<(icu_asm_ext)' ],
|
|
0 commit comments