| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 'cflags': [ '<(m32flag)' ], | 445 'cflags': [ '<(m32flag)' ], |
| 446 'ldflags': [ '<(m32flag)' ], | 446 'ldflags': [ '<(m32flag)' ], |
| 447 }], | 447 }], |
| 448 ], | 448 ], |
| 449 'xcode_settings': { | 449 'xcode_settings': { |
| 450 'ARCHS': [ 'i386' ], | 450 'ARCHS': [ 'i386' ], |
| 451 }, | 451 }, |
| 452 }], | 452 }], |
| 453 ], | 453 ], |
| 454 }], | 454 }], |
| 455 ['(OS=="linux") and (v8_target_arch=="x64")', { |
| 456 # Check whether the host compiler and target compiler support the |
| 457 # '-m64' option and set it if so. |
| 458 'target_conditions': [ |
| 459 ['_toolset=="host"', { |
| 460 'variables': { |
| 461 'm64flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m64 -E -
> /dev/null 2>&1) && echo "-m64" || true)', |
| 462 }, |
| 463 'cflags': [ '<(m64flag)' ], |
| 464 'ldflags': [ '<(m64flag)' ], |
| 465 }], |
| 466 ['_toolset=="target"', { |
| 467 'variables': { |
| 468 'm64flag': '<!((echo | $(echo ${CXX_target:-<(CXX)}) -m64 -E - > /
dev/null 2>&1) && echo "-m64" || true)', |
| 469 }, |
| 470 'cflags': [ '<(m64flag)' ], |
| 471 'ldflags': [ '<(m64flag)' ], |
| 472 }] |
| 473 ], |
| 474 }], |
| 455 ['OS=="freebsd" or OS=="openbsd"', { | 475 ['OS=="freebsd" or OS=="openbsd"', { |
| 456 'cflags': [ '-I/usr/local/include' ], | 476 'cflags': [ '-I/usr/local/include' ], |
| 457 }], | 477 }], |
| 458 ['OS=="netbsd"', { | 478 ['OS=="netbsd"', { |
| 459 'cflags': [ '-I/usr/pkg/include' ], | 479 'cflags': [ '-I/usr/pkg/include' ], |
| 460 }], | 480 }], |
| 461 ], # conditions | 481 ], # conditions |
| 462 'configurations': { | 482 'configurations': { |
| 463 'Debug': { | 483 'Debug': { |
| 464 'variables': { | 484 'variables': { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 'OptimizeReferences': '2', | 622 'OptimizeReferences': '2', |
| 603 'EnableCOMDATFolding': '2', | 623 'EnableCOMDATFolding': '2', |
| 604 }, | 624 }, |
| 605 }, | 625 }, |
| 606 }], # OS=="win" | 626 }], # OS=="win" |
| 607 ], # conditions | 627 ], # conditions |
| 608 }, # Release | 628 }, # Release |
| 609 }, # configurations | 629 }, # configurations |
| 610 }, # target_defaults | 630 }, # target_defaults |
| 611 } | 631 } |
| OLD | NEW |