[Release] Webkit2-efl-123997_0.11.86
[framework/web/webkit-efl.git] / Source / WebKit / chromium / features.gypi
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_3D_PLUGIN=1',
36       'ENABLE_BATTERY_STATUS=0',
37       'ENABLE_BLOB=1',
38       'ENABLE_BLOB_SLICE=1',
39       'ENABLE_CHANNEL_MESSAGING=1',
40       'ENABLE_CSP_NEXT=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',
63       'ENABLE_FILTERS=1',
64       'ENABLE_FULLSCREEN_API=1',
65       'ENABLE_GAMEPAD=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_WEB_AUDIO=1',
81       'ENABLE_LEGACY_WEBKIT_BLOB_BUILDER=1',
82       'ENABLE_LINK_PREFETCH=1',
83       'ENABLE_LINK_PRERENDER=1',
84       'ENABLE_MEDIA_SOURCE=1',
85       'ENABLE_MEDIA_STATISTICS=1',
86       'ENABLE_METER_ELEMENT=1',
87       'ENABLE_MHTML=1',
88       'ENABLE_MICRODATA=0',
89       'ENABLE_MUTATION_OBSERVERS=<(enable_mutation_observers)',
90       'ENABLE_PAGE_VISIBILITY_API=1',
91       'ENABLE_POINTER_LOCK=1',
92       'ENABLE_PROGRESS_ELEMENT=1',
93       'ENABLE_QUOTA=1',
94       'ENABLE_REGISTER_PROTOCOL_HANDLER=1',
95       'ENABLE_REQUEST_ANIMATION_FRAME=1',
96       'ENABLE_RUBY=1',
97       'ENABLE_SANDBOX=1',
98       'ENABLE_SCRIPTED_SPEECH=1',
99       'ENABLE_SHADOW_DOM=1',
100       'ENABLE_SMOOTH_SCROLLING=1',
101       'ENABLE_SQL_DATABASE=1',
102       'ENABLE_STYLE_SCOPED=1',
103       'ENABLE_SVG=<(enable_svg)',
104       'ENABLE_SVG_FONTS=<(enable_svg)',
105       'ENABLE_TEXT_AUTOSIZING=1',
106       'ENABLE_TOUCH_ADJUSTMENT=1',
107       'ENABLE_TOUCH_EVENTS=<(enable_touch_events)',
108       'ENABLE_TOUCH_ICON_LOADING=<(enable_touch_icon_loading)',
109       'ENABLE_TOUCH_SLIDER=1',
110       'ENABLE_V8_SCRIPT_DEBUG_SERVER=1',
111       'ENABLE_VIDEO=1',
112       'ENABLE_VIDEO_TRACK=1',
113       'ENABLE_VIEWPORT=1',
114       'ENABLE_WEBGL=1',
115       'ENABLE_WEB_INTENTS=1',
116       'ENABLE_WEB_SOCKETS=1',
117       'ENABLE_WEB_TIMING=1',
118       'ENABLE_WORKERS=1',
119       'ENABLE_XHR_RESPONSE_BLOB=1',
120       'ENABLE_XSLT=1',
121       'WTF_USE_LEVELDB=1',
122       'WTF_USE_BUILTIN_UTF8_CODEC=1',
123       # WTF_USE_DYNAMIC_ANNOTATIONS=1 may be defined in build/common.gypi
124       # We can't define it here because it should be present only
125       # in Debug or release_valgrind_build=1 builds.
126       'WTF_USE_OPENTYPE_SANITIZER=1',
127       'WTF_USE_RTL_SCROLLBAR=1',
128       'WTF_USE_SKIA_TEXT=<(enable_skia_text)',
129       'WTF_USE_WEBP=1',
130       'WTF_USE_WEBKIT_IMAGE_DECODERS=1',
131     ],
132     # We have to nest variables inside variables so that they can be overridden
133     # through GYP_DEFINES.
134     'variables': {
135       'use_accelerated_compositing%': 1,
136       'enable_skia_text%': 1,
137       'enable_svg%': 1,
138       'enable_touch_events%': 1,
139       'enable_touch_icon_loading%' : 0,
140       'enable_mutation_observers%': 1,
141       'use_harfbuzz_ng%': 0,
142     },
143     'use_accelerated_compositing%': '<(use_accelerated_compositing)',
144     'enable_skia_text%': '<(enable_skia_text)',
145     'enable_svg%': '<(enable_svg)',
146     'enable_touch_events%': '<(enable_touch_events)',
147     'conditions': [
148       ['OS=="android"', {
149         'feature_defines': [
150           'ENABLE_CALENDAR_PICKER=0',
151           'ENABLE_INPUT_SPEECH=0',
152           'ENABLE_INPUT_TYPE_COLOR=0',
153           'ENABLE_JAVASCRIPT_I18N_API=0',
154           'ENABLE_LEGACY_NOTIFICATIONS=0',
155           'ENABLE_MEDIA_CAPTURE=1',
156           'ENABLE_MEDIA_STREAM=0',
157           'ENABLE_NOTIFICATIONS=0',
158           'ENABLE_ORIENTATION_EVENTS=1',
159           'ENABLE_OVERFLOW_SCROLLING=1',
160           'ENABLE_PAGE_POPUP=0',
161           'ENABLE_PRINTING=0',
162           # FIXME: Disable once the linking error has been resolved.
163           # https://bugs.webkit.org/show_bug.cgi?id=88636
164           'ENABLE_SHARED_WORKERS=1',
165           'ENABLE_WEB_AUDIO=0',
166           'WTF_USE_NATIVE_FULLSCREEN_VIDEO=1',
167         ],
168         'enable_touch_icon_loading': 1,
169       }, { # OS!="android"
170         'feature_defines': [
171           'ENABLE_CALENDAR_PICKER=1',
172           'ENABLE_INPUT_SPEECH=1',
173           'ENABLE_INPUT_TYPE_COLOR=1',
174           'ENABLE_JAVASCRIPT_I18N_API=1',
175           'ENABLE_LEGACY_NOTIFICATIONS=1',
176           'ENABLE_MEDIA_CAPTURE=0',
177           'ENABLE_MEDIA_STREAM=1',
178           'ENABLE_NOTIFICATIONS=1',
179           'ENABLE_ORIENTATION_EVENTS=0',
180           'ENABLE_OVERFLOW_SCROLLING=0',
181           'ENABLE_PAGE_POPUP=1',
182           'ENABLE_PRINTING=1',
183           'ENABLE_SHARED_WORKERS=1',
184           'ENABLE_WEB_AUDIO=1',
185         ],
186       }],
187       ['use_accelerated_compositing==1', {
188         'feature_defines': [
189           'ENABLE_3D_RENDERING=1',
190           'ENABLE_ACCELERATED_2D_CANVAS=1',
191           'WTF_USE_ACCELERATED_COMPOSITING=1',
192         ],
193       }],
194       # Mac OS X uses Accelerate.framework FFT by default instead of FFmpeg.
195       ['OS!="mac" and OS!="android"', {
196         'feature_defines': [
197           'WTF_USE_WEBAUDIO_FFMPEG=1',
198         ],
199       }],
200       ['enable_web_intents==1', {
201         'feature_defines': [
202           'ENABLE_WEB_INTENTS=1',
203         ],
204       }],
205       ['enable_web_intents_tag==1', {
206         'feature_defines': [
207           'ENABLE_WEB_INTENTS_TAG=1',
208         ],
209       }],
210       ['OS=="mac"', {
211         'feature_defines': [
212           'ENABLE_RUBBER_BANDING=1',
213           'WTF_USE_SKIA_ON_MAC_CHROMIUM=1',
214         ],
215       }],
216       ['use_harfbuzz_ng==1', {
217         'feature_defines': [
218           'WTF_USE_HARFBUZZ_NG=1',
219         ],
220       }],
221     ],
222   },
223 }