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_CUSTOM_SCHEME_HANDLER=0', 36 'ENABLE_SVG_FONTS=1', 37 'ENABLE_GDI_FONTS_ON_WINDOWS=0', 38 'ENABLE_HARFBUZZ_ON_WINDOWS=1', 39 # WTF_USE_DYNAMIC_ANNOTATIONS=1 may be defined in build/common.gypi 40 # We can't define it here because it should be present only 41 # in Debug or release_valgrind_build=1 builds. 42 ], 43 # We have to nest variables inside variables so that they can be overridden 44 # through GYP_DEFINES. 45 'variables': { 46 # Enables the Oilpan garbage-collection infrastructure. 47 'enable_oilpan%': 0, 48 'enable_touch_icon_loading%' : 0, 49 }, 50 'conditions': [ 51 ['use_concatenated_impulse_responses==1', { 52 # Use concatenated HRTF impulse responses 53 'feature_defines': ['WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1'], 54 }], 55 ['OS=="android"', { 56 'feature_defines': [ 57 'ENABLE_FAST_MOBILE_SCROLLING=1', 58 'ENABLE_INPUT_SPEECH=0', 59 'ENABLE_LEGACY_NOTIFICATIONS=0', 60 'ENABLE_MEDIA_CAPTURE=1', 61 'ENABLE_ORIENTATION_EVENTS=1', 62 'ENABLE_TOUCH_ICON_LOADING=1', 63 'ENABLE_NAVIGATOR_CONTENT_UTILS=0', 64 ], 65 }, { # OS!="android" 66 'feature_defines': [ 67 'ENABLE_INPUT_SPEECH=1', 68 'ENABLE_INPUT_MULTIPLE_FIELDS_UI=1', 69 'ENABLE_LEGACY_NOTIFICATIONS=1', 70 'ENABLE_MEDIA_CAPTURE=0', 71 'ENABLE_NAVIGATOR_CONTENT_UTILS=1', 72 'ENABLE_ORIENTATION_EVENTS=0', 73 'ENABLE_WEB_AUDIO=1', 74 ], 75 }], 76 # Mac OS X uses Accelerate.framework FFT by default instead of FFmpeg. 77 ['OS!="mac" and OS!="android"', { 78 'feature_defines': [ 79 'WTF_USE_WEBAUDIO_FFMPEG=1', 80 ], 81 }], 82 ['OS=="android" and use_openmax_dl_fft!=0', { 83 'feature_defines': [ 84 'WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1', 85 # Enabling the FFT is enough to enable WebAudio support to 86 # allow most WebAudio features to work on Android. 87 'ENABLE_WEB_AUDIO=1', 88 ], 89 }], 90 ['OS=="win" or OS=="android" or OS=="linux"', { 91 'feature_defines': [ 92 'ENABLE_OPENTYPE_VERTICAL=1', 93 ], 94 }], 95 ['use_default_render_theme==1', { 96 'feature_defines': [ 97 'WTF_USE_DEFAULT_RENDER_THEME=1', 98 ], 99 }], 100 ['enable_oilpan==1', { 101 'feature_defines': [ 102 'ENABLE_OILPAN=1', 103 ], 104 }], 105 ], 106 }, 107} 108