|
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
|
|
0 commit comments