Home | History | Annotate | Download | only in WebCore
      1 CONFIG(standalone_package) {
      2     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = $$PWD/generated
      3 } else {
      4     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = generated
      5 }
      6 
      7 ## Define default features macros for optional components
      8 ## (look for defs in config.h and included files!)
      9 # Try to locate sqlite3 source
     10 CONFIG(QTDIR_build) {
     11     SQLITE3SRCDIR = $$QT_SOURCE_TREE/src/3rdparty/sqlite/
     12 } else {
     13     SQLITE3SRCDIR = $$(SQLITE3SRCDIR)
     14     isEmpty(SQLITE3SRCDIR) {
     15         SQLITE3SRCDIR = $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite/
     16     }
     17 }
     18 
     19 contains(DEFINES, ENABLE_SINGLE_THREADED=1) {
     20     DEFINES+=ENABLE_DATABASE=0 ENABLE_DOM_STORAGE=0 ENABLE_ICONDATABASE=0 ENABLE_WORKERS=0 ENABLE_SHARED_WORKERS=0
     21 }
     22 
     23 # turn off SQLITE support if we do not have sqlite3 available
     24 !CONFIG(QTDIR_build):win32-*:!exists( $${SQLITE3SRCDIR}/sqlite3.c ): DEFINES += ENABLE_SQLITE=0 ENABLE_DATABASE=0 ENABLE_WORKERS=0 ENABLE_SHARED_WORKERS=0 ENABLE_ICONDATABASE=0 ENABLE_OFFLINE_WEB_APPLICATIONS=0 ENABLE_DOM_STORAGE=0
     25 
     26 !contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=.): DEFINES += ENABLE_JAVASCRIPT_DEBUGGER=1
     27 !contains(DEFINES, ENABLE_DATABASE=.): DEFINES += ENABLE_DATABASE=1
     28 !contains(DEFINES, ENABLE_EVENTSOURCE=.): DEFINES += ENABLE_EVENTSOURCE=1
     29 !contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=.): DEFINES += ENABLE_OFFLINE_WEB_APPLICATIONS=1
     30 !contains(DEFINES, ENABLE_DOM_STORAGE=.): DEFINES += ENABLE_DOM_STORAGE=1
     31 !contains(DEFINES, ENABLE_ICONDATABASE=.): DEFINES += ENABLE_ICONDATABASE=1
     32 !contains(DEFINES, ENABLE_CHANNEL_MESSAGING=.): DEFINES += ENABLE_CHANNEL_MESSAGING=1
     33 !contains(DEFINES, ENABLE_ORIENTATION_EVENTS=.): DEFINES += ENABLE_ORIENTATION_EVENTS=0
     34 
     35 # turn on SQLITE support if any of the dependent features are turned on
     36 !contains(DEFINES, ENABLE_SQLITE=.) {
     37   contains(DEFINES, ENABLE_DATABASE=1)|contains(DEFINES, ENABLE_ICONDATABASE=1)|contains(DEFINES, ENABLE_DOM_STORAGE=1)|contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=1) {
     38     DEFINES += ENABLE_SQLITE=1
     39   } else {
     40     DEFINES += ENABLE_SQLITE=0
     41   }
     42 }
     43 
     44 !contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=.): DEFINES += ENABLE_DASHBOARD_SUPPORT=0
     45 !contains(DEFINES, ENABLE_FILTERS=.): DEFINES += ENABLE_FILTERS=1
     46 !contains(DEFINES, ENABLE_XPATH=.): DEFINES += ENABLE_XPATH=1
     47 #!contains(DEFINES, ENABLE_XBL=.): DEFINES += ENABLE_XBL=1
     48 !contains(DEFINES, ENABLE_WCSS=.): DEFINES += ENABLE_WCSS=0
     49 !contains(DEFINES, ENABLE_WML=.): DEFINES += ENABLE_WML=0
     50 !contains(DEFINES, ENABLE_SHARED_WORKERS=.): DEFINES += ENABLE_SHARED_WORKERS=1
     51 !contains(DEFINES, ENABLE_WORKERS=.): DEFINES += ENABLE_WORKERS=1
     52 !contains(DEFINES, ENABLE_XHTMLMP=.): DEFINES += ENABLE_XHTMLMP=0
     53 !contains(DEFINES, ENABLE_DATAGRID=.): DEFINES += ENABLE_DATAGRID=0
     54 !contains(DEFINES, ENABLE_VIDEO=.): DEFINES += ENABLE_VIDEO=1
     55 !contains(DEFINES, ENABLE_RUBY=.): DEFINES += ENABLE_RUBY=1
     56 
     57 # SVG support
     58 !contains(DEFINES, ENABLE_SVG=0) {
     59     !contains(DEFINES, ENABLE_SVG=.): DEFINES += ENABLE_SVG=1
     60     !contains(DEFINES, ENABLE_SVG_FONTS=.): DEFINES += ENABLE_SVG_FONTS=1
     61     !contains(DEFINES, ENABLE_SVG_FOREIGN_OBJECT=.): DEFINES += ENABLE_SVG_FOREIGN_OBJECT=1
     62     !contains(DEFINES, ENABLE_SVG_ANIMATION=.): DEFINES += ENABLE_SVG_ANIMATION=1
     63     !contains(DEFINES, ENABLE_SVG_AS_IMAGE=.): DEFINES += ENABLE_SVG_AS_IMAGE=1
     64     !contains(DEFINES, ENABLE_SVG_USE=.): DEFINES += ENABLE_SVG_USE=1
     65 } else {
     66     DEFINES += ENABLE_SVG_FONTS=0 ENABLE_SVG_FOREIGN_OBJECT=0 ENABLE_SVG_ANIMATION=0 ENABLE_SVG_AS_IMAGE=0 ENABLE_SVG_USE=0
     67 }
     68 
     69 # HTML5 media support
     70 !contains(DEFINES, ENABLE_VIDEO=.): DEFINES += ENABLE_VIDEO=1
     71 
     72 # HTML5 datalist support
     73 !contains(DEFINES, ENABLE_DATALIST=.): DEFINES += ENABLE_DATALIST=1
     74 
     75 # Nescape plugins support (NPAPI)
     76 !contains(DEFINES, ENABLE_NETSCAPE_PLUGIN_API=.) {
     77     unix|win32-*:!embedded:!wince*: {
     78         DEFINES += ENABLE_NETSCAPE_PLUGIN_API=1
     79     } else {
     80         DEFINES += ENABLE_NETSCAPE_PLUGIN_API=0
     81     }
     82 }
     83 
     84 # Web Socket support.
     85 !contains(DEFINES, ENABLE_WEB_SOCKETS=.): DEFINES += ENABLE_WEB_SOCKETS=1
     86 
     87 # XSLT support with QtXmlPatterns
     88 !contains(DEFINES, ENABLE_XSLT=.) {
     89     contains(QT_CONFIG, xmlpatterns):!lessThan(QT_MINOR_VERSION, 5):DEFINES += ENABLE_XSLT=1
     90     else:DEFINES += ENABLE_XSLT=0
     91 }
     92 
     93 !CONFIG(QTDIR_build):!contains(DEFINES, ENABLE_QT_BEARER=.) {
     94     symbian: {
     95         exists($${EPOCROOT}epoc32/release/winscw/udeb/QtBearer.lib)| \
     96         exists($${EPOCROOT}epoc32/release/armv5/lib/QtBearer.lib) {
     97             DEFINES += ENABLE_QT_BEARER=1
     98         }
     99     }
    100 }
    101 
    102 DEFINES += WTF_CHANGES=1
    103 
    104 # Enable touch event support with Qt 4.6
    105 !lessThan(QT_MINOR_VERSION, 6): DEFINES += ENABLE_TOUCH_EVENTS=1
    106 
    107 # Used to compute defaults for the build-webkit script
    108 CONFIG(compute_defaults) {
    109     message($$DEFINES)
    110     error("Done computing defaults")
    111 }
    112 
    113 contains(DEFINES, ENABLE_WCSS=1) {
    114     contains(DEFINES, ENABLE_XHTMLMP=0) {
    115         DEFINES -= ENABLE_XHTMLMP=0
    116         DEFINES += ENABLE_XHTMLMP=1
    117     }
    118 }
    119 
    120 ## Forward enabled feature macros to JavaScript enabled features macros
    121 FEATURE_DEFINES_JAVASCRIPT = LANGUAGE_JAVASCRIPT=1
    122 contains(DEFINES, ENABLE_CHANNEL_MESSAGING=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_CHANNEL_MESSAGING=1
    123 contains(DEFINES, ENABLE_ORIENTATION_EVENTS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_ORIENTATION_EVENTS=1
    124 contains(DEFINES, ENABLE_DASHBOARD_SUPPORT=0): DASHBOARDSUPPORTCSSPROPERTIES -= $$PWD/css/DashboardSupportCSSPropertyNames.in
    125 contains(DEFINES, ENABLE_DATAGRID=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATAGRID=1
    126 contains(DEFINES, ENABLE_EVENTSOURCE=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_EVENTSOURCE=1
    127 contains(DEFINES, ENABLE_DATABASE=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DATABASE=1
    128 contains(DEFINES, ENABLE_DOM_STORAGE=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_DOM_STORAGE=1
    129 contains(DEFINES, ENABLE_SHARED_SCRIPT=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_SHARED_SCRIPT=1
    130 contains(DEFINES, ENABLE_WORKERS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WORKERS=1
    131 contains(DEFINES, ENABLE_SHARED_WORKERS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_SHARED_WORKERS=1
    132 contains(DEFINES, ENABLE_VIDEO=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_VIDEO=1
    133 contains(DEFINES, ENABLE_XPATH=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XPATH=1
    134 contains(DEFINES, ENABLE_XSLT=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XSLT=1
    135 contains(DEFINES, ENABLE_XBL=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XBL=1
    136 contains(DEFINES, ENABLE_FILTERS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_FILTERS=1
    137 contains(DEFINES, ENABLE_WCSS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WCSS=1
    138 contains(DEFINES, ENABLE_WML=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WML=1
    139 contains(DEFINES, ENABLE_XHTMLMP=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_XHTMLMP=1
    140 contains(DEFINES, ENABLE_SVG=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_SVG=1
    141 contains(DEFINES, ENABLE_JAVASCRIPT_DEBUGGER=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_JAVASCRIPT_DEBUGGER=1
    142 contains(DEFINES, ENABLE_OFFLINE_WEB_APPLICATIONS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_OFFLINE_WEB_APPLICATIONS=1
    143 contains(DEFINES, ENABLE_WEB_SOCKETS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_WEB_SOCKETS=1
    144 contains(DEFINES, ENABLE_TOUCH_EVENTS=1): FEATURE_DEFINES_JAVASCRIPT += ENABLE_TOUCH_EVENTS=1
    145 
    146 
    147 ## Derived source generators
    148 WML_NAMES = $$PWD/wml/WMLTagNames.in
    149 
    150 SVG_NAMES = $$PWD/svg/svgtags.in
    151 
    152 XLINK_NAMES = $$PWD/svg/xlinkattrs.in
    153 
    154 TOKENIZER = $$PWD/css/tokenizer.flex
    155 
    156 DOCTYPESTRINGS = $$PWD/html/DocTypeStrings.gperf
    157 
    158 CSSBISON = $$PWD/css/CSSGrammar.y
    159 
    160 HTML_NAMES = $$PWD/html/HTMLTagNames.in
    161 
    162 XML_NAMES = $$PWD/xml/xmlattrs.in
    163 
    164 XMLNS_NAMES = $$PWD/xml/xmlnsattrs.in
    165 
    166 ENTITIES_GPERF = $$PWD/html/HTMLEntityNames.gperf
    167 
    168 COLORDAT_GPERF = $$PWD/platform/ColorData.gperf
    169 
    170 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
    171 
    172 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
    173 
    174 DASHBOARDSUPPORTCSSPROPERTIES = $$PWD/css/DashboardSupportCSSPropertyNames.in
    175 
    176 XPATHBISON = $$PWD/xml/XPathGrammar.y
    177 
    178 contains(DEFINES, ENABLE_SVG=1) {
    179     EXTRACSSPROPERTIES += $$PWD/css/SVGCSSPropertyNames.in
    180     EXTRACSSVALUES += $$PWD/css/SVGCSSValueKeywords.in
    181 }
    182 
    183 contains(DEFINES, ENABLE_WCSS=1) {
    184     EXTRACSSPROPERTIES += $$PWD/css/WCSSPropertyNames.in
    185     EXTRACSSVALUES += $$PWD/css/WCSSValueKeywords.in
    186 }
    187 
    188 STYLESHEETS_EMBED = \
    189     $$PWD/css/html.css \
    190     $$PWD/css/quirks.css \
    191     $$PWD/css/svg.css \
    192     $$PWD/css/view-source.css \
    193     $$PWD/css/wml.css \
    194     $$PWD/css/mediaControls.css \
    195     $$PWD/css/mediaControlsQt.css
    196 
    197 IDL_BINDINGS += \
    198     css/Counter.idl \
    199     css/CSSCharsetRule.idl \
    200     css/CSSFontFaceRule.idl \
    201     css/CSSImportRule.idl \
    202     css/CSSMediaRule.idl \
    203     css/CSSPageRule.idl \
    204     css/CSSPrimitiveValue.idl \
    205     css/CSSRule.idl \
    206     css/CSSRuleList.idl \
    207     css/CSSStyleDeclaration.idl \
    208     css/CSSStyleRule.idl \
    209     css/CSSStyleSheet.idl \
    210     css/CSSValue.idl \
    211     css/CSSValueList.idl \
    212     css/CSSVariablesDeclaration.idl \
    213     css/CSSVariablesRule.idl \
    214     css/Media.idl \
    215     css/MediaList.idl \
    216     css/RGBColor.idl \
    217     css/Rect.idl \
    218     css/StyleSheet.idl \
    219     css/StyleSheetList.idl \
    220     css/WebKitCSSKeyframeRule.idl \
    221     css/WebKitCSSKeyframesRule.idl \
    222     css/WebKitCSSMatrix.idl \
    223     css/WebKitCSSTransformValue.idl \
    224     dom/Attr.idl \
    225     dom/BeforeLoadEvent.idl \
    226     dom/CharacterData.idl \
    227     dom/ClientRect.idl \
    228     dom/ClientRectList.idl \
    229     dom/Clipboard.idl \
    230     dom/CDATASection.idl \
    231     dom/Comment.idl \
    232     dom/CompositionEvent.idl \
    233     dom/DocumentFragment.idl \
    234     dom/Document.idl \
    235     dom/DocumentType.idl \
    236     dom/DOMCoreException.idl \
    237     dom/DOMImplementation.idl \
    238     dom/Element.idl \
    239     dom/Entity.idl \
    240     dom/EntityReference.idl \
    241     dom/ErrorEvent.idl \
    242     dom/Event.idl \
    243     dom/EventException.idl \
    244 #    dom/EventListener.idl \
    245 #    dom/EventTarget.idl \
    246     dom/KeyboardEvent.idl \
    247     dom/MouseEvent.idl \
    248     dom/MessageChannel.idl \
    249     dom/MessageEvent.idl \
    250     dom/MessagePort.idl \
    251     dom/MutationEvent.idl \
    252     dom/NamedNodeMap.idl \
    253     dom/Node.idl \
    254     dom/NodeFilter.idl \
    255     dom/NodeIterator.idl \
    256     dom/NodeList.idl \
    257     dom/Notation.idl \
    258     dom/OverflowEvent.idl \
    259     dom/PageTransitionEvent.idl \
    260     dom/PopStateEvent.idl \
    261     dom/ProcessingInstruction.idl \
    262     dom/ProgressEvent.idl \
    263     dom/RangeException.idl \
    264     dom/Range.idl \
    265     dom/Text.idl \
    266     dom/TextEvent.idl \
    267     dom/Touch.idl \
    268     dom/TouchEvent.idl \
    269     dom/TouchList.idl \
    270     dom/TreeWalker.idl \
    271     dom/UIEvent.idl \
    272     dom/WebKitAnimationEvent.idl \
    273     dom/WebKitTransitionEvent.idl \
    274     dom/WheelEvent.idl \
    275     html/Blob.idl \
    276     html/canvas/WebGLArray.idl \
    277     html/canvas/WebGLArrayBuffer.idl \
    278     html/canvas/WebGLByteArray.idl \
    279     html/canvas/WebGLFloatArray.idl \
    280     html/canvas/CanvasGradient.idl \
    281     html/canvas/WebGLIntArray.idl \
    282     html/canvas/CanvasPattern.idl \
    283     html/canvas/CanvasRenderingContext.idl \
    284     html/canvas/CanvasRenderingContext2D.idl \
    285     html/canvas/WebGLRenderingContext.idl \
    286     html/canvas/WebGLShortArray.idl \
    287     html/canvas/WebGLUnsignedByteArray.idl \
    288     html/canvas/WebGLUnsignedIntArray.idl \
    289     html/canvas/WebGLUnsignedShortArray.idl \
    290     html/DataGridColumn.idl \
    291     html/DataGridColumnList.idl \
    292     html/File.idl \
    293     html/FileList.idl \
    294     html/HTMLAllCollection.idl \
    295     html/HTMLAudioElement.idl \
    296     html/HTMLAnchorElement.idl \
    297     html/HTMLAppletElement.idl \
    298     html/HTMLAreaElement.idl \
    299     html/HTMLBaseElement.idl \
    300     html/HTMLBaseFontElement.idl \
    301     html/HTMLBlockquoteElement.idl \
    302     html/HTMLBodyElement.idl \
    303     html/HTMLBRElement.idl \
    304     html/HTMLButtonElement.idl \
    305     html/HTMLCanvasElement.idl \
    306     html/HTMLCollection.idl \
    307     html/HTMLDataGridElement.idl \
    308     html/HTMLDataGridCellElement.idl \
    309     html/HTMLDataGridColElement.idl \
    310     html/HTMLDataGridRowElement.idl \
    311     html/HTMLDataListElement.idl \
    312     html/HTMLDirectoryElement.idl \
    313     html/HTMLDivElement.idl \
    314     html/HTMLDListElement.idl \
    315     html/HTMLDocument.idl \
    316     html/HTMLElement.idl \
    317     html/HTMLEmbedElement.idl \
    318     html/HTMLFieldSetElement.idl \
    319     html/HTMLFontElement.idl \
    320     html/HTMLFormElement.idl \
    321     html/HTMLFrameElement.idl \
    322     html/HTMLFrameSetElement.idl \
    323     html/HTMLHeadElement.idl \
    324     html/HTMLHeadingElement.idl \
    325     html/HTMLHRElement.idl \
    326     html/HTMLHtmlElement.idl \
    327     html/HTMLIFrameElement.idl \
    328     html/HTMLImageElement.idl \
    329     html/HTMLInputElement.idl \
    330     html/HTMLIsIndexElement.idl \
    331     html/HTMLLabelElement.idl \
    332     html/HTMLLegendElement.idl \
    333     html/HTMLLIElement.idl \
    334     html/HTMLLinkElement.idl \
    335     html/HTMLMapElement.idl \
    336     html/HTMLMarqueeElement.idl \
    337     html/HTMLMediaElement.idl \
    338     html/HTMLMenuElement.idl \
    339     html/HTMLMetaElement.idl \
    340     html/HTMLModElement.idl \
    341     html/HTMLObjectElement.idl \
    342     html/HTMLOListElement.idl \
    343     html/HTMLOptGroupElement.idl \
    344     html/HTMLOptionElement.idl \
    345     html/HTMLOptionsCollection.idl \
    346     html/HTMLParagraphElement.idl \
    347     html/HTMLParamElement.idl \
    348     html/HTMLPreElement.idl \
    349     html/HTMLQuoteElement.idl \
    350     html/HTMLScriptElement.idl \
    351     html/HTMLSelectElement.idl \
    352     html/HTMLSourceElement.idl \
    353     html/HTMLStyleElement.idl \
    354     html/HTMLTableCaptionElement.idl \
    355     html/HTMLTableCellElement.idl \
    356     html/HTMLTableColElement.idl \
    357     html/HTMLTableElement.idl \
    358     html/HTMLTableRowElement.idl \
    359     html/HTMLTableSectionElement.idl \
    360     html/HTMLTextAreaElement.idl \
    361     html/HTMLTitleElement.idl \
    362     html/HTMLUListElement.idl \
    363     html/HTMLVideoElement.idl \
    364     html/ImageData.idl \
    365     html/MediaError.idl \
    366     html/TextMetrics.idl \
    367     html/TimeRanges.idl \
    368     html/ValidityState.idl \
    369     html/VoidCallback.idl \
    370     inspector/InjectedScriptHost.idl \
    371     inspector/InspectorBackend.idl \
    372     inspector/InspectorFrontendHost.idl \
    373     inspector/JavaScriptCallFrame.idl \
    374     loader/appcache/DOMApplicationCache.idl \
    375     page/BarInfo.idl \
    376     page/Console.idl \
    377     page/Coordinates.idl \
    378     page/DOMSelection.idl \
    379     page/DOMWindow.idl \
    380     page/EventSource.idl \
    381     page/Geolocation.idl \
    382     page/Geoposition.idl \
    383     page/History.idl \
    384     page/Location.idl \
    385     page/Navigator.idl \
    386     page/PositionError.idl \
    387     page/Screen.idl \
    388     page/WebKitPoint.idl \
    389     page/WorkerNavigator.idl \
    390     plugins/Plugin.idl \
    391     plugins/MimeType.idl \
    392     plugins/PluginArray.idl \
    393     plugins/MimeTypeArray.idl \
    394     storage/Database.idl \
    395     storage/Storage.idl \
    396     storage/StorageEvent.idl \
    397     storage/SQLError.idl \
    398     storage/SQLResultSet.idl \
    399     storage/SQLResultSetRowList.idl \
    400     storage/SQLTransaction.idl \
    401     svg/SVGZoomEvent.idl \
    402     svg/SVGAElement.idl \
    403     svg/SVGAltGlyphElement.idl \
    404     svg/SVGAngle.idl \
    405     svg/SVGAnimateColorElement.idl \
    406     svg/SVGAnimatedAngle.idl \
    407     svg/SVGAnimatedBoolean.idl \
    408     svg/SVGAnimatedEnumeration.idl \
    409     svg/SVGAnimatedInteger.idl \
    410     svg/SVGAnimatedLength.idl \
    411     svg/SVGAnimatedLengthList.idl \
    412     svg/SVGAnimatedNumber.idl \
    413     svg/SVGAnimatedNumberList.idl \
    414     svg/SVGAnimatedPreserveAspectRatio.idl \
    415     svg/SVGAnimatedRect.idl \
    416     svg/SVGAnimatedString.idl \
    417     svg/SVGAnimatedTransformList.idl \
    418     svg/SVGAnimateElement.idl \
    419     svg/SVGAnimateTransformElement.idl \
    420     svg/SVGAnimationElement.idl \
    421     svg/SVGCircleElement.idl \
    422     svg/SVGClipPathElement.idl \
    423     svg/SVGColor.idl \
    424     svg/SVGComponentTransferFunctionElement.idl \
    425     svg/SVGCursorElement.idl \
    426     svg/SVGDefsElement.idl \
    427     svg/SVGDescElement.idl \
    428     svg/SVGDocument.idl \
    429     svg/SVGElement.idl \
    430     svg/SVGElementInstance.idl \
    431     svg/SVGElementInstanceList.idl \
    432     svg/SVGEllipseElement.idl \
    433     svg/SVGException.idl \
    434     svg/SVGFEBlendElement.idl \
    435     svg/SVGFEColorMatrixElement.idl \
    436     svg/SVGFEComponentTransferElement.idl \
    437     svg/SVGFECompositeElement.idl \
    438     svg/SVGFEDiffuseLightingElement.idl \
    439     svg/SVGFEDisplacementMapElement.idl \
    440     svg/SVGFEDistantLightElement.idl \
    441     svg/SVGFEFloodElement.idl \
    442     svg/SVGFEFuncAElement.idl \
    443     svg/SVGFEFuncBElement.idl \
    444     svg/SVGFEFuncGElement.idl \
    445     svg/SVGFEFuncRElement.idl \
    446     svg/SVGFEGaussianBlurElement.idl \
    447     svg/SVGFEImageElement.idl \
    448     svg/SVGFEMergeElement.idl \
    449     svg/SVGFEMergeNodeElement.idl \
    450     svg/SVGFEMorphologyElement.idl \
    451     svg/SVGFEOffsetElement.idl \
    452     svg/SVGFEPointLightElement.idl \
    453     svg/SVGFESpecularLightingElement.idl \
    454     svg/SVGFESpotLightElement.idl \
    455     svg/SVGFETileElement.idl \
    456     svg/SVGFETurbulenceElement.idl \
    457     svg/SVGFilterElement.idl \
    458     svg/SVGFontElement.idl \
    459     svg/SVGFontFaceElement.idl \
    460     svg/SVGFontFaceFormatElement.idl \
    461     svg/SVGFontFaceNameElement.idl \
    462     svg/SVGFontFaceSrcElement.idl \
    463     svg/SVGFontFaceUriElement.idl \
    464     svg/SVGForeignObjectElement.idl \
    465     svg/SVGGElement.idl \
    466     svg/SVGGlyphElement.idl \
    467     svg/SVGGradientElement.idl \
    468     svg/SVGHKernElement.idl \
    469     svg/SVGImageElement.idl \
    470     svg/SVGLength.idl \
    471     svg/SVGLengthList.idl \
    472     svg/SVGLinearGradientElement.idl \
    473     svg/SVGLineElement.idl \
    474     svg/SVGMarkerElement.idl \
    475     svg/SVGMaskElement.idl \
    476     svg/SVGMatrix.idl \
    477     svg/SVGMetadataElement.idl \
    478     svg/SVGMissingGlyphElement.idl \
    479     svg/SVGNumber.idl \
    480     svg/SVGNumberList.idl \
    481     svg/SVGPaint.idl \
    482     svg/SVGPathElement.idl \
    483     svg/SVGPathSegArcAbs.idl \
    484     svg/SVGPathSegArcRel.idl \
    485     svg/SVGPathSegClosePath.idl \
    486     svg/SVGPathSegCurvetoCubicAbs.idl \
    487     svg/SVGPathSegCurvetoCubicRel.idl \
    488     svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
    489     svg/SVGPathSegCurvetoCubicSmoothRel.idl \
    490     svg/SVGPathSegCurvetoQuadraticAbs.idl \
    491     svg/SVGPathSegCurvetoQuadraticRel.idl \
    492     svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
    493     svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
    494     svg/SVGPathSeg.idl \
    495     svg/SVGPathSegLinetoAbs.idl \
    496     svg/SVGPathSegLinetoHorizontalAbs.idl \
    497     svg/SVGPathSegLinetoHorizontalRel.idl \
    498     svg/SVGPathSegLinetoRel.idl \
    499     svg/SVGPathSegLinetoVerticalAbs.idl \
    500     svg/SVGPathSegLinetoVerticalRel.idl \
    501     svg/SVGPathSegList.idl \
    502     svg/SVGPathSegMovetoAbs.idl \
    503     svg/SVGPathSegMovetoRel.idl \
    504     svg/SVGPatternElement.idl \
    505     svg/SVGPoint.idl \
    506     svg/SVGPointList.idl \
    507     svg/SVGPolygonElement.idl \
    508     svg/SVGPolylineElement.idl \
    509     svg/SVGPreserveAspectRatio.idl \
    510     svg/SVGRadialGradientElement.idl \
    511     svg/SVGRectElement.idl \
    512     svg/SVGRect.idl \
    513     svg/SVGRenderingIntent.idl \
    514     svg/SVGScriptElement.idl \
    515     svg/SVGSetElement.idl \
    516     svg/SVGStopElement.idl \
    517     svg/SVGStringList.idl \
    518     svg/SVGStyleElement.idl \
    519     svg/SVGSVGElement.idl \
    520     svg/SVGSwitchElement.idl \
    521     svg/SVGSymbolElement.idl \
    522     svg/SVGTextContentElement.idl \
    523     svg/SVGTextElement.idl \
    524     svg/SVGTextPathElement.idl \
    525     svg/SVGTextPositioningElement.idl \
    526     svg/SVGTitleElement.idl \
    527     svg/SVGTransform.idl \
    528     svg/SVGTransformList.idl \
    529     svg/SVGTRefElement.idl \
    530     svg/SVGTSpanElement.idl \
    531     svg/SVGUnitTypes.idl \
    532     svg/SVGUseElement.idl \
    533     svg/SVGViewElement.idl \
    534     websockets/WebSocket.idl \
    535     workers/AbstractWorker.idl \
    536     workers/DedicatedWorkerContext.idl \
    537     workers/SharedWorker.idl \
    538     workers/SharedWorkerContext.idl \
    539     workers/Worker.idl \
    540     workers/WorkerContext.idl \
    541     workers/WorkerLocation.idl \
    542     xml/DOMParser.idl \
    543     xml/XMLHttpRequest.idl \
    544     xml/XMLHttpRequestException.idl \
    545     xml/XMLHttpRequestProgressEvent.idl \
    546     xml/XMLHttpRequestUpload.idl \
    547     xml/XMLSerializer.idl \
    548     xml/XPathNSResolver.idl \
    549     xml/XPathException.idl \
    550     xml/XPathExpression.idl \
    551     xml/XPathResult.idl \
    552     xml/XPathEvaluator.idl \
    553     xml/XSLTProcessor.idl
    554 
    555 contains(DEFINES, ENABLE_WML=1) {
    556     wmlnames.output = $${WC_GENERATED_SOURCES_DIR}/WMLNames.cpp
    557     wmlnames.input = WML_NAMES
    558     wmlnames.wkScript = $$PWD/dom/make_names.pl
    559     wmlnames.commands = perl -I$$PWD/bindings/scripts $$wmlnames.wkScript --tags $$PWD/wml/WMLTagNames.in --attrs $$PWD/wml/WMLAttributeNames.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory --wrapperFactory --outputDir $$WC_GENERATED_SOURCES_DIR
    560     wmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/WMLElementFactory.cpp
    561     addExtraCompiler(wmlnames)
    562 }
    563 
    564 contains(DEFINES, ENABLE_SVG=1) {
    565     # GENERATOR 5-C:
    566     svgnames.output = $${WC_GENERATED_SOURCES_DIR}/SVGNames.cpp
    567     svgnames.input = SVG_NAMES
    568     svgnames.wkScript = $$PWD/dom/make_names.pl
    569     svgnames.commands = perl -I$$PWD/bindings/scripts $$svgnames.wkScript --tags $$PWD/svg/svgtags.in --attrs $$PWD/svg/svgattrs.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory --wrapperFactory --outputDir $$WC_GENERATED_SOURCES_DIR
    570     svgnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/SVGElementFactory.cpp $${WC_GENERATED_SOURCES_DIR}/JSSVGElementWrapperFactory.cpp
    571     addExtraCompiler(svgnames)
    572 }
    573 
    574 # GENERATOR 5-D:
    575 xlinknames.output = $${WC_GENERATED_SOURCES_DIR}/XLinkNames.cpp
    576 xlinknames.wkScript = $$PWD/dom/make_names.pl
    577 xlinknames.commands = perl -I$$PWD/bindings/scripts $$xlinknames.wkScript --attrs $$PWD/svg/xlinkattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
    578 xlinknames.input = XLINK_NAMES
    579 addExtraCompiler(xlinknames)
    580 
    581 # GENERATOR 6-A:
    582 cssprops.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
    583 cssprops.input = WALDOCSSPROPS
    584 cssprops.wkScript = $$PWD/css/makeprop.pl
    585 cssprops.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $${DASHBOARDSUPPORTCSSPROPERTIES} $${EXTRACSSPROPERTIES} > $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.in && cd $$WC_GENERATED_SOURCES_DIR && perl $$cssprops.wkScript && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
    586 cssprops.depends = ${QMAKE_FILE_NAME} $${DASHBOARDSUPPORTCSSPROPERTIES} $${EXTRACSSPROPERTIES}
    587 addExtraCompiler(cssprops)
    588 
    589 # GENERATOR 6-B:
    590 cssvalues.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.c
    591 cssvalues.input = WALDOCSSVALUES
    592 cssvalues.wkScript = $$PWD/css/makevalues.pl
    593 cssvalues.commands = perl -ne \"print lc\" ${QMAKE_FILE_NAME} $$EXTRACSSVALUES > $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.in && cd $$WC_GENERATED_SOURCES_DIR && perl $$cssvalues.wkScript && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
    594 cssvalues.depends = ${QMAKE_FILE_NAME} $${EXTRACSSVALUES}
    595 cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.h
    596 addExtraCompiler(cssvalues)
    597 
    598 # GENERATOR 1: IDL compiler
    599 idl.output = $${WC_GENERATED_SOURCES_DIR}/JS${QMAKE_FILE_BASE}.cpp
    600 idl.input = IDL_BINDINGS
    601 idl.wkScript = $$PWD/bindings/scripts/generate-bindings.pl
    602 idl.commands = perl -I$$PWD/bindings/scripts $$idl.wkScript --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --generator JS --include $$PWD/dom --include $$PWD/html --include $$PWD/xml --include $$PWD/svg --outputDir $$WC_GENERATED_SOURCES_DIR --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
    603 idl.depends = $$PWD/bindings/scripts/CodeGenerator.pm \
    604               $$PWD/bindings/scripts/CodeGeneratorJS.pm \
    605               $$PWD/bindings/scripts/IDLParser.pm \
    606               $$PWD/bindings/scripts/IDLStructure.pm \
    607               $$PWD/bindings/scripts/InFilesParser.pm
    608 addExtraCompiler(idl)
    609 
    610 # GENERATOR 3: tokenizer (flex)
    611 tokenizer.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
    612 tokenizer.input = TOKENIZER
    613 tokenizer.wkScript = $$PWD/css/maketokenizer
    614 tokenizer.commands = flex -t < ${QMAKE_FILE_NAME} | perl $$tokenizer.wkScript > ${QMAKE_FILE_OUT}
    615 addExtraCompiler(tokenizer)
    616 
    617 # GENERATOR 4: CSS grammar
    618 cssbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
    619 cssbison.input = CSSBISON
    620 cssbison.wkScript = $$PWD/css/makegrammar.pl
    621 cssbison.commands = perl $$cssbison.wkScript ${QMAKE_FILE_NAME} $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}
    622 cssbison.depends = ${QMAKE_FILE_NAME}
    623 addExtraCompiler(cssbison)
    624 
    625 # GENERATOR 5-A:
    626 htmlnames.output = $${WC_GENERATED_SOURCES_DIR}/HTMLNames.cpp
    627 htmlnames.input = HTML_NAMES
    628 htmlnames.wkScript = $$PWD/dom/make_names.pl
    629 htmlnames.commands = perl -I$$PWD/bindings/scripts $$htmlnames.wkScript --tags $$PWD/html/HTMLTagNames.in --attrs $$PWD/html/HTMLAttributeNames.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\"  --factory --wrapperFactory --outputDir $$WC_GENERATED_SOURCES_DIR
    630 htmlnames.depends = $$PWD/html/HTMLAttributeNames.in
    631 htmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/HTMLElementFactory.cpp $${WC_GENERATED_SOURCES_DIR}/JSHTMLElementWrapperFactory.cpp
    632 addExtraCompiler(htmlnames)
    633 
    634 # GENERATOR 5-B:
    635 xmlnsnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNSNames.cpp
    636 xmlnsnames.input = XMLNS_NAMES
    637 xmlnsnames.wkScript = $$PWD/dom/make_names.pl
    638 xmlnsnames.commands = perl -I$$PWD/bindings/scripts $$xmlnsnames.wkScript --attrs $$PWD/xml/xmlnsattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
    639 addExtraCompiler(xmlnsnames)
    640 
    641 # GENERATOR 5-C:
    642 xmlnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNames.cpp
    643 xmlnames.input = XML_NAMES
    644 xmlnames.wkScript = $$PWD/dom/make_names.pl
    645 xmlnames.commands = perl -I$$PWD/bindings/scripts $$xmlnames.wkScript --attrs $$PWD/xml/xmlattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
    646 addExtraCompiler(xmlnames)
    647 
    648 # GENERATOR 8-A:
    649 entities.output = $${WC_GENERATED_SOURCES_DIR}/HTMLEntityNames.c
    650 entities.input = ENTITIES_GPERF
    651 entities.commands = gperf -a -L ANSI-C -C -G -c -o -t --includes --key-positions="*" -N findEntity -D -s 2 < $$PWD/html/HTMLEntityNames.gperf > $${WC_GENERATED_SOURCES_DIR}/HTMLEntityNames.c
    652 entities.clean = ${QMAKE_FILE_OUT}
    653 addExtraCompiler(entities)
    654 
    655 # GENERATOR 8-B:
    656 doctypestrings.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
    657 doctypestrings.input = DOCTYPESTRINGS
    658 doctypestrings.commands = gperf -CEot -L ANSI-C --includes --key-positions="*" -N findDoctypeEntry -F ,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards < ${QMAKE_FILE_NAME} >> ${QMAKE_FILE_OUT}
    659 doctypestrings.clean = ${QMAKE_FILE_OUT}
    660 addExtraCompiler(doctypestrings)
    661 
    662 # GENERATOR 8-C:
    663 colordata.output = $${WC_GENERATED_SOURCES_DIR}/ColorData.c
    664 colordata.input = COLORDAT_GPERF
    665 colordata.commands = gperf -CDEot -L ANSI-C --includes --key-positions="*" -N findColor -D -s 2 < ${QMAKE_FILE_NAME} >> ${QMAKE_FILE_OUT}
    666 addExtraCompiler(colordata)
    667 
    668 # GENERATOR 9:
    669 stylesheets.wkScript = $$PWD/css/make-css-file-arrays.pl
    670 stylesheets.output = $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp
    671 stylesheets.input = stylesheets.wkScript
    672 stylesheets.commands = perl $$stylesheets.wkScript --preprocessor \"$${QMAKE_MOC} -E\" $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h ${QMAKE_FILE_OUT} $$STYLESHEETS_EMBED
    673 stylesheets.depends = $$STYLESHEETS_EMBED
    674 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h
    675 addExtraCompiler(stylesheets, $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h)
    676 
    677 # GENERATOR 10: XPATH grammar
    678 xpathbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
    679 xpathbison.input = XPATHBISON
    680 xpathbison.commands = bison -d -p xpathyy ${QMAKE_FILE_NAME} -o $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.tab.c && $(MOVE) $${WC_GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c $${WC_GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp && $(MOVE) $${WC_GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.h $${WC_GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.h
    681 xpathbison.depends = ${QMAKE_FILE_NAME}
    682 addExtraCompiler(xpathbison)
    683 
    684 # GENERATOR 11: WebKit Version
    685 # The appropriate Apple-maintained Version.xcconfig file for WebKit version information is in WebKit/mac/Configurations/.
    686 webkitversion.wkScript = $$PWD/../WebKit/scripts/generate-webkitversion.pl
    687 webkitversion.output = $${WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
    688 webkitversion.input = webkitversion.wkScript
    689 webkitversion.commands = perl $$webkitversion.wkScript --config $$PWD/../WebKit/mac/Configurations/Version.xcconfig --outputDir $${WC_GENERATED_SOURCES_DIR}/
    690 webkitversion.clean = ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
    691 webkitversion.wkAddOutputToSources = false
    692 addExtraCompiler(webkitversion)
    693 
    694