blob: 465eba91480d72a74807372c3eb3364744276f0b [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001# Copyright 2013 the V8 project authors. All rights reserved.
2# Redistribution and use in source and binary forms, with or without
3# modification, are permitted provided that the following conditions are
4# met:
5#
6# * Redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer.
8# * Redistributions in binary form must reproduce the above
9# copyright notice, this list of conditions and the following
10# disclaimer in the documentation and/or other materials provided
11# with the distribution.
12# * Neither the name of Google Inc. nor the names of its
13# contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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.
27
28# Compile time controlled V8 features.
29
30{
31 'variables': {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000032 'v8_enable_disassembler%': 0,
33
34 'v8_enable_gdbjit%': 0,
35
36 'v8_object_print%': 0,
37
38 'v8_enable_verify_heap%': 0,
39
Emily Bernierd0a1eb72015-03-24 16:35:39 -040040 'v8_trace_maps%': 0,
41
Ben Murdochb8a8cc12014-11-26 15:28:44 +000042 'v8_use_snapshot%': 'true',
43
44 'v8_enable_verify_predictable%': 0,
45
46 # With post mortem support enabled, metadata is embedded into libv8 that
47 # describes various parameters of the VM for use by debuggers. See
48 # tools/gen-postmortem-metadata.py for details.
49 'v8_postmortem_support%': 'false',
50
51 # Interpreted regexp engine exists as platform-independent alternative
52 # based where the regular expression is compiled to a bytecode.
53 'v8_interpreted_regexp%': 0,
54
55 # Enable ECMAScript Internationalization API. Enabling this feature will
56 # add a dependency on the ICU library.
57 'v8_enable_i18n_support%': 1,
58
59 # Enable compiler warnings when using V8_DEPRECATED apis.
60 'v8_deprecation_warnings%': 0,
61
Emily Bernierd0a1eb72015-03-24 16:35:39 -040062 # Set to 1 to enable DCHECKs in release builds.
63 'dcheck_always_on%': 0,
Ben Murdochb8a8cc12014-11-26 15:28:44 +000064 },
65 'target_defaults': {
66 'conditions': [
67 ['v8_enable_disassembler==1', {
68 'defines': ['ENABLE_DISASSEMBLER',],
69 }],
70 ['v8_enable_gdbjit==1', {
71 'defines': ['ENABLE_GDB_JIT_INTERFACE',],
72 }],
73 ['v8_object_print==1', {
74 'defines': ['OBJECT_PRINT',],
75 }],
76 ['v8_enable_verify_heap==1', {
77 'defines': ['VERIFY_HEAP',],
78 }],
Emily Bernierd0a1eb72015-03-24 16:35:39 -040079 ['v8_trace_maps==1', {
80 'defines': ['TRACE_MAPS',],
81 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +000082 ['v8_enable_verify_predictable==1', {
83 'defines': ['VERIFY_PREDICTABLE',],
84 }],
85 ['v8_interpreted_regexp==1', {
86 'defines': ['V8_INTERPRETED_REGEXP',],
87 }],
88 ['v8_deprecation_warnings==1', {
89 'defines': ['V8_DEPRECATION_WARNINGS',],
90 }],
91 ['v8_enable_i18n_support==1', {
92 'defines': ['V8_I18N_SUPPORT',],
93 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +000094 ['v8_use_external_startup_data==1', {
95 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA',],
96 }],
Emily Bernierd0a1eb72015-03-24 16:35:39 -040097 ['dcheck_always_on!=0', {
98 'defines': ['DEBUG',],
99 }],
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000100 ], # conditions
101 'configurations': {
102 'DebugBaseCommon': {
103 'abstract': 1,
104 'variables': {
105 'v8_enable_extra_checks%': 1,
106 'v8_enable_handle_zapping%': 1,
107 },
108 'conditions': [
109 ['v8_enable_extra_checks==1', {
110 'defines': ['ENABLE_EXTRA_CHECKS',],
111 }],
112 ['v8_enable_handle_zapping==1', {
113 'defines': ['ENABLE_HANDLE_ZAPPING',],
114 }],
115 ],
116 }, # Debug
117 'Release': {
118 'variables': {
119 'v8_enable_extra_checks%': 0,
120 'v8_enable_handle_zapping%': 0,
121 },
122 'conditions': [
123 ['v8_enable_extra_checks==1', {
124 'defines': ['ENABLE_EXTRA_CHECKS',],
125 }],
126 ['v8_enable_handle_zapping==1', {
127 'defines': ['ENABLE_HANDLE_ZAPPING',],
128 }],
129 ], # conditions
130 }, # Release
131 }, # configurations
132 }, # target_defaults
133}