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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 }], | 261 }], |
262 ], | 262 ], |
263 'defines': [ | 263 'defines': [ |
264 'ARM_TEST', | 264 'ARM_TEST', |
265 ], | 265 ], |
266 }], | 266 }], |
267 ], | 267 ], |
268 }], # _toolset=="target" | 268 }], # _toolset=="target" |
269 ], | 269 ], |
270 }], # v8_target_arch=="arm" | 270 }], # v8_target_arch=="arm" |
| 271 ['v8_target_arch=="a64"', { |
| 272 'defines': [ |
| 273 'V8_TARGET_ARCH_A64', |
| 274 ], |
| 275 }], |
271 ['v8_target_arch=="ia32"', { | 276 ['v8_target_arch=="ia32"', { |
272 'defines': [ | 277 'defines': [ |
273 'V8_TARGET_ARCH_IA32', | 278 'V8_TARGET_ARCH_IA32', |
274 ], | 279 ], |
275 }], # v8_target_arch=="ia32" | 280 }], # v8_target_arch=="ia32" |
276 ['v8_target_arch=="mipsel"', { | 281 ['v8_target_arch=="mipsel"', { |
277 'defines': [ | 282 'defines': [ |
278 'V8_TARGET_ARCH_MIPS', | 283 'V8_TARGET_ARCH_MIPS', |
279 ], | 284 ], |
280 'variables': { | 285 'variables': { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 'cflags': [ '<(m32flag)' ], | 405 'cflags': [ '<(m32flag)' ], |
401 'ldflags': [ '<(m32flag)' ], | 406 'ldflags': [ '<(m32flag)' ], |
402 }], | 407 }], |
403 ], | 408 ], |
404 'xcode_settings': { | 409 'xcode_settings': { |
405 'ARCHS': [ 'i386' ], | 410 'ARCHS': [ 'i386' ], |
406 }, | 411 }, |
407 }], | 412 }], |
408 ], | 413 ], |
409 }], | 414 }], |
410 ['(OS=="linux") and (v8_target_arch=="x64")', { | 415 ['(OS=="linux" or OS=="android") and \ |
| 416 (v8_target_arch=="x64" or v8_target_arch=="a64")', { |
411 # Check whether the host compiler and target compiler support the | 417 # Check whether the host compiler and target compiler support the |
412 # '-m64' option and set it if so. | 418 # '-m64' option and set it if so. |
413 'target_conditions': [ | 419 'target_conditions': [ |
414 ['_toolset=="host"', { | 420 ['_toolset=="host"', { |
415 'variables': { | 421 'variables': { |
416 'm64flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m64 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m64" || true)', | 422 'm64flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m64 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m64" || true)', |
417 }, | 423 }, |
418 'cflags': [ '<(m64flag)' ], | 424 'cflags': [ '<(m64flag)' ], |
419 'ldflags': [ '<(m64flag)' ], | 425 'ldflags': [ '<(m64flag)' ], |
420 }], | 426 }], |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 'EnableCOMDATFolding': '2', | 512 'EnableCOMDATFolding': '2', |
507 }], | 513 }], |
508 ], | 514 ], |
509 }, | 515 }, |
510 }, | 516 }, |
511 'conditions': [ | 517 'conditions': [ |
512 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ | 518 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \ |
513 OS=="qnx"', { | 519 OS=="qnx"', { |
514 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 520 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
515 '-Wnon-virtual-dtor', '-Woverloaded-virtual', | 521 '-Wnon-virtual-dtor', '-Woverloaded-virtual', |
516 '<(wno_array_bounds)' ], | 522 '<(wno_array_bounds)', |
| 523 ], |
517 'conditions': [ | 524 'conditions': [ |
518 ['v8_optimized_debug==0', { | 525 ['v8_optimized_debug==0', { |
519 'cflags!': [ | 526 'cflags!': [ |
520 '-O0', | 527 '-O0', |
521 '-O3', | 528 '-O3', |
522 '-O2', | 529 '-O2', |
523 '-O1', | 530 '-O1', |
524 '-Os', | 531 '-Os', |
525 ], | 532 ], |
526 'cflags': [ | 533 'cflags': [ |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 'OptimizeReferences': '2', | 695 'OptimizeReferences': '2', |
689 'EnableCOMDATFolding': '2', | 696 'EnableCOMDATFolding': '2', |
690 }, | 697 }, |
691 }, | 698 }, |
692 }], # OS=="win" | 699 }], # OS=="win" |
693 ], # conditions | 700 ], # conditions |
694 }, # Release | 701 }, # Release |
695 }, # configurations | 702 }, # configurations |
696 }, # target_defaults | 703 }, # target_defaults |
697 } | 704 } |
OLD | NEW |