OLD | NEW |
---|---|
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 ['v8_enable_verify_heap==1', { | 129 ['v8_enable_verify_heap==1', { |
130 'defines': ['VERIFY_HEAP',], | 130 'defines': ['VERIFY_HEAP',], |
131 }], | 131 }], |
132 ['v8_interpreted_regexp==1', { | 132 ['v8_interpreted_regexp==1', { |
133 'defines': ['V8_INTERPRETED_REGEXP',], | 133 'defines': ['V8_INTERPRETED_REGEXP',], |
134 }], | 134 }], |
135 ['v8_target_arch=="arm"', { | 135 ['v8_target_arch=="arm"', { |
136 'defines': [ | 136 'defines': [ |
137 'V8_TARGET_ARCH_ARM', | 137 'V8_TARGET_ARCH_ARM', |
138 ], | 138 ], |
139 'variables': { | |
140 'armsimulator': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: arm" && echo "no" || echo "yes")', | |
141 }, | |
139 'conditions': [ | 142 'conditions': [ |
140 ['armv7==1', { | |
141 'defines': [ | |
142 'CAN_USE_ARMV7_INSTRUCTIONS=1', | |
143 ], | |
144 }], | |
145 [ 'v8_can_use_unaligned_accesses=="true"', { | 143 [ 'v8_can_use_unaligned_accesses=="true"', { |
146 'defines': [ | 144 'defines': [ |
147 'CAN_USE_UNALIGNED_ACCESSES=1', | 145 'CAN_USE_UNALIGNED_ACCESSES=1', |
148 ], | 146 ], |
149 }], | 147 }, { |
150 [ 'v8_can_use_unaligned_accesses=="false"', { | |
151 'defines': [ | 148 'defines': [ |
152 'CAN_USE_UNALIGNED_ACCESSES=0', | 149 'CAN_USE_UNALIGNED_ACCESSES=0', |
153 ], | 150 ], |
154 }], | 151 }], |
155 # NEON implies VFP3 and VFP3 implies VFP2. | 152 ['armsimulator=="no"', { |
156 [ 'v8_can_use_vfp2_instructions=="true" or arm_neon==1 or \ | 153 'conditions': [ |
157 arm_fpu=="vfpv3" or arm_fpu=="vfpv3-d16"', { | 154 [ 'armv7==1', { |
158 'defines': [ | 155 'target_conditions': [ |
Jakob Kummerow
2013/04/16 11:36:08
Refactoring suggestion (feel free to ignore if you
Rodolph Perfetta
2013/04/16 14:15:56
Done.
| |
159 'CAN_USE_VFP2_INSTRUCTIONS', | 156 ['_toolset=="target"', { |
157 'cflags': ['-march=armv7-a',], | |
158 }], | |
159 ], | |
160 }], | |
161 [ 'armv7==1 or armv7=="default"', { | |
162 'conditions': [ | |
163 [ 'arm_neon==1', { | |
164 'target_conditions': [ | |
165 ['_toolset=="target"', { | |
166 'cflags': ['-mfpu=neon',], | |
167 }], | |
168 ], | |
169 }, | |
170 { | |
171 'conditions': [ | |
172 [ 'arm_fpu!="default"', { | |
173 'target_conditions': [ | |
174 ['_toolset=="target"', { | |
175 'cflags': ['-mfpu=<(arm_fpu)',], | |
176 }], | |
177 ], | |
178 }], | |
179 ] | |
180 }], | |
181 ] | |
182 }], | |
183 [ 'arm_float_abi!="default"', { | |
184 'target_conditions': [ | |
185 ['_toolset=="target"', { | |
186 'cflags': ['-mfloat-abi=<(arm_float_abi)',], | |
187 }], | |
188 ], | |
189 }], | |
190 [ 'arm_thumb==1', { | |
191 'target_conditions': [ | |
192 ['_toolset=="target"', { | |
193 'cflags': ['-mthumb',], | |
194 }], | |
195 ], | |
196 }], | |
197 [ 'arm_thumb==0', { | |
198 'target_conditions': [ | |
199 ['_toolset=="target"', { | |
200 'cflags': ['-marm',], | |
201 }], | |
202 ], | |
203 }], | |
204 [ 'arm_test=="on"', { | |
205 'defines': [ | |
206 'ARM_TEST', | |
207 ], | |
208 }], | |
160 ], | 209 ], |
161 }], | 210 }], |
162 # NEON implies VFP3. | 211 ['armsimulator=="yes"', { |
163 [ 'v8_can_use_vfp3_instructions=="true" or arm_neon==1 or \ | |
164 arm_fpu=="vfpv3" or arm_fpu=="vfpv3-d16"', { | |
165 'defines': [ | 212 'defines': [ |
166 'CAN_USE_VFP3_INSTRUCTIONS', | 213 'ARM_TEST', |
167 ], | 214 ], |
168 }], | 215 'conditions': [ |
169 [ 'v8_use_arm_eabi_hardfloat=="true"', { | 216 [ 'armv7==1 or armv7=="default"', { |
170 'defines': [ | 217 'defines': [ |
171 'USE_EABI_HARDFLOAT=1', | 218 'CAN_USE_ARMV7_INSTRUCTIONS=1', |
172 'CAN_USE_VFP2_INSTRUCTIONS', | 219 ], |
173 ], | 220 'conditions': [ |
174 'target_conditions': [ | 221 [ 'arm_fpu=="default"', { |
175 ['_toolset=="target"', { | 222 'defines': [ |
176 'cflags': ['-mfloat-abi=hard',], | 223 'CAN_USE_VFP3_INSTRUCTIONS', |
224 ], | |
225 }], | |
226 [ 'arm_fpu=="vfpv3-d16"', { | |
227 'defines': [ | |
228 'CAN_USE_VFP3_INSTRUCTIONS', | |
229 ], | |
230 }], | |
231 [ 'arm_fpu=="vfpv3"', { | |
232 'defines': [ | |
233 'CAN_USE_VFP3_INSTRUCTIONS', | |
234 'CAN_USE_VFP32DREGS', | |
235 ], | |
236 }], | |
237 [ 'arm_fpu=="neon" or arm_neon==1', { | |
238 'defines': [ | |
239 'CAN_USE_VFP3_INSTRUCTIONS', | |
240 'CAN_USE_VFP32DREGS', | |
241 ], | |
242 }], | |
243 ], | |
177 }], | 244 }], |
178 ], | 245 [ 'arm_float_abi=="hard"', { |
179 }, { | 246 'defines': [ |
180 'defines': [ | 247 'USE_EABI_HARDFLOAT=1', |
181 'USE_EABI_HARDFLOAT=0', | 248 ], |
182 ], | 249 }], |
183 }], | 250 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { |
184 [ 'v8_can_use_vfp32dregs=="true"', { | 251 'defines': [ |
185 'defines': [ | 252 'USE_EABI_HARDFLOAT=0', |
186 'CAN_USE_VFP32DREGS', | 253 ], |
187 ], | 254 }], |
255 ] | |
188 }], | 256 }], |
189 ], | 257 ], |
190 }], # v8_target_arch=="arm" | 258 }], # v8_target_arch=="arm" |
191 ['v8_target_arch=="ia32"', { | 259 ['v8_target_arch=="ia32"', { |
192 'defines': [ | 260 'defines': [ |
193 'V8_TARGET_ARCH_IA32', | 261 'V8_TARGET_ARCH_IA32', |
194 ], | 262 ], |
195 }], # v8_target_arch=="ia32" | 263 }], # v8_target_arch=="ia32" |
196 ['v8_target_arch=="mipsel"', { | 264 ['v8_target_arch=="mipsel"', { |
197 'defines': [ | 265 'defines': [ |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
463 'OptimizeReferences': '2', | 531 'OptimizeReferences': '2', |
464 'EnableCOMDATFolding': '2', | 532 'EnableCOMDATFolding': '2', |
465 }, | 533 }, |
466 }, | 534 }, |
467 }], # OS=="win" | 535 }], # OS=="win" |
468 ], # conditions | 536 ], # conditions |
469 }, # Release | 537 }, # Release |
470 }, # configurations | 538 }, # configurations |
471 }, # target_defaults | 539 }, # target_defaults |
472 } | 540 } |
OLD | NEW |