Home | History | Annotate | Download | only in build
      1 #
      2 # Copyright (C) 2009 Google Inc. All rights reserved.
      3 #
      4 # Redistribution and use in source and binary forms, with or without
      5 # modification, are permitted provided that the following conditions are
      6 # met:
      7 #
      8 #     * Redistributions of source code must retain the above copyright
      9 # notice, this list of conditions and the following disclaimer.
     10 #     * Redistributions in binary form must reproduce the above
     11 # copyright notice, this list of conditions and the following disclaimer
     12 # in the documentation and/or other materials provided with the
     13 # distribution.
     14 #     * Neither the name of Google Inc. nor the names of its
     15 # contributors may be used to endorse or promote products derived from
     16 # this software without specific prior written permission.
     17 #
     18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     29 #
     30 
     31 {
     32   # The following defines turn WebKit features on and off.
     33   'variables': {
     34     'feature_defines': [
     35       'ENABLE_SVG_FONTS=1',
     36       # WTF_USE_DYNAMIC_ANNOTATIONS=1 may be defined in build/common.gypi
     37       # We can't define it here because it should be present only
     38       # in Debug or release_valgrind_build=1 builds.
     39     ],
     40     # We have to nest variables inside variables so that they can be overridden
     41     # through GYP_DEFINES.
     42     'variables': {
     43       # Enables the Oilpan garbage-collection infrastructure.
     44       'enable_oilpan%': 0,
     45       'gc_profile_heap%': 0,
     46       'gc_profile_marking%': 0,
     47       'blink_logging_always_on%': 0,
     48     },
     49     'conditions': [
     50       ['use_concatenated_impulse_responses==1', {
     51         # Use concatenated HRTF impulse responses
     52         'feature_defines': ['WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1'],
     53       }],
     54       ['OS!="android"', {
     55         'feature_defines': [
     56           'ENABLE_INPUT_MULTIPLE_FIELDS_UI=1',
     57           'ENABLE_WEB_AUDIO=1'
     58         ],
     59       }],
     60       # Mac OS X uses Accelerate.framework FFT by default instead of FFmpeg.
     61       ['OS!="mac" and OS!="android"', {
     62         'feature_defines': [
     63           'WTF_USE_WEBAUDIO_FFMPEG=1',
     64         ],
     65       }],
     66       ['OS=="android" and use_openmax_dl_fft!=0', {
     67         'feature_defines': [
     68           'WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1',
     69           # Enabling the FFT is enough to enable WebAudio support to
     70           # allow most WebAudio features to work on Android.
     71           'ENABLE_WEB_AUDIO=1',
     72         ],
     73       }],
     74       # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet
     75       ['OS!="mac"', {
     76         'feature_defines': [
     77           'ENABLE_OPENTYPE_VERTICAL=1',
     78         ],
     79       }],
     80       ['use_default_render_theme==1', {
     81         'feature_defines': [
     82           'WTF_USE_DEFAULT_RENDER_THEME=1',
     83         ],
     84       }],
     85       ['enable_oilpan==1', {
     86         'feature_defines': [
     87           'ENABLE_OILPAN=1',
     88         ],
     89       }],
     90       ['gc_profile_heap==1', {
     91         'feature_defines': [
     92           'ENABLE_GC_PROFILING=1',
     93           'ENABLE_GC_PROFILE_HEAP=1',
     94         ],
     95       }],
     96       ['gc_profile_marking==1', {
     97         'feature_defines': [
     98           'ENABLE_GC_PROFILING=1',
     99           'ENABLE_GC_PROFILE_MARKING=1',
    100         ],
    101       }],
    102       ['blink_logging_always_on==1', {
    103         'feature_defines': [
    104           'LOG_DISABLED=0',
    105         ],
    106       }],
    107     ],
    108   },
    109 }
    110