Home | History | Annotate | Download | only in build
      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_compress_startup_data%': 'off',
     33 
     34     'v8_enable_disassembler%': 0,
     35 
     36     'v8_enable_gdbjit%': 0,
     37 
     38     'v8_object_print%': 0,
     39 
     40     'v8_enable_verify_heap%': 0,
     41 
     42     'v8_use_snapshot%': 'true',
     43 
     44     # With post mortem support enabled, metadata is embedded into libv8 that
     45     # describes various parameters of the VM for use by debuggers. See
     46     # tools/gen-postmortem-metadata.py for details.
     47     'v8_postmortem_support%': 'false',
     48 
     49     # Interpreted regexp engine exists as platform-independent alternative
     50     # based where the regular expression is compiled to a bytecode.
     51     'v8_interpreted_regexp%': 0,
     52 
     53     # Enable ECMAScript Internationalization API. Enabling this feature will
     54     # add a dependency on the ICU library.
     55     'v8_enable_i18n_support%': 1,
     56 
     57     # Enable compiler warnings when using V8_DEPRECATED apis.
     58     'v8_deprecation_warnings%': 0,
     59 
     60     # Use the v8 provided v8::Platform implementation.
     61     'v8_use_default_platform%': 1,
     62   },
     63   'target_defaults': {
     64     'conditions': [
     65       ['v8_enable_disassembler==1', {
     66         'defines': ['ENABLE_DISASSEMBLER',],
     67       }],
     68       ['v8_enable_gdbjit==1', {
     69         'defines': ['ENABLE_GDB_JIT_INTERFACE',],
     70       }],
     71       ['v8_object_print==1', {
     72         'defines': ['OBJECT_PRINT',],
     73       }],
     74       ['v8_enable_verify_heap==1', {
     75         'defines': ['VERIFY_HEAP',],
     76       }],
     77       ['v8_interpreted_regexp==1', {
     78         'defines': ['V8_INTERPRETED_REGEXP',],
     79       }],
     80       ['v8_deprecation_warnings==1', {
     81         'defines': ['V8_DEPRECATION_WARNINGS',],
     82       }],
     83       ['v8_enable_i18n_support==1', {
     84         'defines': ['V8_I18N_SUPPORT',],
     85       }],
     86       ['v8_use_default_platform==1', {
     87         'defines': ['V8_USE_DEFAULT_PLATFORM',],
     88       }],
     89       ['v8_compress_startup_data=="bz2"', {
     90         'defines': [
     91           'COMPRESS_STARTUP_DATA_BZ2',
     92         ],
     93       }],
     94     ],  # conditions
     95     'configurations': {
     96       'DebugBaseCommon': {
     97         'abstract': 1,
     98         'variables': {
     99           'v8_enable_extra_checks%': 1,
    100           'v8_enable_handle_zapping%': 1,
    101         },
    102         'conditions': [
    103           ['v8_enable_extra_checks==1', {
    104             'defines': ['ENABLE_EXTRA_CHECKS',],
    105           }],
    106           ['v8_enable_handle_zapping==1', {
    107             'defines': ['ENABLE_HANDLE_ZAPPING',],
    108           }],
    109         ],
    110       },  # Debug
    111       'Release': {
    112         'variables': {
    113           'v8_enable_extra_checks%': 0,
    114           'v8_enable_handle_zapping%': 0,
    115         },
    116         'conditions': [
    117           ['v8_enable_extra_checks==1', {
    118             'defines': ['ENABLE_EXTRA_CHECKS',],
    119           }],
    120           ['v8_enable_handle_zapping==1', {
    121             'defines': ['ENABLE_HANDLE_ZAPPING',],
    122           }],
    123         ],  # conditions
    124       },  # Release
    125     },  # configurations
    126   },  # target_defaults
    127 }
    128