2 # Copyright (C) 2009 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
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
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.
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.
32 # The following defines turn WebKit features on and off.
36 'ENABLE_BATTERY_STATUS=0',
38 'ENABLE_BLOB_SLICE=1',
39 'ENABLE_CHANNEL_MESSAGING=1',
41 'ENABLE_CSS3_FLEXBOX=1',
42 'ENABLE_CSS_BOX_DECORATION_BREAK=1',
43 'ENABLE_CSS_EXCLUSIONS=1',
44 'ENABLE_CSS_FILTERS=1',
45 'ENABLE_CSS_COMPOSITING=0',
46 'ENABLE_CSS_IMAGE_SET=1',
47 'ENABLE_CSS_IMAGE_RESOLUTION=0',
48 'ENABLE_CSS_REGIONS=1',
49 'ENABLE_CSS_SHADERS=1',
50 'ENABLE_CSS_VARIABLES=1',
51 'ENABLE_CSS_STICKY_POSITION=1',
52 'ENABLE_CUSTOM_SCHEME_HANDLER=0',
53 'ENABLE_DATALIST_ELEMENT=1',
54 'ENABLE_DASHBOARD_SUPPORT=0',
55 'ENABLE_DATA_TRANSFER_ITEMS=1',
56 'ENABLE_DETAILS_ELEMENT=1',
57 'ENABLE_DEVICE_ORIENTATION=1',
58 'ENABLE_DIALOG_ELEMENT=1',
59 'ENABLE_DIRECTORY_UPLOAD=1',
60 'ENABLE_DOWNLOAD_ATTRIBUTE=1',
61 'ENABLE_ENCRYPTED_MEDIA=1',
62 'ENABLE_FILE_SYSTEM=1',
64 'ENABLE_FULLSCREEN_API=1',
66 'ENABLE_GEOLOCATION=1',
67 'ENABLE_GESTURE_EVENTS=1',
68 'ENABLE_ICONDATABASE=0',
69 'ENABLE_IFRAME_SEAMLESS=1',
70 'ENABLE_INDEXED_DATABASE=1',
71 'ENABLE_INPUT_TYPE_DATE=1',
72 'ENABLE_INPUT_TYPE_DATETIME=1',
73 'ENABLE_INPUT_TYPE_DATETIMELOCAL=1',
74 'ENABLE_INPUT_TYPE_MONTH=1',
75 'ENABLE_INPUT_TYPE_TIME=1',
76 'ENABLE_INPUT_TYPE_WEEK=1',
77 'ENABLE_JAVASCRIPT_DEBUGGER=1',
78 'ENABLE_LEGACY_CSS_VENDOR_PREFIXES=0',
79 'ENABLE_LEGACY_VIEWPORT_ADAPTION=1',
80 'ENABLE_LEGACY_WEBKIT_BLOB_BUILDER=1',
81 'ENABLE_LINK_PREFETCH=1',
82 'ENABLE_LINK_PRERENDER=1',
83 'ENABLE_MEDIA_SOURCE=1',
84 'ENABLE_MEDIA_STATISTICS=1',
85 'ENABLE_METER_ELEMENT=1',
88 'ENABLE_MUTATION_OBSERVERS=<(enable_mutation_observers)',
89 'ENABLE_PAGE_VISIBILITY_API=1',
90 'ENABLE_POINTER_LOCK=1',
91 'ENABLE_PROGRESS_ELEMENT=1',
93 'ENABLE_REGISTER_PROTOCOL_HANDLER=1',
94 'ENABLE_REQUEST_ANIMATION_FRAME=1',
97 'ENABLE_SCRIPTED_SPEECH=1',
98 'ENABLE_SHADOW_DOM=1',
99 'ENABLE_SMOOTH_SCROLLING=1',
100 'ENABLE_SQL_DATABASE=1',
101 'ENABLE_STYLE_SCOPED=1',
102 'ENABLE_SVG=<(enable_svg)',
103 'ENABLE_SVG_FONTS=<(enable_svg)',
104 'ENABLE_TEXT_AUTOSIZING=1',
105 'ENABLE_TOUCH_ADJUSTMENT=1',
106 'ENABLE_TOUCH_EVENTS=<(enable_touch_events)',
107 'ENABLE_TOUCH_ICON_LOADING=<(enable_touch_icon_loading)',
108 'ENABLE_TOUCH_SLIDER=1',
109 'ENABLE_V8_SCRIPT_DEBUG_SERVER=1',
111 'ENABLE_VIDEO_TRACK=1',
114 'ENABLE_WEB_INTENTS=1',
115 'ENABLE_WEB_SOCKETS=1',
116 'ENABLE_WEB_TIMING=1',
118 'ENABLE_XHR_RESPONSE_BLOB=1',
121 'WTF_USE_BUILTIN_UTF8_CODEC=1',
122 # WTF_USE_DYNAMIC_ANNOTATIONS=1 may be defined in build/common.gypi
123 # We can't define it here because it should be present only
124 # in Debug or release_valgrind_build=1 builds.
125 'WTF_USE_OPENTYPE_SANITIZER=1',
126 'WTF_USE_RTL_SCROLLBAR=1',
127 'WTF_USE_SKIA_TEXT=<(enable_skia_text)',
129 'WTF_USE_WEBKIT_IMAGE_DECODERS=1',
131 # We have to nest variables inside variables so that they can be overridden
132 # through GYP_DEFINES.
134 'use_accelerated_compositing%': 1,
135 'enable_skia_text%': 1,
137 'enable_touch_events%': 1,
138 'enable_touch_icon_loading%' : 0,
139 'enable_mutation_observers%': 1,
140 'use_harfbuzz_ng%': 0,
142 'use_accelerated_compositing%': '<(use_accelerated_compositing)',
143 'enable_skia_text%': '<(enable_skia_text)',
144 'enable_svg%': '<(enable_svg)',
145 'enable_touch_events%': '<(enable_touch_events)',
149 'ENABLE_CALENDAR_PICKER=0',
150 'ENABLE_INPUT_SPEECH=0',
151 'ENABLE_INPUT_TYPE_COLOR=0',
152 'ENABLE_JAVASCRIPT_I18N_API=0',
153 'ENABLE_LEGACY_NOTIFICATIONS=0',
154 'ENABLE_MEDIA_CAPTURE=1',
155 'ENABLE_MEDIA_STREAM=0',
156 'ENABLE_NOTIFICATIONS=0',
157 'ENABLE_ORIENTATION_EVENTS=1',
158 'ENABLE_OVERFLOW_SCROLLING=1',
159 'ENABLE_PAGE_POPUP=0',
161 # FIXME: Disable once the linking error has been resolved.
162 # https://bugs.webkit.org/show_bug.cgi?id=88636
163 'ENABLE_SHARED_WORKERS=1',
164 'ENABLE_WEB_AUDIO=0',
165 'WTF_USE_NATIVE_FULLSCREEN_VIDEO=1',
167 'enable_touch_icon_loading': 1,
170 'ENABLE_CALENDAR_PICKER=1',
171 'ENABLE_INPUT_SPEECH=1',
172 'ENABLE_INPUT_TYPE_COLOR=1',
173 'ENABLE_JAVASCRIPT_I18N_API=1',
174 'ENABLE_LEGACY_NOTIFICATIONS=1',
175 'ENABLE_MEDIA_CAPTURE=0',
176 'ENABLE_MEDIA_STREAM=1',
177 'ENABLE_NOTIFICATIONS=1',
178 'ENABLE_ORIENTATION_EVENTS=0',
179 'ENABLE_OVERFLOW_SCROLLING=0',
180 'ENABLE_PAGE_POPUP=1',
182 'ENABLE_SHARED_WORKERS=1',
183 'ENABLE_WEB_AUDIO=1',
186 ['use_accelerated_compositing==1', {
188 'ENABLE_3D_RENDERING=1',
189 'ENABLE_ACCELERATED_2D_CANVAS=1',
190 'WTF_USE_ACCELERATED_COMPOSITING=1',
193 # Mac OS X uses Accelerate.framework FFT by default instead of FFmpeg.
194 ['OS!="mac" and OS!="android"', {
196 'WTF_USE_WEBAUDIO_FFMPEG=1',
199 ['enable_web_intents==1', {
201 'ENABLE_WEB_INTENTS=1',
204 ['enable_web_intents_tag==1', {
206 'ENABLE_WEB_INTENTS_TAG=1',
211 'ENABLE_RUBBER_BANDING=1',
212 'WTF_USE_SKIA_ON_MAC_CHROMIUM=1',
215 ['use_harfbuzz_ng==1', {
217 'WTF_USE_HARFBUZZ_NG=1',