OLD | NEW |
1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 LIBRARY_FLAGS = { | 96 LIBRARY_FLAGS = { |
97 'all': { | 97 'all': { |
98 'CPPPATH': [join(root_dir, 'src')], | 98 'CPPPATH': [join(root_dir, 'src')], |
99 'regexp:native': { | 99 'regexp:native': { |
100 'CPPDEFINES': ['V8_NATIVE_REGEXP'] | 100 'CPPDEFINES': ['V8_NATIVE_REGEXP'] |
101 }, | 101 }, |
102 'mode:debug': { | 102 'mode:debug': { |
103 'CPPDEFINES': ['V8_ENABLE_CHECKS'] | 103 'CPPDEFINES': ['V8_ENABLE_CHECKS'] |
104 }, | 104 }, |
| 105 'vmstate:on': { |
| 106 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING'], |
| 107 }, |
| 108 'protectheap:on': { |
| 109 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_HEAP_PROTECTION'], |
| 110 }, |
105 'profilingsupport:on': { | 111 'profilingsupport:on': { |
106 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING'], | 112 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_LOGGING_AND_PROFILING'
], |
107 }, | 113 }, |
108 'cppprofilesprocessor:on': { | 114 'cppprofilesprocessor:on': { |
109 'CPPDEFINES': ['ENABLE_CPP_PROFILES_PROCESSOR'], | 115 'CPPDEFINES': ['ENABLE_CPP_PROFILES_PROCESSOR'], |
110 }, | 116 }, |
111 'debuggersupport:on': { | 117 'debuggersupport:on': { |
112 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], | 118 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], |
113 } | 119 } |
114 }, | 120 }, |
115 'gcc': { | 121 'gcc': { |
116 'all': { | 122 'all': { |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 'prof': { | 671 'prof': { |
666 'values': ['on', 'off', 'oprofile'], | 672 'values': ['on', 'off', 'oprofile'], |
667 'default': 'off', | 673 'default': 'off', |
668 'help': 'enable profiling of build target' | 674 'help': 'enable profiling of build target' |
669 }, | 675 }, |
670 'library': { | 676 'library': { |
671 'values': ['static', 'shared'], | 677 'values': ['static', 'shared'], |
672 'default': 'static', | 678 'default': 'static', |
673 'help': 'the type of library to produce' | 679 'help': 'the type of library to produce' |
674 }, | 680 }, |
| 681 'vmstate': { |
| 682 'values': ['on', 'off'], |
| 683 'default': 'off', |
| 684 'help': 'enable VM state tracking' |
| 685 }, |
| 686 'protectheap': { |
| 687 'values': ['on', 'off'], |
| 688 'default': 'off', |
| 689 'help': 'enable heap protection' |
| 690 }, |
675 'profilingsupport': { | 691 'profilingsupport': { |
676 'values': ['on', 'off'], | 692 'values': ['on', 'off'], |
677 'default': 'on', | 693 'default': 'on', |
678 'help': 'enable profiling of JavaScript code' | 694 'help': 'enable profiling of JavaScript code' |
679 }, | 695 }, |
680 'cppprofilesprocessor': { | 696 'cppprofilesprocessor': { |
681 'values': ['on', 'off'], | 697 'values': ['on', 'off'], |
682 'default': 'off', | 698 'default': 'off', |
683 'help': 'enable C++ profiles processor' | 699 'help': 'enable C++ profiles processor' |
684 }, | 700 }, |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 # version of scons. Also, there's a bug in some revisions that | 1120 # version of scons. Also, there's a bug in some revisions that |
1105 # doesn't allow this flag to be set, so we swallow any exceptions. | 1121 # doesn't allow this flag to be set, so we swallow any exceptions. |
1106 # Lovely. | 1122 # Lovely. |
1107 try: | 1123 try: |
1108 SetOption('warn', 'no-deprecated') | 1124 SetOption('warn', 'no-deprecated') |
1109 except: | 1125 except: |
1110 pass | 1126 pass |
1111 | 1127 |
1112 | 1128 |
1113 Build() | 1129 Build() |
OLD | NEW |