FeatureList.pm 24.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1.  Redistributions of source code must retain the above copyright
#     notice, this list of conditions and the following disclaimer.
# 2.  Redistributions in binary form must reproduce the above copyright
#     notice, this list of conditions and the following disclaimer in the
#     documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# A module to contain all the enable/disable feature option code.

use strict;
use warnings;

use FindBin;
use lib $FindBin::Bin;
use webkitdirs;

BEGIN {
   use Exporter   ();
   our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
   $VERSION     = 1.00;
   @ISA         = qw(Exporter);
   @EXPORT      = qw(&getFeatureOptionList);
   %EXPORT_TAGS = ( );
   @EXPORT_OK   = ();
}

my (
    $threeDRenderingSupport,
46 47
    $accelerated2DCanvasSupport,
    $batteryStatusSupport,
48
    $blobSupport,
49
    $canvasPathSupport,
50
    $canvasProxySupport,
51
    $channelMessagingSupport,
52
    $cspNextSupport,
53
    $css3ConditionalRulesSupport,
54
    $css3TextSupport,
55
    $css3TextLineBreakSupport,
56
    $cssBoxDecorationBreakSupport,
57
    $cssDeviceAdaptation,
58
    $cssExclusionsSupport,
59
    $cssFiltersSupport,
60
    $cssImageOrientationSupport,
61
    $cssImageResolutionSupport,
62
    $cssImageSetSupport,
63
    $cssRegionsSupport,
64
    $cssShadersSupport,
65
    $cssStickyPositionSupport,
66
    $cssCompositingSupport,
67
    $cssAnimationsTransformsUnprefixedSupport,
68
    $cssVariablesSupport,
69
    $customSchemeHandlerSupport,
70
    $dataTransferItemsSupport,
71
    $datalistSupport,
72 73
    $detailsSupport,
    $deviceOrientationSupport,
74
    $dialogElementSupport,
75
    $directoryUploadSupport,
76
    $dom4EventsConstructor,
77 78 79
    $downloadAttributeSupport,
    $fileSystemSupport,
    $filtersSupport,
80
    $fontLoadEventsSupport,
81 82 83 84 85
    $ftpDirSupport,
    $fullscreenAPISupport,
    $gamepadSupport,
    $geolocationSupport,
    $highDPICanvasSupport,
86
    $icondatabaseSupport,
87
    $iframeSeamlessSupport,
88 89
    $indexedDatabaseSupport,
    $inputSpeechSupport,
90
    $inputTypeColorSupport,
91 92 93 94 95 96
    $inputTypeDateSupport,
    $inputTypeDatetimeSupport,
    $inputTypeDatetimelocalSupport,
    $inputTypeMonthSupport,
    $inputTypeTimeSupport,
    $inputTypeWeekSupport,
97
    $inspectorSupport,
98
    $javascriptDebuggerSupport,
99
    $legacyNotificationsSupport,
abarth@webkit.org's avatar
abarth@webkit.org committed
100
    $legacyVendorPrefixSupport,
101
    $legacyWebAudioSupport,
102 103 104
    $linkPrefetchSupport,
    $linkPrerenderSupport,
    $mathmlSupport,
105
    $mediaCaptureSupport,
106 107 108 109 110 111
    $mediaSourceSupport,
    $mediaStatisticsSupport,
    $mediaStreamSupport,
    $meterTagSupport,
    $mhtmlSupport,
    $microdataSupport,
112
    $mouseCursorScaleSupport,
113
    $netscapePluginAPISupport,
114
    $networkInfoSupport,
115
    $nosniffSupport,
116 117
    $notificationsSupport,
    $orientationEventsSupport,
118
    $pageVisibilityAPISupport,
119
    $performanceTimelineSupport,
120
    $progressTagSupport,
121
    $proximityEventsSupport,
122
    $quotaSupport,
123
    $resolutionMediaQuerySupport,
124
    $registerProtocolHandlerSupport,
125
    $requestAnimationFrameSupport,
126
    $resourceTimingSupport,
127
    $scriptedSpeechSupport,
128
    $shadowDOMSupport,
129
    $sharedWorkersSupport,
130
    $sqlDatabaseSupport,
131
    $styleScopedSupport,
132
    $suidLinuxSandbox,
133 134
    $svgDOMObjCBindingsSupport,
    $svgFontsSupport,
135
    $svgSupport,
136
    $systemMallocSupport,
137
    $templateElementSupport,
138
    $textAutosizingSupport,
139
    $tiledBackingStoreSupport,
140
    $threadedHTMLParserSupport,
141
    $touchEventsSupport,
142
    $touchSliderSupport,
143
    $touchIconLoadingSupport,
144
    $userTimingSupport,
145 146 147
    $vibrationSupport,
    $videoSupport,
    $videoTrackSupport,
148
    $webglSupport,
149 150 151 152
    $webAudioSupport,
    $webSocketsSupport,
    $webTimingSupport,
    $workersSupport,
153
    $xhrTimeoutSupport,
154 155 156 157
    $xsltSupport,
);

