OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre
p -q "^Target: arm" && echo "yes" || echo "no")', | 95 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre
p -q "^Target: arm" && echo "yes" || echo "no")', |
96 }, | 96 }, |
97 'conditions': [ | 97 'conditions': [ |
98 ['armcompiler=="yes"', { | 98 ['armcompiler=="yes"', { |
99 'conditions': [ | 99 'conditions': [ |
100 [ 'arm_version==7', { | 100 [ 'arm_version==7', { |
101 'cflags': ['-march=armv7-a',], | 101 'cflags': ['-march=armv7-a',], |
102 }], | 102 }], |
103 [ 'arm_version==7 or arm_version=="default"', { | 103 [ 'arm_version==7 or arm_version=="default"', { |
104 'conditions': [ | 104 'conditions': [ |
105 [ 'arm_neon==1', { | 105 [ 'arm_fpu!="default"', { |
106 'cflags': ['-mfpu=neon',], | 106 'cflags': ['-mfpu=<(arm_fpu)',], |
107 }, | |
108 { | |
109 'conditions': [ | |
110 [ 'arm_fpu!="default"', { | |
111 'cflags': ['-mfpu=<(arm_fpu)',], | |
112 }], | |
113 ], | |
114 }], | 107 }], |
115 ], | 108 ], |
116 }], | 109 }], |
117 [ 'arm_float_abi!="default"', { | 110 [ 'arm_float_abi!="default"', { |
118 'cflags': ['-mfloat-abi=<(arm_float_abi)',], | 111 'cflags': ['-mfloat-abi=<(arm_float_abi)',], |
119 }], | 112 }], |
120 [ 'arm_thumb==1', { | 113 [ 'arm_thumb==1', { |
121 'cflags': ['-mthumb',], | 114 'cflags': ['-mthumb',], |
122 }], | 115 }], |
123 [ 'arm_thumb==0', { | 116 [ 'arm_thumb==0', { |
(...skipping 22 matching lines...) Expand all Loading... |
146 'defines': [ | 139 'defines': [ |
147 'CAN_USE_VFP3_INSTRUCTIONS', | 140 'CAN_USE_VFP3_INSTRUCTIONS', |
148 ], | 141 ], |
149 }], | 142 }], |
150 [ 'arm_fpu=="vfpv3"', { | 143 [ 'arm_fpu=="vfpv3"', { |
151 'defines': [ | 144 'defines': [ |
152 'CAN_USE_VFP3_INSTRUCTIONS', | 145 'CAN_USE_VFP3_INSTRUCTIONS', |
153 'CAN_USE_VFP32DREGS', | 146 'CAN_USE_VFP32DREGS', |
154 ], | 147 ], |
155 }], | 148 }], |
156 [ 'arm_fpu=="neon" or arm_neon==1', { | 149 [ 'arm_fpu=="neon"', { |
157 'defines': [ | 150 'defines': [ |
158 'CAN_USE_VFP3_INSTRUCTIONS', | 151 'CAN_USE_VFP3_INSTRUCTIONS', |
159 'CAN_USE_VFP32DREGS', | 152 'CAN_USE_VFP32DREGS', |
| 153 'CAN_USE_NEON', |
160 ], | 154 ], |
161 }], | 155 }], |
162 ], | 156 ], |
163 }], | 157 }], |
164 [ 'arm_float_abi=="hard"', { | 158 [ 'arm_float_abi=="hard"', { |
165 'defines': [ | 159 'defines': [ |
166 'USE_EABI_HARDFLOAT=1', | 160 'USE_EABI_HARDFLOAT=1', |
167 ], | 161 ], |
168 }], | 162 }], |
169 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 163 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { |
(...skipping 13 matching lines...) Expand all Loading... |
183 'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q
"^Target: arm" && echo "yes" || echo "no")', | 177 'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q
"^Target: arm" && echo "yes" || echo "no")', |
184 }, | 178 }, |
185 'conditions': [ | 179 'conditions': [ |
186 ['armcompiler=="yes"', { | 180 ['armcompiler=="yes"', { |
187 'conditions': [ | 181 'conditions': [ |
188 [ 'arm_version==7', { | 182 [ 'arm_version==7', { |
189 'cflags': ['-march=armv7-a',], | 183 'cflags': ['-march=armv7-a',], |
190 }], | 184 }], |
191 [ 'arm_version==7 or arm_version=="default"', { | 185 [ 'arm_version==7 or arm_version=="default"', { |
192 'conditions': [ | 186 'conditions': [ |
193 [ 'arm_neon==1', { | 187 [ 'arm_fpu!="default"', { |
194 'cflags': ['-mfpu=neon',], | 188 'cflags': ['-mfpu=<(arm_fpu)',], |
195 }, | |
196 { | |
197 'conditions': [ | |
198 [ 'arm_fpu!="default"', { | |
199 'cflags': ['-mfpu=<(arm_fpu)',], | |
200 }], | |
201 ], | |
202 }], | 189 }], |
203 ], | 190 ], |
204 }], | 191 }], |
205 [ 'arm_float_abi!="default"', { | 192 [ 'arm_float_abi!="default"', { |
206 'cflags': ['-mfloat-abi=<(arm_float_abi)',], | 193 'cflags': ['-mfloat-abi=<(arm_float_abi)',], |
207 }], | 194 }], |
208 [ 'arm_thumb==1', { | 195 [ 'arm_thumb==1', { |
209 'cflags': ['-mthumb',], | 196 'cflags': ['-mthumb',], |
210 }], | 197 }], |
211 [ 'arm_thumb==0', { | 198 [ 'arm_thumb==0', { |
212 'cflags': ['-marm',], | 199 'cflags': ['-marm',], |
213 }], | 200 }], |
214 [ 'arm_test=="on"', { | 201 [ 'arm_test=="on"', { |
215 'defines': [ | 202 'defines': [ |
216 'ARM_TEST', | 203 'ARM_TEST', |
217 ], | 204 ], |
| 205 'conditions': [ |
| 206 [ 'arm_fpu=="vfpv3-d16"', { |
| 207 'defines': [ |
| 208 'CAN_USE_VFP3_INSTRUCTIONS', |
| 209 ], |
| 210 }], |
| 211 [ 'arm_fpu=="vfpv3"', { |
| 212 'defines': [ |
| 213 'CAN_USE_VFP3_INSTRUCTIONS', |
| 214 'CAN_USE_VFP32DREGS', |
| 215 ], |
| 216 }], |
| 217 [ 'arm_fpu=="neon"', { |
| 218 'defines': [ |
| 219 'CAN_USE_VFP3_INSTRUCTIONS', |
| 220 'CAN_USE_VFP32DREGS', |
| 221 'CAN_USE_NEON', |
| 222 ], |
| 223 }], |
| 224 ], |
218 }], | 225 }], |
219 ], | 226 ], |
220 }, { | 227 }, { |
221 # armcompiler=="no" | 228 # armcompiler=="no" |
222 'conditions': [ | 229 'conditions': [ |
223 [ 'arm_version==7 or arm_version=="default"', { | 230 [ 'arm_version==7 or arm_version=="default"', { |
224 'defines': [ | 231 'defines': [ |
225 'CAN_USE_ARMV7_INSTRUCTIONS=1', | 232 'CAN_USE_ARMV7_INSTRUCTIONS=1', |
226 ], | 233 ], |
227 'conditions': [ | 234 'conditions': [ |
228 [ 'arm_fpu=="default"', { | 235 [ 'arm_fpu=="default"', { |
229 'defines': [ | 236 'defines': [ |
230 'CAN_USE_VFP3_INSTRUCTIONS', | 237 'CAN_USE_VFP3_INSTRUCTIONS', |
| 238 'CAN_USE_VFP32DREGS', |
| 239 'CAN_USE_NEON', |
231 ], | 240 ], |
232 }], | 241 }], |
233 [ 'arm_fpu=="vfpv3-d16"', { | 242 [ 'arm_fpu=="vfpv3-d16"', { |
234 'defines': [ | 243 'defines': [ |
235 'CAN_USE_VFP3_INSTRUCTIONS', | 244 'CAN_USE_VFP3_INSTRUCTIONS', |
236 ], | 245 ], |
237 }], | 246 }], |
238 [ 'arm_fpu=="vfpv3"', { | 247 [ 'arm_fpu=="vfpv3"', { |
239 'defines': [ | 248 'defines': [ |
240 'CAN_USE_VFP3_INSTRUCTIONS', | 249 'CAN_USE_VFP3_INSTRUCTIONS', |
241 'CAN_USE_VFP32DREGS', | 250 'CAN_USE_VFP32DREGS', |
242 ], | 251 ], |
243 }], | 252 }], |
244 [ 'arm_fpu=="neon" or arm_neon==1', { | 253 [ 'arm_fpu=="neon"', { |
245 'defines': [ | 254 'defines': [ |
246 'CAN_USE_VFP3_INSTRUCTIONS', | 255 'CAN_USE_VFP3_INSTRUCTIONS', |
247 'CAN_USE_VFP32DREGS', | 256 'CAN_USE_VFP32DREGS', |
| 257 'CAN_USE_NEON', |
248 ], | 258 ], |
249 }], | 259 }], |
250 ], | 260 ], |
251 }], | 261 }], |
252 [ 'arm_float_abi=="hard"', { | 262 [ 'arm_float_abi=="hard"', { |
253 'defines': [ | 263 'defines': [ |
254 'USE_EABI_HARDFLOAT=1', | 264 'USE_EABI_HARDFLOAT=1', |
255 ], | 265 ], |
256 }], | 266 }], |
257 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 267 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 'OptimizeReferences': '2', | 801 'OptimizeReferences': '2', |
792 'EnableCOMDATFolding': '2', | 802 'EnableCOMDATFolding': '2', |
793 }, | 803 }, |
794 }, | 804 }, |
795 }], # OS=="win" | 805 }], # OS=="win" |
796 ], # conditions | 806 ], # conditions |
797 }, # Release | 807 }, # Release |
798 }, # configurations | 808 }, # configurations |
799 }, # target_defaults | 809 }, # target_defaults |
800 } | 810 } |
OLD | NEW |