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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 'cflags': [ '-I/usr/local/include' ], | 483 'cflags': [ '-I/usr/local/include' ], |
484 }], | 484 }], |
485 ['OS=="netbsd"', { | 485 ['OS=="netbsd"', { |
486 'cflags': [ '-I/usr/pkg/include' ], | 486 'cflags': [ '-I/usr/pkg/include' ], |
487 }], | 487 }], |
488 ], # conditions | 488 ], # conditions |
489 'configurations': { | 489 'configurations': { |
490 'Debug': { | 490 'Debug': { |
491 'variables': { | 491 'variables': { |
492 'v8_enable_extra_checks%': 1, | 492 'v8_enable_extra_checks%': 1, |
493 'v8_enable_handle_zapping%': 1, | |
494 }, | 493 }, |
495 'defines': [ | 494 'defines': [ |
496 'DEBUG', | 495 'DEBUG', |
497 'ENABLE_DISASSEMBLER', | 496 'ENABLE_DISASSEMBLER', |
498 'V8_ENABLE_CHECKS', | 497 'V8_ENABLE_CHECKS', |
499 'OBJECT_PRINT', | 498 'OBJECT_PRINT', |
500 'VERIFY_HEAP', | 499 'VERIFY_HEAP', |
501 ], | 500 ], |
502 'msvs_settings': { | 501 'msvs_settings': { |
503 'VCCLCompilerTool': { | 502 'VCCLCompilerTool': { |
504 'Optimization': '0', | 503 'Optimization': '0', |
505 | 504 |
506 'conditions': [ | 505 'conditions': [ |
507 ['OS=="win" and component=="shared_library"', { | 506 ['OS=="win" and component=="shared_library"', { |
508 'RuntimeLibrary': '3', # /MDd | 507 'RuntimeLibrary': '3', # /MDd |
509 }, { | 508 }, { |
510 'RuntimeLibrary': '1', # /MTd | 509 'RuntimeLibrary': '1', # /MTd |
511 }], | 510 }], |
512 ], | 511 ], |
513 }, | 512 }, |
514 'VCLinkerTool': { | 513 'VCLinkerTool': { |
515 'LinkIncremental': '2', | 514 'LinkIncremental': '2', |
516 }, | 515 }, |
517 }, | 516 }, |
518 'conditions': [ | 517 'conditions': [ |
519 ['v8_enable_extra_checks==1', { | 518 ['v8_enable_extra_checks==1', { |
520 'defines': ['ENABLE_EXTRA_CHECKS',], | 519 'defines': ['ENABLE_EXTRA_CHECKS',], |
521 }], | 520 }], |
522 ['v8_enable_handle_zapping==1', { | |
523 'defines': ['ENABLE_HANDLE_ZAPPING',], | |
524 }], | |
525 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 521 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
526 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 522 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
527 '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], | 523 '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], |
528 }], | 524 }], |
529 ['OS=="linux" and v8_enable_backtrace==1', { | 525 ['OS=="linux" and v8_enable_backtrace==1', { |
530 # Support for backtrace_symbols. | 526 # Support for backtrace_symbols. |
531 'ldflags': [ '-rdynamic' ], | 527 'ldflags': [ '-rdynamic' ], |
532 }], | 528 }], |
533 ['OS=="android"', { | 529 ['OS=="android"', { |
534 'variables': { | 530 'variables': { |
(...skipping 12 matching lines...) Expand all Loading... |
547 ['OS=="mac"', { | 543 ['OS=="mac"', { |
548 'xcode_settings': { | 544 'xcode_settings': { |
549 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 | 545 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 |
550 }, | 546 }, |
551 }], | 547 }], |
552 ], | 548 ], |
553 }, # Debug | 549 }, # Debug |
554 'Release': { | 550 'Release': { |
555 'variables': { | 551 'variables': { |
556 'v8_enable_extra_checks%': 0, | 552 'v8_enable_extra_checks%': 0, |
557 'v8_enable_handle_zapping%': 1, | |
558 }, | 553 }, |
559 'conditions': [ | 554 'conditions': [ |
560 ['v8_enable_extra_checks==1', { | 555 ['v8_enable_extra_checks==1', { |
561 'defines': ['ENABLE_EXTRA_CHECKS',], | 556 'defines': ['ENABLE_EXTRA_CHECKS',], |
562 }], | 557 }], |
563 ['v8_enable_handle_zapping==1', { | |
564 'defines': ['ENABLE_HANDLE_ZAPPING',], | |
565 }], | |
566 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 558 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
567 'cflags!': [ | 559 'cflags!': [ |
568 '-O2', | 560 '-O2', |
569 '-Os', | 561 '-Os', |
570 ], | 562 ], |
571 'cflags': [ | 563 'cflags': [ |
572 '-fdata-sections', | 564 '-fdata-sections', |
573 '-ffunction-sections', | 565 '-ffunction-sections', |
574 '-O3', | 566 '-O3', |
575 ], | 567 ], |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 'OptimizeReferences': '2', | 629 'OptimizeReferences': '2', |
638 'EnableCOMDATFolding': '2', | 630 'EnableCOMDATFolding': '2', |
639 }, | 631 }, |
640 }, | 632 }, |
641 }], # OS=="win" | 633 }], # OS=="win" |
642 ], # conditions | 634 ], # conditions |
643 }, # Release | 635 }, # Release |
644 }, # configurations | 636 }, # configurations |
645 }, # target_defaults | 637 }, # target_defaults |
646 } | 638 } |
OLD | NEW |