my @features = (
158
    { option => "3d-rendering", desc => "Toggle 3D Rendering support",
159
      define => "ENABLE_3D_RENDERING", default => (isAppleMacWebKit() || isQt() || isGtk() || isEfl()), value => \$threeDRenderingSupport },
160

161 162
    { option => "accelerated-2d-canvas", desc => "Toggle Accelerated 2D Canvas support",
      define => "ENABLE_ACCELERATED_2D_CANVAS", default => 0, value => \$accelerated2DCanvasSupport },
163

164
    { option => "battery-status", desc => "Toggle Battery Status support",
165
      define => "ENABLE_BATTERY_STATUS", default => (isEfl() || isBlackBerry()), value => \$batteryStatusSupport },
166 167

    { option => "blob", desc => "Toggle Blob support",
168
      define => "ENABLE_BLOB", default => (isAppleMacWebKit() || isGtk() || isChromium() || isBlackBerry() || isEfl()), value => \$blobSupport },
169

170
    { option => "canvas-path", desc => "Toggle Canvas Path support",
krit@webkit.org's avatar
krit@webkit.org committed
171
      define => "ENABLE_CANVAS_PATH", default => 1, value => \$canvasPathSupport },
172

173 174 175
    { option => "canvas-proxy", desc => "Toggle CanvasProxy support",
      define => "ENABLE_CANVAS_PROXY", default => 0, value => \$canvasProxySupport },

176
    { option => "channel-messaging", desc => "Toggle Channel Messaging support",
177 178
      define => "ENABLE_CHANNEL_MESSAGING", default => 1, value => \$channelMessagingSupport },

179
    { option => "csp-next", desc => "Toggle Content Security Policy 1.1 support",
180
      define => "ENABLE_CSP_NEXT", default => isGtk(), value => \$cspNextSupport },
181

182
    { option => "css-device-adaptation", desc => "Toggle CSS Device Adaptation support",
183
      define => "ENABLE_CSS_DEVICE_ADAPTATION", default => isEfl(), value => \$cssDeviceAdaptation },
184

185 186 187
    { option => "css-exclusions", desc => "Toggle CSS Exclusions support",
      define => "ENABLE_CSS_EXCLUSIONS", default => 1, value => \$cssExclusionsSupport },

188
    { option => "css-filters", desc => "Toggle CSS Filters support",
189
      define => "ENABLE_CSS_FILTERS", default => isAppleWebKit() || isBlackBerry(), value => \$cssFiltersSupport },
190

191 192 193
    { option => "css3-conditional-rules", desc => "Toggle CSS3 Conditional Rules support (i.e. \@supports)",
      define => "ENABLE_CSS3_CONDITIONAL_RULES", default => 0, value => \$css3ConditionalRulesSupport },

194
    { option => "css3-text", desc => "Toggle CSS3 Text support",
195
      define => "ENABLE_CSS3_TEXT", default => (isEfl() || isGtk()), value => \$css3TextSupport },
196

197 198 199
    { option => "css3-text-line-break", desc => "Toggle CSS3 Text Line Break support",
      define => "ENABLE_CSS3_TEXT_LINE_BREAK", default => 0, value => \$css3TextLineBreakSupport },

200 201 202
    { option => "css-box-decoration-break", desc => "Toggle CSS box-decoration-break support",
      define => "ENABLE_CSS_BOX_DECORATION_BREAK", default => 1, value => \$cssBoxDecorationBreakSupport },

203
    { option => "css-image-orientation", desc => "Toggle CSS image-orientation support",
204
      define => "ENABLE_CSS_IMAGE_ORIENTATION", default => isGtk(), value => \$cssImageOrientationSupport },
205

206
    { option => "css-image-resolution", desc => "Toggle CSS image-resolution support",
207
      define => "ENABLE_CSS_IMAGE_RESOLUTION", default => (isBlackBerry() || isGtk()), value => \$cssImageResolutionSupport },
208

209
    { option => "css-image-set", desc => "Toggle CSS image-set support",
210
      define => "ENABLE_CSS_IMAGE_SET", default => (isEfl() || isGtk()), value => \$cssImageSetSupport },
211

212 213 214
    { option => "css-regions", desc => "Toggle CSS Regions support",
      define => "ENABLE_CSS_REGIONS", default => 1, value => \$cssRegionsSupport },

215
    { option => "css-shaders", desc => "Toggle CSS Shaders support",
216
      define => "ENABLE_CSS_SHADERS", default => isAppleMacWebKit(), value => \$cssShadersSupport },
217

218
    { option => "css-sticky-position", desc => "Toggle CSS sticky position support",
219
      define => "ENABLE_CSS_STICKY_POSITION", default => (isGtk() || isEfl()), value => \$cssStickyPositionSupport },
220

221
    { option => "css-compositing", desc => "Toggle CSS Compositing support",
222
      define => "ENABLE_CSS_COMPOSITING", default => isAppleWebKit(), value => \$cssCompositingSupport },
223

224 225
    { option => "css-transforms-animations-unprefixed", desc => "Toggle support for unprefixed CSS animations and transforms",
      define => "ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED", default => 1, value => \$cssAnimationsTransformsUnprefixedSupport },
226

227
    { option => "css-variables", desc => "Toggle CSS Variable support",
228
      define => "ENABLE_CSS_VARIABLES", default => (isBlackBerry() || isEfl() || isGtk()), value => \$cssVariablesSupport },
229

230
    { option => "custom-scheme-handler", desc => "Toggle Custom Scheme Handler support",
231
      define => "ENABLE_CUSTOM_SCHEME_HANDLER", default => (isBlackBerry() || isEfl()), value => \$customSchemeHandlerSupport },
232

233
    { option => "datalist", desc => "Toggle Datalist support",
234
      define => "ENABLE_DATALIST_ELEMENT", default => isEfl(), value => \$datalistSupport },
235

236
    { option => "data-transfer-items", desc => "Toggle Data Transfer Items support",
237 238
      define => "ENABLE_DATA_TRANSFER_ITEMS", default => 0, value => \$dataTransferItemsSupport },

239
    { option => "details", desc => "Toggle Details support",
240
      define => "ENABLE_DETAILS_ELEMENT", default => 1, value => \$detailsSupport },
241

242
    { option => "device-orientation", desc => "Toggle Device Orientation support",
243 244
      define => "ENABLE_DEVICE_ORIENTATION", default => isBlackBerry(), value => \$deviceOrientationSupport },

245 246 247 248
    { option => "dialog", desc => "Toggle Dialog Element support",
      define => "ENABLE_DIALOG_ELEMENT", default => 0, value => \$dialogElementSupport },

    { option => "directory-upload", desc => "Toggle Directory Upload support",
249 250
      define => "ENABLE_DIRECTORY_UPLOAD", default => 0, value => \$directoryUploadSupport },

251
    { option => "dom4-events-constructor", desc => "Expose DOM4 Events constructors",
252
      define => "ENABLE_DOM4_EVENTS_CONSTRUCTOR", default => (isAppleWebKit() || isGtk()), value => \$dom4EventsConstructor },
253

254
    { option => "download-attribute", desc => "Toggle Download Attribute support",
255
      define => "ENABLE_DOWNLOAD_ATTRIBUTE", default => (isBlackBerry() || isEfl()), value => \$downloadAttributeSupport },
256

257
    { option => "file-system", desc => "Toggle File System support",
258 259
      define => "ENABLE_FILE_SYSTEM", default => isBlackBerry(), value => \$fileSystemSupport },

260
    { option => "filters", desc => "Toggle Filters support",
261 262
      define => "ENABLE_FILTERS", default => (isAppleWebKit() || isGtk() || isQt() || isEfl() || isBlackBerry()), value => \$filtersSupport },

263 264 265
    { option => "font-load-events", desc => "Toggle Font Load Events support",
      define => "ENABLE_FONT_LOAD_EVENTS", default => 0, value => \$fontLoadEventsSupport },

266
    { option => "ftpdir", desc => "Toggle FTP Directory support",
267 268 269
      define => "ENABLE_FTPDIR", default => !isWinCE(), value => \$ftpDirSupport },

    { option => "fullscreen-api", desc => "Toggle Fullscreen API support",
270
      define => "ENABLE_FULLSCREEN_API", default => (isAppleMacWebKit() || isEfl() || isGtk() || isBlackBerry() || isQt()), value => \$fullscreenAPISupport },
271 272

    { option => "gamepad", desc => "Toggle Gamepad support",
273
      define => "ENABLE_GAMEPAD", default => (isEfl() || isGtk() || isQt()), value => \$gamepadSupport },
274 275 276 277

    { option => "geolocation", desc => "Toggle Geolocation support",
      define => "ENABLE_GEOLOCATION", default => (isAppleWebKit() || isGtk() || isBlackBerry()), value => \$geolocationSupport },

278
    { option => "high-dpi-canvas", desc => "Toggle High DPI Canvas support",
279 280
      define => "ENABLE_HIGH_DPI_CANVAS", default => (isAppleWebKit()), value => \$highDPICanvasSupport },

281 282
    { option => "icon-database", desc => "Toggle Icondatabase support",
      define => "ENABLE_ICONDATABASE", default => 1, value => \$icondatabaseSupport },
283

284 285 286
    { option => "iframe-seamless", desc => "Toggle iframe seamless attribute support",
      define => "ENABLE_IFRAME_SEAMLESS", default => 1, value => \$iframeSeamlessSupport },

287
    { option => "indexed-database", desc => "Toggle Indexed Database support",
288
      define => "ENABLE_INDEXED_DATABASE", default => (isGtk() || isEfl()), value => \$indexedDatabaseSupport },
289

290
    { option => "input-speech", desc => "Toggle Input Speech support",
291 292
      define => "ENABLE_INPUT_SPEECH", default => 0, value => \$inputSpeechSupport },

293
    { option => "input-type-color", desc => "Toggle Input Type Color support",
294
      define => "ENABLE_INPUT_TYPE_COLOR", default => (isBlackBerry() || isEfl() || isQt()), value => \$inputTypeColorSupport },
295

296
    { option => "input-type-date", desc => "Toggle Input Type Date support",
297 298
      define => "ENABLE_INPUT_TYPE_DATE", default => 0, value => \$inputTypeDateSupport },

299 300
    { option => "input-type-datetime", desc => "Toggle broken Input Type Datetime support",
      define => "ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE", default => 0, value => \$inputTypeDatetimeSupport },
301

302
    { option => "input-type-datetimelocal", desc => "Toggle Input Type Datetimelocal support",
303 304
      define => "ENABLE_INPUT_TYPE_DATETIMELOCAL", default => 0, value => \$inputTypeDatetimelocalSupport },

305
    { option => "input-type-month", desc => "Toggle Input Type Month support",
306 307
      define => "ENABLE_INPUT_TYPE_MONTH", default => 0, value => \$inputTypeMonthSupport },

308
    { option => "input-type-time", desc => "Toggle Input Type Time support",
309 310
      define => "ENABLE_INPUT_TYPE_TIME", default => 0, value => \$inputTypeTimeSupport },

311
    { option => "input-type-week", desc => "Toggle Input Type Week support",
312 313
      define => "ENABLE_INPUT_TYPE_WEEK", default => 0, value => \$inputTypeWeekSupport },

314 315
    { option => "inspector", desc => "Toggle Inspector support",
      define => "ENABLE_INSPECTOR", default => !isWinCE(), value => \$inspectorSupport },
316

317
    { option => "javascript-debugger", desc => "Toggle JavaScript Debugger support",
318
      define => "ENABLE_JAVASCRIPT_DEBUGGER", default => 1, value => \$javascriptDebuggerSupport },
319

320
    { option => "legacy-notifications", desc => "Toggle Legacy Notifications support",
321 322
      define => "ENABLE_LEGACY_NOTIFICATIONS", default => isBlackBerry(), value => \$legacyNotificationsSupport },

abarth@webkit.org's avatar
abarth@webkit.org committed
323 324 325
    { option => "legacy-vendor-prefixes", desc => "Toggle Legacy Vendor Prefix support",
      define => "ENABLE_LEGACY_VENDOR_PREFIXES", default => !isChromium(), value => \$legacyVendorPrefixSupport },

326 327 328
    { option => "legacy-web-audio", desc => "Toggle Legacy Web Audio support",
      define => "ENABLE_LEGACY_WEB_AUDIO", default => 1, value => \$legacyWebAudioSupport },

329
    { option => "link-prefetch", desc => "Toggle Link Prefetch support",
330
      define => "ENABLE_LINK_PREFETCH", default => (isGtk() || isEfl()), value => \$linkPrefetchSupport },
331

332
    { option => "link-prerender", desc => "Toggle Link Prerender support",
333 334 335
      define => "ENABLE_LINK_PRERENDER", default => 0, value => \$linkPrerenderSupport },

    { option => "mathml", desc => "Toggle MathML support",
336
      define => "ENABLE_MATHML", default => !isBlackBerry(), value => \$mathmlSupport },
337

338 339 340
    { option => "media-capture", desc => "Toggle Media Capture support",
      define => "ENABLE_MEDIA_CAPTURE", default => isEfl(), value => \$mediaCaptureSupport },

341 342 343 344 345 346
    { option => "media-source", desc => "Toggle Media Source support",
      define => "ENABLE_MEDIA_SOURCE", default => 0, value => \$mediaSourceSupport },

    { option => "media-statistics", desc => "Toggle Media Statistics support",
      define => "ENABLE_MEDIA_STATISTICS", default => 0, value => \$mediaStatisticsSupport },

347
    { option => "media-stream", desc => "Toggle Media Stream support",
348
      define => "ENABLE_MEDIA_STREAM", default => (isChromium() || isBlackBerry()), value => \$mediaStreamSupport },
349

350
    { option => "meter-tag", desc => "Toggle Meter Tag support",
351
      define => "ENABLE_METER_ELEMENT", default => !isAppleWinWebKit(), value => \$meterTagSupport },
352 353

    { option => "mhtml", desc => "Toggle MHTML support",
354
      define => "ENABLE_MHTML", default => (isGtk() || isEfl()), value => \$mhtmlSupport },
355 356

    { option => "microdata", desc => "Toggle Microdata support",
357
      define => "ENABLE_MICRODATA", default => (isEfl() || isBlackBerry() || isGtk()), value => \$microdataSupport },
358

359 360 361
    { option => "mouse-cursor-scale", desc => "Toggle Scaled mouse cursor support",
      define => "ENABLE_MOUSE_CURSOR_SCALE", default => 0, value => \$mouseCursorScaleSupport },

362 363 364
    { option => "navigator-content-utils", desc => "Toggle Navigator Content Utils support",
      define => "ENABLE_NAVIGATOR_CONTENT_UTILS", default => (isBlackBerry() || isEfl()), value => \$registerProtocolHandlerSupport },

365
    { option => "netscape-plugin-api", desc => "Toggle Netscape Plugin API support",
366
      define => "ENABLE_NETSCAPE_PLUGIN_API", default => 1, value => \$netscapePluginAPISupport },
367

368
    { option => "network-info", desc => "Toggle Network Info support",
369
      define => "ENABLE_NETWORK_INFO", default => (isEfl() || isBlackBerry()), value => \$networkInfoSupport },
370

371 372 373
    { option => "nosniff", desc => "Toggle support for 'X-Content-Type-Options: nosniff'",
      define => "ENABLE_NOSNIFF", default => 0, value => \$nosniffSupport },

374
    { option => "notifications", desc => "Toggle Notifications support",
375 376 377 378 379
      define => "ENABLE_NOTIFICATIONS", default => isBlackBerry(), value => \$notificationsSupport },

    { option => "orientation-events", desc => "Toggle Orientation Events support",
      define => "ENABLE_ORIENTATION_EVENTS", default => isBlackBerry(), value => \$orientationEventsSupport },

380 381
    { option => "page-visibility-api", desc => "Toggle Page Visibility API support",
      define => "ENABLE_PAGE_VISIBILITY_API", default => (isBlackBerry() || isEfl()), value => \$pageVisibilityAPISupport },
382

383 384 385
    { option => "performance-timeline", desc => "Toggle Performance Timeline support",
      define => "ENABLE_PERFORMANCE_TIMELINE", default => isGtk(), value => \$performanceTimelineSupport },

386
    { option => "progress-tag", desc => "Toggle Progress Tag support",
387
      define => "ENABLE_PROGRESS_ELEMENT", default => 1, value => \$progressTagSupport },
388

389 390 391
    { option => "proximity-events", desc => "Toggle Proximity Events support",
      define => "ENABLE_PROXIMITY_EVENTS", default => 0, value => \$proximityEventsSupport },

392 393 394
    { option => "quota", desc => "Toggle Quota support",
      define => "ENABLE_QUOTA", default => 0, value => \$quotaSupport },

395 396 397
    { option => "resolution-media-query", desc => "Toggle resolution media query support",
      define => "ENABLE_RESOLUTION_MEDIA_QUERY", default => (isEfl() || isQt()), value => \$resolutionMediaQuerySupport },

398 399 400
    { option => "resource-timing", desc => "Toggle Resource Timing support",
      define => "ENABLE_RESOURCE_TIMING", default => isGtk(), value => \$resourceTimingSupport },

401
    { option => "request-animation-frame", desc => "Toggle Request Animation Frame support",
402 403
      define => "ENABLE_REQUEST_ANIMATION_FRAME", default => (isAppleMacWebKit() || isGtk() || isEfl() || isBlackBerry()), value => \$requestAnimationFrameSupport },

404
    { option => "scripted-speech", desc => "Toggle Scripted Speech support",
405
      define => "ENABLE_SCRIPTED_SPEECH", default => 0, value => \$scriptedSpeechSupport },
406 407

    { option => "shadow-dom", desc => "Toggle Shadow DOM support",
408
      define => "ENABLE_SHADOW_DOM", default => (isGtk() || isEfl()), value => \$shadowDOMSupport },
409

410
    { option => "shared-workers", desc => "Toggle Shared Workers support",
411 412
      define => "ENABLE_SHARED_WORKERS", default => (isAppleWebKit() || isGtk() || isBlackBerry() || isEfl()), value => \$sharedWorkersSupport },

413 414 415
    { option => "sql-database", desc => "Toggle SQL Database support",
      define => "ENABLE_SQL_DATABASE", default => 1, value => \$sqlDatabaseSupport },

416
    { option => "style-scoped", desc => "Toggle Style Scoped support",
417
      define => "ENABLE_STYLE_SCOPED", default => (isBlackBerry() || isGtk()), value => \$styleScopedSupport },
418

419 420 421
    { option => "suid-linux-sandbox", desc => "Toggle suid sandbox for linux",
      define => "ENABLE_SUID_SANDBOX_LINUX", default => 0, value => \$suidLinuxSandbox },

422 423 424
    { option => "svg", desc => "Toggle SVG support",
      define => "ENABLE_SVG", default => 1, value => \$svgSupport },

425
    { option => "svg-fonts", desc => "Toggle SVG Fonts support",
426 427
      define => "ENABLE_SVG_FONTS", default => 1, value => \$svgFontsSupport },

428
    { option => "system-malloc", desc => "Toggle system allocator instead of TCmalloc",
429
      define => "USE_SYSTEM_MALLOC", default => (isBlackBerry() || isWinCE()), value => \$systemMallocSupport },
430

431
    { option => "template-element", desc => "Toggle HTMLTemplateElement support",
432
      define => "ENABLE_TEMPLATE_ELEMENT", default => (isEfl() || isGtk()), value => \$templateElementSupport },
433

434 435 436
    { option => "text-autosizing", desc => "Toggle Text Autosizing support",
      define => "ENABLE_TEXT_AUTOSIZING", default => 0, value => \$textAutosizingSupport },

437
    { option => "tiled-backing-store", desc => "Toggle Tiled Backing Store support",
438
      define => "WTF_USE_TILED_BACKING_STORE", default => (isQt() || isEfl()), value => \$tiledBackingStoreSupport },
439

440 441 442
    { option => "threaded-html-parser", desc => "Toggle threaded HTML parser support",
      define => "ENABLE_THREADED_HTML_PARSER", default => isChromium(), value => \$threadedHTMLParserSupport },

443
    { option => "touch-events", desc => "Toggle Touch Events support",
444
      define => "ENABLE_TOUCH_EVENTS", default => (isQt() || isBlackBerry() || isEfl()), value => \$touchEventsSupport },
445

446 447 448
    { option => "touch-slider", desc => "Toggle Touch Slider support",
      define => "ENABLE_TOUCH_SLIDER", default => isBlackBerry(), value => \$touchSliderSupport },

449 450 451
    { option => "touch-icon-loading", desc => "Toggle Touch Icon Loading Support",
      define => "ENABLE_TOUCH_ICON_LOADING", default => 0, value => \$touchIconLoadingSupport },

452 453 454
    { option => "user-timing", desc => "Toggle User Timing support",
      define => "ENABLE_USER_TIMING", default => isGtk(), value => \$userTimingSupport },

455
    { option => "vibration", desc => "Toggle Vibration support",
456 457 458 459 460 461
      define => "ENABLE_VIBRATION", default => (isEfl() || isBlackBerry()), value => \$vibrationSupport },

    { option => "video", desc => "Toggle Video support",
      define => "ENABLE_VIDEO", default => (isAppleWebKit() || isGtk() || isBlackBerry() || isEfl()), value => \$videoSupport },

    { option => "video-track", desc => "Toggle Video Track support",
462
      define => "ENABLE_VIDEO_TRACK", default => (isAppleWebKit() || isGtk() || isEfl() || isBlackBerry()), value => \$videoTrackSupport },
463

464
    { option => "webgl", desc => "Toggle WebGL support",
465
      define => "ENABLE_WEBGL", default => (isAppleMacWebKit() || isGtk() || isEfl()), value => \$webglSupport },
466

467
    { option => "web-audio", desc => "Toggle Web Audio support",
468
      define => "ENABLE_WEB_AUDIO", default => (isEfl() || isGtk()), value => \$webAudioSupport },
469 470

    { option => "web-sockets", desc => "Toggle Web Sockets support",
471
      define => "ENABLE_WEB_SOCKETS", default => 1, value => \$webSocketsSupport },
472 473

    { option => "web-timing", desc => "Toggle Web Timing support",
474
      define => "ENABLE_WEB_TIMING", default => (isBlackBerry() || isGtk() || isEfl()), value => \$webTimingSupport },
475

476
    { option => "workers", desc => "Toggle Workers support",
477 478
      define => "ENABLE_WORKERS", default => (isAppleWebKit() || isGtk() || isBlackBerry() || isEfl()), value => \$workersSupport },

479 480 481
    { option => "xhr-timeout", desc => "Toggle XHR Timeout support",
      define => "ENABLE_XHR_TIMEOUT", default => (isEfl() || isGtk() || isAppleMacWebKit()), value => \$xhrTimeoutSupport },

482 483 484 485 486 487 488 489 490 491
    { option => "xslt", desc => "Toggle XSLT support",
      define => "ENABLE_XSLT", default => 1, value => \$xsltSupport },
);

sub getFeatureOptionList()
{
    return @features;
}

1;