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 13 matching lines...) Expand all Loading... | |
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 # Shared definitions for all V8-related targets. | 28 # Shared definitions for all V8-related targets. |
29 | 29 |
30 { | 30 { |
31 'variables': { | 31 'variables': { |
32 'msvs_use_common_release': 0, | 32 'msvs_use_common_release': 0, |
33 'gcc_version%': 'unknown', | 33 'gcc_version%': 'unknown', |
34 'CXX%': '${CXX:-$(which g++)}', # Used to assemble a shell command. | 34 'clang%': 0, |
35 'v8_target_arch%': '<(target_arch)', | 35 'v8_target_arch%': '<(target_arch)', |
36 # Native Client builds currently use the V8 ARM JIT and | 36 # Native Client builds currently use the V8 ARM JIT and |
37 # arm/simulator-arm.cc to defer the significant effort required | 37 # arm/simulator-arm.cc to defer the significant effort required |
38 # for NaCl JIT support. The nacl_target_arch variable provides | 38 # for NaCl JIT support. The nacl_target_arch variable provides |
39 # the 'true' target arch for places in this file that need it. | 39 # the 'true' target arch for places in this file that need it. |
40 # TODO(bradchen): get rid of nacl_target_arch when someday | 40 # TODO(bradchen): get rid of nacl_target_arch when someday |
41 # NaCl V8 builds stop using the ARM simulator | 41 # NaCl V8 builds stop using the ARM simulator |
42 'nacl_target_arch%': 'none', # must be set externally | 42 'nacl_target_arch%': 'none', # must be set externally |
43 | 43 |
44 # Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP | 44 # Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 'v8_toolset_for_d8%': 'target', | 76 'v8_toolset_for_d8%': 'target', |
77 | 77 |
78 'host_os%': '<(OS)', | 78 'host_os%': '<(OS)', |
79 'werror%': '-Werror', | 79 'werror%': '-Werror', |
80 # For a shared library build, results in "libv8-<(soname_version).so". | 80 # For a shared library build, results in "libv8-<(soname_version).so". |
81 'soname_version%': '', | 81 'soname_version%': '', |
82 | 82 |
83 # Allow to suppress the array bounds warning (default is no suppression). | 83 # Allow to suppress the array bounds warning (default is no suppression). |
84 'wno_array_bounds%': '', | 84 'wno_array_bounds%': '', |
85 }, | 85 }, |
86 'conditions': [ | |
87 ['host_arch=="ia32" or host_arch=="x64" or clang==1', { | |
88 'variables': { | |
89 'host_cxx_is_biarch%': 1, | |
90 }, | |
91 }, { | |
92 'variables': { | |
93 'host_cxx_is_biarch%': 0, | |
94 }, | |
95 }], | |
96 ['target_arch=="ia32" or target_arch=="x64" or target_arch=="x87" or \ | |
97 clang==1', { | |
98 'variables': { | |
99 'target_cxx_is_biarch%': 1, | |
100 }, | |
101 }, { | |
102 'variables': { | |
103 'target_cxx_is_biarch%': 0, | |
104 }, | |
105 }], | |
106 ], | |
86 'target_defaults': { | 107 'target_defaults': { |
87 'conditions': [ | 108 'conditions': [ |
88 ['v8_target_arch=="arm"', { | 109 ['v8_target_arch=="arm"', { |
89 'defines': [ | 110 'defines': [ |
90 'V8_TARGET_ARCH_ARM', | 111 'V8_TARGET_ARCH_ARM', |
91 ], | 112 ], |
92 'conditions': [ | 113 'conditions': [ |
93 [ 'arm_version==7 or arm_version=="default"', { | 114 [ 'arm_version==7 or arm_version=="default"', { |
94 'defines': [ | 115 'defines': [ |
95 'CAN_USE_ARMV7_INSTRUCTIONS', | 116 'CAN_USE_ARMV7_INSTRUCTIONS', |
(...skipping 18 matching lines...) Expand all Loading... | |
114 ], | 135 ], |
115 }], | 136 }], |
116 [ 'arm_test_noprobe=="on"', { | 137 [ 'arm_test_noprobe=="on"', { |
117 'defines': [ | 138 'defines': [ |
118 'ARM_TEST_NO_FEATURE_PROBE', | 139 'ARM_TEST_NO_FEATURE_PROBE', |
119 ], | 140 ], |
120 }], | 141 }], |
121 ], | 142 ], |
122 'target_conditions': [ | 143 'target_conditions': [ |
123 ['_toolset=="host"', { | 144 ['_toolset=="host"', { |
124 'variables': { | |
125 'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre p -q "^Target: arm" && echo "yes" || echo "no")', | |
126 }, | |
127 'conditions': [ | 145 'conditions': [ |
128 ['armcompiler=="yes"', { | 146 ['v8_target_arch==host_arch', { |
147 # Host built with an Arm CXX compiler. | |
129 'conditions': [ | 148 'conditions': [ |
130 [ 'arm_version==7', { | 149 [ 'arm_version==7', { |
131 'cflags': ['-march=armv7-a',], | 150 'cflags': ['-march=armv7-a',], |
132 }], | 151 }], |
133 [ 'arm_version==7 or arm_version=="default"', { | 152 [ 'arm_version==7 or arm_version=="default"', { |
134 'conditions': [ | 153 'conditions': [ |
135 [ 'arm_fpu!="default"', { | 154 [ 'arm_fpu!="default"', { |
136 'cflags': ['-mfpu=<(arm_fpu)',], | 155 'cflags': ['-mfpu=<(arm_fpu)',], |
137 }], | 156 }], |
138 ], | 157 ], |
139 }], | 158 }], |
140 [ 'arm_float_abi!="default"', { | 159 [ 'arm_float_abi!="default"', { |
141 'cflags': ['-mfloat-abi=<(arm_float_abi)',], | 160 'cflags': ['-mfloat-abi=<(arm_float_abi)',], |
142 }], | 161 }], |
143 [ 'arm_thumb==1', { | 162 [ 'arm_thumb==1', { |
144 'cflags': ['-mthumb',], | 163 'cflags': ['-mthumb',], |
145 }], | 164 }], |
146 [ 'arm_thumb==0', { | 165 [ 'arm_thumb==0', { |
147 'cflags': ['-marm',], | 166 'cflags': ['-marm',], |
148 }], | 167 }], |
149 ], | 168 ], |
150 }, { | 169 }, { |
151 # armcompiler=="no" | 170 # 'v8_target_arch!=host_arch' |
171 # Host not built with an Arm CXX compiler (simulator build). | |
152 'conditions': [ | 172 'conditions': [ |
153 [ 'arm_float_abi=="hard"', { | 173 [ 'arm_float_abi=="hard"', { |
154 'defines': [ | 174 'defines': [ |
155 'USE_EABI_HARDFLOAT=1', | 175 'USE_EABI_HARDFLOAT=1', |
156 ], | 176 ], |
157 }], | 177 }], |
158 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 178 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { |
159 'defines': [ | 179 'defines': [ |
160 'USE_EABI_HARDFLOAT=0', | 180 'USE_EABI_HARDFLOAT=0', |
161 ], | 181 ], |
162 }], | 182 }], |
163 ], | 183 ], |
164 }], | 184 }], |
165 ], | 185 ], |
166 }], # _toolset=="host" | 186 }], # _toolset=="host" |
167 ['_toolset=="target"', { | 187 ['_toolset=="target"', { |
168 'variables': { | |
169 'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q "^Target: arm" && echo "yes" || echo "no")', | |
170 }, | |
171 'conditions': [ | 188 'conditions': [ |
172 ['armcompiler=="yes"', { | 189 ['v8_target_arch==target_arch', { |
190 # Target built with an Arm CXX compiler. | |
173 'conditions': [ | 191 'conditions': [ |
174 [ 'arm_version==7', { | 192 [ 'arm_version==7', { |
175 'cflags': ['-march=armv7-a',], | 193 'cflags': ['-march=armv7-a',], |
176 }], | 194 }], |
177 [ 'arm_version==7 or arm_version=="default"', { | 195 [ 'arm_version==7 or arm_version=="default"', { |
178 'conditions': [ | 196 'conditions': [ |
179 [ 'arm_fpu!="default"', { | 197 [ 'arm_fpu!="default"', { |
180 'cflags': ['-mfpu=<(arm_fpu)',], | 198 'cflags': ['-mfpu=<(arm_fpu)',], |
181 }], | 199 }], |
182 ], | 200 ], |
183 }], | 201 }], |
184 [ 'arm_float_abi!="default"', { | 202 [ 'arm_float_abi!="default"', { |
185 'cflags': ['-mfloat-abi=<(arm_float_abi)',], | 203 'cflags': ['-mfloat-abi=<(arm_float_abi)',], |
186 }], | 204 }], |
187 [ 'arm_thumb==1', { | 205 [ 'arm_thumb==1', { |
188 'cflags': ['-mthumb',], | 206 'cflags': ['-mthumb',], |
189 }], | 207 }], |
190 [ 'arm_thumb==0', { | 208 [ 'arm_thumb==0', { |
191 'cflags': ['-marm',], | 209 'cflags': ['-marm',], |
192 }], | 210 }], |
193 ], | 211 ], |
194 }, { | 212 }, { |
195 # armcompiler=="no" | 213 # 'v8_target_arch!=target_arch' |
214 # Target not built with an Arm CXX compiler (simulator build). | |
196 'conditions': [ | 215 'conditions': [ |
197 [ 'arm_float_abi=="hard"', { | 216 [ 'arm_float_abi=="hard"', { |
198 'defines': [ | 217 'defines': [ |
199 'USE_EABI_HARDFLOAT=1', | 218 'USE_EABI_HARDFLOAT=1', |
200 ], | 219 ], |
201 }], | 220 }], |
202 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 221 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { |
203 'defines': [ | 222 'defines': [ |
204 'USE_EABI_HARDFLOAT=0', | 223 'USE_EABI_HARDFLOAT=0', |
205 ], | 224 ], |
(...skipping 17 matching lines...) Expand all Loading... | |
223 ['v8_target_arch=="x87"', { | 242 ['v8_target_arch=="x87"', { |
224 'defines': [ | 243 'defines': [ |
225 'V8_TARGET_ARCH_X87', | 244 'V8_TARGET_ARCH_X87', |
226 ], | 245 ], |
227 'cflags': ['-march=i586'], | 246 'cflags': ['-march=i586'], |
228 }], # v8_target_arch=="x87" | 247 }], # v8_target_arch=="x87" |
229 ['v8_target_arch=="mips"', { | 248 ['v8_target_arch=="mips"', { |
230 'defines': [ | 249 'defines': [ |
231 'V8_TARGET_ARCH_MIPS', | 250 'V8_TARGET_ARCH_MIPS', |
232 ], | 251 ], |
233 'variables': { | |
234 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" & & echo "yes" || echo "no")', | |
235 }, | |
236 'conditions': [ | 252 'conditions': [ |
237 ['mipscompiler=="yes"', { | 253 ['v8_target_arch==target_arch', { |
254 # Target built with a Mips CXX compiler. | |
238 'target_conditions': [ | 255 'target_conditions': [ |
239 ['_toolset=="target"', { | 256 ['_toolset=="target"', { |
240 'cflags': ['-EB'], | 257 'cflags': ['-EB'], |
241 'ldflags': ['-EB'], | 258 'ldflags': ['-EB'], |
242 'conditions': [ | 259 'conditions': [ |
243 [ 'v8_use_mips_abi_hardfloat=="true"', { | 260 [ 'v8_use_mips_abi_hardfloat=="true"', { |
244 'cflags': ['-mhard-float'], | 261 'cflags': ['-mhard-float'], |
245 'ldflags': ['-mhard-float'], | 262 'ldflags': ['-mhard-float'], |
246 }, { | 263 }, { |
247 'cflags': ['-msoft-float'], | 264 'cflags': ['-msoft-float'], |
(...skipping 26 matching lines...) Expand all Loading... | |
274 }], | 291 }], |
275 ['mips_arch_variant=="r2"', { | 292 ['mips_arch_variant=="r2"', { |
276 'defines': ['_MIPS_ARCH_MIPS32R2',], | 293 'defines': ['_MIPS_ARCH_MIPS32R2',], |
277 }], | 294 }], |
278 ], | 295 ], |
279 }], # v8_target_arch=="mips" | 296 }], # v8_target_arch=="mips" |
280 ['v8_target_arch=="mipsel"', { | 297 ['v8_target_arch=="mipsel"', { |
281 'defines': [ | 298 'defines': [ |
282 'V8_TARGET_ARCH_MIPS', | 299 'V8_TARGET_ARCH_MIPS', |
283 ], | 300 ], |
284 'variables': { | |
285 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" & & echo "yes" || echo "no")', | |
286 }, | |
287 'conditions': [ | 301 'conditions': [ |
288 ['mipscompiler=="yes"', { | 302 ['v8_target_arch==target_arch', { |
303 # Target built with a Mips CXX compiler. | |
289 'target_conditions': [ | 304 'target_conditions': [ |
290 ['_toolset=="target"', { | 305 ['_toolset=="target"', { |
291 'cflags': ['-EL'], | 306 'cflags': ['-EL'], |
292 'ldflags': ['-EL'], | 307 'ldflags': ['-EL'], |
293 'conditions': [ | 308 'conditions': [ |
294 [ 'v8_use_mips_abi_hardfloat=="true"', { | 309 [ 'v8_use_mips_abi_hardfloat=="true"', { |
295 'cflags': ['-mhard-float'], | 310 'cflags': ['-mhard-float'], |
296 'ldflags': ['-mhard-float'], | 311 'ldflags': ['-mhard-float'], |
297 }, { | 312 }, { |
298 'cflags': ['-msoft-float'], | 313 'cflags': ['-msoft-float'], |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
331 }], | 346 }], |
332 ['mips_arch_variant=="loongson"', { | 347 ['mips_arch_variant=="loongson"', { |
333 'defines': ['_MIPS_ARCH_LOONGSON',], | 348 'defines': ['_MIPS_ARCH_LOONGSON',], |
334 }], | 349 }], |
335 ], | 350 ], |
336 }], # v8_target_arch=="mipsel" | 351 }], # v8_target_arch=="mipsel" |
337 ['v8_target_arch=="mips64el"', { | 352 ['v8_target_arch=="mips64el"', { |
338 'defines': [ | 353 'defines': [ |
339 'V8_TARGET_ARCH_MIPS64', | 354 'V8_TARGET_ARCH_MIPS64', |
340 ], | 355 ], |
341 'variables': { | |
342 'mipscompiler': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: mips" & & echo "yes" || echo "no")', | |
343 }, | |
344 'conditions': [ | 356 'conditions': [ |
345 ['mipscompiler=="yes"', { | 357 ['v8_target_arch==target_arch', { |
358 # Target built with a Mips CXX compiler. | |
346 'target_conditions': [ | 359 'target_conditions': [ |
347 ['_toolset=="target"', { | 360 ['_toolset=="target"', { |
348 'cflags': ['-EL'], | 361 'cflags': ['-EL'], |
349 'ldflags': ['-EL'], | 362 'ldflags': ['-EL'], |
350 'conditions': [ | 363 'conditions': [ |
351 [ 'v8_use_mips_abi_hardfloat=="true"', { | 364 [ 'v8_use_mips_abi_hardfloat=="true"', { |
352 'cflags': ['-mhard-float'], | 365 'cflags': ['-mhard-float'], |
353 'ldflags': ['-mhard-float'], | 366 'ldflags': ['-mhard-float'], |
354 }, { | 367 }, { |
355 'cflags': ['-msoft-float'], | 368 'cflags': ['-msoft-float'], |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
432 'CharacterSet': '1', | 445 'CharacterSet': '1', |
433 }, | 446 }, |
434 }], | 447 }], |
435 ['OS=="win" and v8_enable_prof==1', { | 448 ['OS=="win" and v8_enable_prof==1', { |
436 'msvs_settings': { | 449 'msvs_settings': { |
437 'VCLinkerTool': { | 450 'VCLinkerTool': { |
438 'GenerateMapFile': 'true', | 451 'GenerateMapFile': 'true', |
439 }, | 452 }, |
440 }, | 453 }, |
441 }], | 454 }], |
455 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | |
456 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | |
457 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | |
458 v8_target_arch=="x87" or v8_target_arch=="mips" or \ | |
459 v8_target_arch=="mipsel")', { | |
460 'target_conditions': [ | |
461 ['_toolset=="host"', { | |
462 'conditions': [ | |
463 ['host_cxx_is_biarch==1', { | |
464 'cflags': [ '-m32' ], | |
465 'ldflags': [ '-m32' ] | |
466 }], | |
467 ], | |
468 'xcode_settings': { | |
469 'ARCHS': [ 'i386' ], | |
470 }, | |
471 }], | |
472 ['_toolset=="target"', { | |
Jakob Kummerow
2014/07/16 08:25:34
nit: this should have the same indentation as the
rmcilroy
2014/07/16 09:20:26
Done.
| |
473 'conditions': [ | |
474 ['target_cxx_is_biarch==1 and nacl_target_arch!="nacl_x64"', { | |
475 'cflags': [ '-m32' ], | |
476 'ldflags': [ '-m32' ], | |
477 }], | |
478 ], | |
479 'xcode_settings': { | |
480 'ARCHS': [ 'i386' ], | |
481 }, | |
482 }], | |
483 ], | |
484 }], | |
485 ['(OS=="linux" or OS=="android") and \ | |
486 (v8_target_arch=="x64" or v8_target_arch=="arm64")', { | |
487 'target_conditions': [ | |
488 ['_toolset=="host"', { | |
489 'conditions': [ | |
490 ['host_cxx_is_biarch==1', { | |
491 'cflags': [ '-m64' ], | |
492 'ldflags': [ '-m64' ] | |
493 }], | |
494 ], | |
495 }], | |
496 ['_toolset=="target"', { | |
497 'conditions': [ | |
498 ['target_cxx_is_biarch==1', { | |
499 'cflags': [ '-m64' ], | |
500 'ldflags': [ '-m64' ], | |
501 }], | |
502 ] | |
503 }], | |
504 ], | |
505 }], | |
442 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 506 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
443 or OS=="netbsd" or OS=="qnx"', { | 507 or OS=="netbsd" or OS=="qnx"', { |
444 'conditions': [ | 508 'conditions': [ |
445 [ 'v8_no_strict_aliasing==1', { | 509 [ 'v8_no_strict_aliasing==1', { |
446 'cflags': [ '-fno-strict-aliasing' ], | 510 'cflags': [ '-fno-strict-aliasing' ], |
447 }], | 511 }], |
448 ], # conditions | 512 ], # conditions |
449 }], | 513 }], |
450 ['OS=="solaris"', { | 514 ['OS=="solaris"', { |
451 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 515 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
452 }], | 516 }], |
453 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | |
454 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | |
455 (v8_target_arch=="arm" or v8_target_arch=="ia32" or v8_target_arch=="x87 " or\ | |
456 v8_target_arch=="mips" or v8_target_arch=="mipsel")', { | |
457 # Check whether the host compiler and target compiler support the | |
458 # '-m32' option and set it if so. | |
459 'target_conditions': [ | |
460 ['_toolset=="host"', { | |
461 'variables': { | |
462 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev /null 2>&1 < /dev/null) && echo "-m32" || true)', | |
463 }, | |
464 'cflags': [ '<(m32flag)' ], | |
465 'ldflags': [ '<(m32flag)' ], | |
466 'xcode_settings': { | |
467 'ARCHS': [ 'i386' ], | |
468 }, | |
469 }], | |
470 ['_toolset=="target"', { | |
471 'variables': { | |
472 'm32flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m32 -E - > /dev/nul l 2>&1 < /dev/null) && echo "-m32" || true)', | |
473 'clang%': 0, | |
474 }, | |
475 'conditions': [ | |
476 ['((OS!="android" and OS!="qnx") or clang==1) and \ | |
477 nacl_target_arch!="nacl_x64"', { | |
478 'cflags': [ '<(m32flag)' ], | |
479 'ldflags': [ '<(m32flag)' ], | |
480 }], | |
481 ], | |
482 'xcode_settings': { | |
483 'ARCHS': [ 'i386' ], | |
484 }, | |
485 }], | |
486 ], | |
487 }], | |
488 ['(OS=="linux" or OS=="android") and \ | |
489 (v8_target_arch=="x64" or v8_target_arch=="arm64")', { | |
490 # Check whether the host compiler and target compiler support the | |
491 # '-m64' option and set it if so. | |
492 'target_conditions': [ | |
493 ['_toolset=="host"', { | |
494 'variables': { | |
495 'm64flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m64 -E - > /dev /null 2>&1 < /dev/null) && echo "-m64" || true)', | |
496 }, | |
497 'cflags': [ '<(m64flag)' ], | |
498 'ldflags': [ '<(m64flag)' ], | |
499 }], | |
500 ['_toolset=="target"', { | |
501 'variables': { | |
502 'm64flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m64 -E - > /dev/nul l 2>&1 < /dev/null) && echo "-m64" || true)', | |
503 }, | |
504 'conditions': [ | |
505 ['((OS!="android" and OS!="qnx") or clang==1)', { | |
506 'cflags': [ '<(m64flag)' ], | |
507 'ldflags': [ '<(m64flag)' ], | |
508 }], | |
509 ], | |
510 }] | |
511 ], | |
512 }], | |
513 ['OS=="freebsd" or OS=="openbsd"', { | 517 ['OS=="freebsd" or OS=="openbsd"', { |
514 'cflags': [ '-I/usr/local/include' ], | 518 'cflags': [ '-I/usr/local/include' ], |
515 }], | 519 }], |
516 ['OS=="netbsd"', { | 520 ['OS=="netbsd"', { |
517 'cflags': [ '-I/usr/pkg/include' ], | 521 'cflags': [ '-I/usr/pkg/include' ], |
518 }], | 522 }], |
519 ], # conditions | 523 ], # conditions |
520 'configurations': { | 524 'configurations': { |
521 # Abstract configuration for v8_optimized_debug == 0. | 525 # Abstract configuration for v8_optimized_debug == 0. |
522 'DebugBase0': { | 526 'DebugBase0': { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
813 'OptimizeReferences': '2', | 817 'OptimizeReferences': '2', |
814 'EnableCOMDATFolding': '2', | 818 'EnableCOMDATFolding': '2', |
815 }, | 819 }, |
816 }, | 820 }, |
817 }], # OS=="win" | 821 }], # OS=="win" |
818 ], # conditions | 822 ], # conditions |
819 }, # Release | 823 }, # Release |
820 }, # configurations | 824 }, # configurations |
821 }, # target_defaults | 825 }, # target_defaults |
822 } | 826 } |
OLD | NEW |