Changeset 70412 in webkit


Ignore:
Timestamp:
Oct 24, 2010 6:49:39 AM (13 years ago)
Author:
ddkilzer@apple.com
Message:

<http://webkit.org/b/48184> build-webkit: reformat support variables for better maintainability

Reviewed by Daniel Bates.

  • Scripts/build-webkit: Alphabetized the @features array based

on the name of the feature. Reformatted the list of support
variables so that they match the order of @features, and so that
each has its own line. This makes it easy to add new variables
in the correct order.

Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r70409 r70412  
     12010-10-24  David Kilzer  <ddkilzer@apple.com>
     2
     3        <http://webkit.org/b/48184> build-webkit: reformat support variables for better maintainability
     4
     5        Reviewed by Daniel Bates.
     6
     7        * Scripts/build-webkit: Alphabetized the @features array based
     8        on the name of the feature.  Reformatted the list of support
     9        variables so that they match the order of @features, and so that
     10        each has its own line.  This makes it easy to add new variables
     11        in the correct order.
     12
    1132010-10-23  Eric Seidel  <eric@webkit.org>
    214
  • trunk/WebKitTools/Scripts/build-webkit

    r68802 r70412  
    11#!/usr/bin/perl -w
    22
    3 # Copyright (C) 2005, 2006 Apple Inc. All rights reserved.
     3# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
    44# Copyright (C) 2009 Google Inc. All rights reserved.
    55# Copyright (C) 2010 moiji-mobile.com All rights reserved.
     
    5858my $startTime = time();
    5959
    60 my ($linkPrefetchSupport, $accelerated2dCanvasSupport, $threeDCanvasSupport, $threeDRenderingSupport, $channelMessagingSupport, $clientBasedGeolocationSupport, $databaseSupport, $datagridSupport, $datalistSupport,
    61     $domStorageSupport, $eventsourceSupport, $filtersSupport, $geolocationSupport, $iconDatabaseSupport, $imageResizerSupport, $indexedDatabaseSupport, $inputSpeechSupport,
    62     $javaScriptDebuggerSupport, $mathmlSupport, $offlineWebApplicationSupport, $rubySupport, $systemMallocSupport, $sandboxSupport, $sharedWorkersSupport,
    63     $svgSupport, $svgAnimationSupport, $svgAsImageSupport, $svgDOMObjCBindingsSupport, $svgFontsSupport,
    64     $svgForeignObjectSupport, $svgUseSupport, $videoSupport, $webSocketsSupport, $webTimingSupport, $wmlSupport, $wcssSupport, $xhtmlmpSupport, $workersSupport,
    65     $xpathSupport, $xsltSupport, $coverageSupport, $notificationsSupport, $blobSupport, $tiledBackingStoreSupport,
    66     $fileWriterSupport, $fileSystemSupport, $directoryUploadSupport, $deviceOrientationSupport);
     60my (
     61    $threeDCanvasSupport,
     62    $threeDRenderingSupport,
     63    $accelerated2dCanvasSupport,
     64    $blobSupport,
     65    $channelMessagingSupport,
     66    $clientBasedGeolocationSupport,
     67    $coverageSupport,
     68    $databaseSupport,
     69    $datagridSupport,
     70    $datalistSupport,
     71    $deviceOrientationSupport,
     72    $directoryUploadSupport,
     73    $domStorageSupport,
     74    $eventsourceSupport,
     75    $fileSystemSupport,
     76    $filtersSupport,
     77    $geolocationSupport,
     78    $iconDatabaseSupport,
     79    $imageResizerSupport,
     80    $indexedDatabaseSupport,
     81    $inputSpeechSupport,
     82    $javaScriptDebuggerSupport,
     83    $linkPrefetchSupport,
     84    $mathmlSupport,
     85    $notificationsSupport,
     86    $offlineWebApplicationSupport,
     87    $rubySupport,
     88    $sandboxSupport,
     89    $sharedWorkersSupport,
     90    $svgSupport,
     91    $svgAnimationSupport,
     92    $svgAsImageSupport,
     93    $svgDOMObjCBindingsSupport,
     94    $svgFontsSupport,
     95    $svgForeignObjectSupport,
     96    $svgUseSupport,
     97    $systemMallocSupport,
     98    $tiledBackingStoreSupport,
     99    $videoSupport,
     100    $wcssSupport,
     101    $webSocketsSupport,
     102    $webTimingSupport,
     103    $wmlSupport,
     104    $workersSupport,
     105    $xhtmlmpSupport,
     106    $xpathSupport,
     107    $xsltSupport,
     108);
    67109
    68110my @features = (
     111    { option => "3d-canvas", desc => "Toggle 3D canvas support",
     112      define => "ENABLE_3D_CANVAS", default => (isAppleMacWebKit() && !isTiger() && !isLeopard()), value => \$threeDCanvasSupport },
     113
     114    { option => "3d-rendering", desc => "Toggle 3D rendering support",
     115      define => "ENABLE_3D_RENDERING", default => (isAppleMacWebKit() && !isTiger()), value => \$threeDRenderingSupport },
     116
     117    { option => "accelerated-2d-canvas", desc => "Toggle accelerated 2D canvas support",
     118      define => "ENABLE_ACCELERATED_2D_CANVAS", default => 0, value => \$accelerated2dCanvasSupport },
     119
     120    { option => "blob", desc => "Toggle Blob support",
     121      define => "ENABLE_BLOB", default => (isAppleMacWebKit()), value => \$blobSupport },
     122
     123    { option => "channel-messaging", desc => "Toggle MessageChannel and MessagePort support",
     124      define => "ENABLE_CHANNEL_MESSAGING", default => 1, value => \$channelMessagingSupport },
     125
     126    { option => "client-based-geolocation", desc => "Toggle client-based Geolocation support",
     127      define => "ENABLE_CLIENT_BASED_GEOLOCATION", default => isAppleWebKit(), value => \$clientBasedGeolocationSupport },
     128
     129    { option => "coverage", desc => "Toggle code coverage support",
     130      define => "", default => 0, value => \$coverageSupport },
     131
     132    { option => "database", desc => "Toggle Database Support",
     133      define => "ENABLE_DATABASE", default => 1, value => \$databaseSupport },
     134
     135    { option => "datagrid", desc => "Toggle Datagrid Support",
     136      define => "ENABLE_DATAGRID", default => 0, value => \$datagridSupport },
     137
     138    { option => "datalist", desc => "Toggle HTML5 datalist support",
     139      define => "ENABLE_DATALIST", default => 1, value => \$datalistSupport },
     140
     141    { option => "device-orientation", desc => "Toggle DeviceOrientation support",
     142      define => "ENABLE_DEVICE_ORIENTATION", default => 0, value => \$deviceOrientationSupport },
     143
     144    { option => "directory-upload", desc => "Toogle Directory upload support",
     145      define => "ENABLE_DIRECTORY_UPLOAD", default => 0, value => \$directoryUploadSupport },
     146
     147    { option => "dom-storage", desc => "Toggle DOM Storage Support",
     148      define => "ENABLE_DOM_STORAGE", default => 1, value => \$domStorageSupport },
     149
     150    { option => "eventsource", desc => "Toggle server-sent events support",
     151      define => "ENABLE_EVENTSOURCE", default => 1, value => \$eventsourceSupport },
     152
     153    { option => "file-system", desc => "Toggle FileSystem support",
     154      define => "ENABLE_FILE_SYSTEM", default => 0, value => \$fileSystemSupport },
     155
     156    { option => "filters", desc => "Toggle Filters support",
     157      define => "ENABLE_FILTERS", default => (isAppleWebKit() || isGtk() || isQt() || isEfl()), value => \$filtersSupport },
     158
     159    { option => "geolocation", desc => "Toggle Geolocation support",
     160      define => "ENABLE_GEOLOCATION", default => (isAppleWebKit() || isGtk()), value => \$geolocationSupport },
     161
     162    { option => "icon-database", desc => "Toggle Icon database support",
     163      define => "ENABLE_ICONDATABASE", default => 1, value => \$iconDatabaseSupport },
     164
     165    { option => "image-resizer", desc => "Toggle Image Resizer API support",
     166      define => "ENABLE_IMAGE_RESIZER", default => 0, value => \$imageResizerSupport },
     167
     168    { option => "indexed-database", desc => "Toggle Indexed Database API support",
     169      define => "ENABLE_INDEXED_DATABASE", default => 0, value => \$indexedDatabaseSupport },
     170
     171    { option => "input-speech", desc => "Speech Input API support",
     172      define => "ENABLE_INPUT_SPEECH", default => 0, value => \$inputSpeechSupport },
     173
     174    { option => "javascript-debugger", desc => "Toggle JavaScript Debugger/Profiler support",
     175      define => "ENABLE_JAVASCRIPT_DEBUGGER", default => 1, value => \$javaScriptDebuggerSupport },
     176
    69177    { option => "link-prefetch", desc => "Toggle pre fetching support",
    70178      define => "ENABLE_LINK_PREFETCH", default => 0, value => \$linkPrefetchSupport },
    71179
    72     { option => "accelerated-2d-canvas", desc => "Toggle accelerated 2D canvas support",
    73       define => "ENABLE_ACCELERATED_2D_CANVAS", default => 0, value => \$accelerated2dCanvasSupport },
    74 
    75     { option => "3d-canvas", desc => "Toggle 3D canvas support",
    76       define => "ENABLE_3D_CANVAS", default => (isAppleMacWebKit() && !isTiger() && !isLeopard()), value => \$threeDCanvasSupport },
    77 
    78     { option => "3d-rendering", desc => "Toggle 3D rendering support",
    79       define => "ENABLE_3D_RENDERING", default => (isAppleMacWebKit() && !isTiger()), value => \$threeDRenderingSupport },
    80 
    81     { option => "blob", desc => "Toggle Blob support",
    82       define => "ENABLE_BLOB", default => (isAppleMacWebKit()), value => \$blobSupport },
    83 
    84     { option => "channel-messaging", desc => "Toggle MessageChannel and MessagePort support",
    85       define => "ENABLE_CHANNEL_MESSAGING", default => 1, value => \$channelMessagingSupport },
    86 
    87     { option => "client-based-geolocation", desc => "Toggle client-based Geolocation support",
    88       define => "ENABLE_CLIENT_BASED_GEOLOCATION", default => isAppleWebKit(), value => \$clientBasedGeolocationSupport },
    89 
    90     { option => "coverage", desc => "Toggle code coverage support",
    91       define => "", default => 0, value => \$coverageSupport },
    92 
    93     { option => "database", desc => "Toggle Database Support",
    94       define => "ENABLE_DATABASE", default => 1, value => \$databaseSupport },
    95 
    96     { option => "datagrid", desc => "Toggle Datagrid Support",
    97       define => "ENABLE_DATAGRID", default => 0, value => \$datagridSupport },
    98      
    99     { option => "datalist", desc => "Toggle HTML5 datalist support",
    100       define => "ENABLE_DATALIST", default => 1, value => \$datalistSupport },
    101          
    102     { option => "directory-upload", desc => "Toogle Directory upload support",
    103       define => "ENABLE_DIRECTORY_UPLOAD", default => 0, value => \$directoryUploadSupport },
    104 
    105     { option => "dom-storage", desc => "Toggle DOM Storage Support",
    106       define => "ENABLE_DOM_STORAGE", default => 1, value => \$domStorageSupport },
    107 
    108     { option => "eventsource", desc => "Toggle server-sent events support",
    109       define => "ENABLE_EVENTSOURCE", default => 1, value => \$eventsourceSupport },
    110 
    111     { option => "filters", desc => "Toggle Filters support",
    112       define => "ENABLE_FILTERS", default => (isAppleWebKit() || isGtk() || isQt() || isEfl()), value => \$filtersSupport },
    113 
    114     { option => "geolocation", desc => "Toggle Geolocation support",
    115       define => "ENABLE_GEOLOCATION", default => (isAppleWebKit() || isGtk()), value => \$geolocationSupport },
    116 
    117     { option => "icon-database", desc => "Toggle Icon database support",
    118       define => "ENABLE_ICONDATABASE", default => 1, value => \$iconDatabaseSupport },
    119      
    120     { option => "image-resizer", desc => "Toggle Image Resizer API support",
    121       define => "ENABLE_IMAGE_RESIZER", default => 0, value => \$imageResizerSupport },
    122 
    123     { option => "indexed-database", desc => "Toggle Indexed Database API support",
    124       define => "ENABLE_INDEXED_DATABASE", default => 0, value => \$indexedDatabaseSupport },
    125 
    126     { option => "input-speech", desc => "Speech Input API support",
    127       define => "ENABLE_INPUT_SPEECH", default => 0, value => \$inputSpeechSupport },
    128 
    129     { option => "javascript-debugger", desc => "Toggle JavaScript Debugger/Profiler support",
    130       define => "ENABLE_JAVASCRIPT_DEBUGGER", default => 1, value => \$javaScriptDebuggerSupport },
    131 
    132180    { option => "mathml", desc => "Toggle MathML support",
    133181      define => "ENABLE_MATHML", default => 1, value => \$mathmlSupport },
     
    178226      define => "ENABLE_VIDEO", default => (isAppleWebKit() || isGtk()), value => \$videoSupport },
    179227
     228    { option => "wcss", desc => "Toggle WCSS support",
     229      define => "ENABLE_WCSS", default => 0, value => \$wcssSupport },
     230
    180231    { option => "web-sockets", desc => "Toggle Web Sockets support",
    181232      define => "ENABLE_WEB_SOCKETS", default => 1, value=> \$webSocketsSupport },
     
    187238      define => "ENABLE_WML", default => 0, value => \$wmlSupport },
    188239
     240    { option => "workers", desc => "Toggle Web Workers support",
     241      define => "ENABLE_WORKERS", default => (isAppleWebKit() || isGtk()), value => \$workersSupport },
     242
    189243    { option => "xhtmlmp", desc => "Toggle XHTML-MP support",
    190244      define => "ENABLE_XHTMLMP", default => 0, value => \$xhtmlmpSupport },
    191245
    192     { option => "wcss", desc => "Toggle WCSS support",
    193       define => "ENABLE_WCSS", default => 0, value => \$wcssSupport },
    194 
    195     { option => "workers", desc => "Toggle Web Workers support",
    196       define => "ENABLE_WORKERS", default => (isAppleWebKit() || isGtk()), value => \$workersSupport },
    197 
    198246    { option => "xpath", desc => "Toggle XPath support",
    199247      define => "ENABLE_XPATH", default => 1, value => \$xpathSupport },
     
    201249    { option => "xslt", desc => "Toggle XSLT support",
    202250      define => "ENABLE_XSLT", default => 1, value => \$xsltSupport },
    203 
    204     { option => "file-system", desc => "Toggle FileSystem support",
    205       define => "ENABLE_FILE_SYSTEM", default => 0, value => \$fileSystemSupport },
    206 
    207     { option => "device-orientation", desc => "Toggle DeviceOrientation support",
    208       define => "ENABLE_DEVICE_ORIENTATION", default => 0, value => \$deviceOrientationSupport },
    209251);
    210252
Note: See TracChangeset for help on using the changeset viewer.