Home | History | Annotate | Download | only in gypfiles
      1 # 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': {
     32     'v8_enable_disassembler%': 0,
     33 
     34     'v8_enable_gdbjit%': 0,
     35 
     36     'v8_object_print%': 0,
     37 
     38     'v8_enable_verify_heap%': 0,
     39 
     40     'v8_trace_maps%': 0,
     41 
     42     # Enable the snapshot feature, for fast context creation.
     43     # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html
     44     'v8_use_snapshot%': 'true',
     45 
     46     'v8_enable_verify_predictable%': 0,
     47 
     48     # With post mortem support enabled, metadata is embedded into libv8 that
     49     # describes various parameters of the VM for use by debuggers. See
     50     # tools/gen-postmortem-metadata.py for details.
     51     'v8_postmortem_support%': 'false',
     52 
     53     # Interpreted regexp engine exists as platform-independent alternative
     54     # based where the regular expression is compiled to a bytecode.
     55     'v8_interpreted_regexp%': 0,
     56 
     57     # Enable ECMAScript Internationalization API. Enabling this feature will
     58     # add a dependency on the ICU library.
     59     'v8_enable_i18n_support%': 1,
     60 
     61     # Enable compiler warnings when using V8_DEPRECATED apis.
     62     'v8_deprecation_warnings%': 0,
     63 
     64     # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
     65     'v8_imminent_deprecation_warnings%': 0,
     66 
     67     # Set to 1 to enable DCHECKs in release builds.
     68     'dcheck_always_on%': 0,
     69 
     70     # Enable/disable JavaScript API accessors.
     71     'v8_js_accessors%': 0,
     72   },
     73   'target_defaults': {
     74     'conditions': [
     75       ['v8_enable_disassembler==1', {
     76         'defines': ['ENABLE_DISASSEMBLER',],
     77       }],
     78       ['v8_enable_gdbjit==1', {
     79         'defines': ['ENABLE_GDB_JIT_INTERFACE',],
     80       }],
     81       ['v8_object_print==1', {
     82         'defines': ['OBJECT_PRINT',],
     83       }],
     84       ['v8_enable_verify_heap==1', {
     85         'defines': ['VERIFY_HEAP',],
     86       }],
     87       ['v8_trace_maps==1', {
     88         'defines': ['TRACE_MAPS',],
     89       }],
     90       ['v8_enable_verify_predictable==1', {
     91         'defines': ['VERIFY_PREDICTABLE',],
     92       }],
     93       ['v8_interpreted_regexp==1', {
     94         'defines': ['V8_INTERPRETED_REGEXP',],
     95       }],
     96       ['v8_deprecation_warnings==1', {
     97         'defines': ['V8_DEPRECATION_WARNINGS',],
     98       }],
     99       ['v8_imminent_deprecation_warnings==1', {
    100         'defines': ['V8_IMMINENT_DEPRECATION_WARNINGS',],
    101       }],
    102       ['v8_enable_i18n_support==1', {
    103         'defines': ['V8_I18N_SUPPORT',],
    104       }],
    105       ['v8_use_snapshot=="true" and v8_use_external_startup_data==1', {
    106         'defines': ['V8_USE_EXTERNAL_STARTUP_DATA',],
    107       }],
    108       ['dcheck_always_on!=0', {
    109         'defines': ['DEBUG',],
    110       }],
    111     ],  # conditions
    112     'configurations': {
    113       'DebugBaseCommon': {
    114         'abstract': 1,
    115         'variables': {
    116           'v8_enable_handle_zapping%': 1,
    117         },
    118         'conditions': [
    119           ['v8_enable_handle_zapping==1', {
    120             'defines': ['ENABLE_HANDLE_ZAPPING',],
    121           }],
    122         ],
    123       },  # Debug
    124       'Release': {
    125         'variables': {
    126           'v8_enable_handle_zapping%': 0,
    127         },
    128         'conditions': [
    129           ['v8_enable_handle_zapping==1', {
    130             'defines': ['ENABLE_HANDLE_ZAPPING',],
    131           }],
    132         ],  # conditions
    133       },  # Release
    134     },  # configurations
    135   },  # target_defaults
    136 }
    137