2011-04-11 Anna Cavender <annacc@chromium.org>
[WebKit-https.git] / Source / WebCore / CodeGenerators.pri
1 # Derived source generators
2
3 include(../common.pri)
4 include(features.pri)
5
6 CONFIG(standalone_package) {
7     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = $$PWD/generated
8 } else {
9     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = generated
10 }
11
12 ## Derived source generators
13 MATHML_NAMES = $$PWD/mathml/mathtags.in
14
15 WML_NAMES = $$PWD/wml/WMLTagNames.in
16
17 SVG_NAMES = $$PWD/svg/svgtags.in
18
19 XLINK_NAMES = $$PWD/svg/xlinkattrs.in
20
21 TOKENIZER = $$PWD/css/tokenizer.flex
22
23 DOCTYPESTRINGS_GPERF = $$PWD/html/DocTypeStrings.gperf
24
25 CSSBISON = $$PWD/css/CSSGrammar.y
26
27 HTML_NAMES = $$PWD/html/HTMLTagNames.in
28
29 XML_NAMES = $$PWD/xml/xmlattrs.in
30
31 XMLNS_NAMES = $$PWD/xml/xmlnsattrs.in
32
33 HTML_ENTITIES = $$PWD/html/parser/HTMLEntityNames.in
34
35 COLORDATA_GPERF = $$PWD/platform/ColorData.gperf
36
37 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
38
39 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
40
41 DASHBOARDSUPPORTCSSPROPERTIES = $$PWD/css/DashboardSupportCSSPropertyNames.in
42
43 XPATHBISON = $$PWD/xml/XPathGrammar.y
44
45 contains(DEFINES, ENABLE_SVG=1) {
46     EXTRACSSPROPERTIES += $$PWD/css/SVGCSSPropertyNames.in
47     EXTRACSSVALUES += $$PWD/css/SVGCSSValueKeywords.in
48 }
49
50 contains(DEFINES, ENABLE_WCSS=1) {
51     EXTRACSSPROPERTIES += $$PWD/css/WCSSPropertyNames.in
52     EXTRACSSVALUES += $$PWD/css/WCSSValueKeywords.in
53 }
54
55 STYLESHEETS_EMBED = \
56     $$PWD/css/html.css \
57     $$PWD/css/quirks.css \
58     $$PWD/css/mathml.css \
59     $$PWD/css/svg.css \
60     $$PWD/css/view-source.css \
61     $$PWD/css/wml.css \
62     $$PWD/css/mediaControls.css \
63     $$PWD/css/mediaControlsQt.css \
64     $$PWD/css/mediaControlsQtFullscreen.css \
65     $$PWD/css/themeQtNoListboxes.css
66
67 v8 {
68     IDL_BINDINGS += \
69         html/canvas/CanvasPixelArray.idl \
70         storage/IDBVersionChangeEvent.idl \
71         storage/IDBVersionChangeRequest.idl
72 }
73
74 IDL_BINDINGS += \
75     css/Counter.idl \
76     css/CSSCharsetRule.idl \
77     css/CSSFontFaceRule.idl \
78     css/CSSImportRule.idl \
79     css/CSSMediaRule.idl \
80     css/CSSPageRule.idl \
81     css/CSSPrimitiveValue.idl \
82     css/CSSRule.idl \
83     css/CSSRuleList.idl \
84     css/CSSStyleDeclaration.idl \
85     css/CSSStyleRule.idl \
86     css/CSSStyleSheet.idl \
87     css/CSSValue.idl \
88     css/CSSValueList.idl \
89     css/MediaList.idl \
90     css/MediaQueryList.idl \
91     css/Rect.idl \
92     css/RGBColor.idl \
93     css/StyleMedia.idl \
94     css/StyleSheet.idl \
95     css/StyleSheetList.idl \
96     css/WebKitCSSKeyframeRule.idl \
97     css/WebKitCSSKeyframesRule.idl \
98     css/WebKitCSSMatrix.idl \
99     css/WebKitCSSTransformValue.idl \
100     dom/Attr.idl \
101     dom/BeforeLoadEvent.idl \
102     dom/BeforeProcessEvent.idl \
103     dom/CharacterData.idl \
104     dom/ClientRect.idl \
105     dom/ClientRectList.idl \
106     dom/Clipboard.idl \
107     dom/CDATASection.idl \
108     dom/Comment.idl \
109     dom/CompositionEvent.idl \
110     dom/CustomEvent.idl \
111     dom/DataTransferItem.idl \
112     dom/DataTransferItems.idl \
113     dom/DeviceMotionEvent.idl \
114     dom/DeviceOrientationEvent.idl \
115     dom/DocumentFragment.idl \
116     dom/Document.idl \
117     dom/DocumentType.idl \
118     dom/DOMCoreException.idl \
119     dom/DOMImplementation.idl \
120     dom/DOMStringList.idl \
121     dom/DOMStringMap.idl \
122     dom/Element.idl \
123     dom/Entity.idl \
124     dom/EntityReference.idl \
125     dom/ErrorEvent.idl \
126     dom/Event.idl \
127     dom/EventException.idl \
128 #    dom/EventListener.idl \
129 #    dom/EventTarget.idl \
130     dom/HashChangeEvent.idl \
131     dom/KeyboardEvent.idl \
132     dom/MouseEvent.idl \
133     dom/MessageChannel.idl \
134     dom/MessageEvent.idl \
135     dom/MessagePort.idl \
136     dom/MutationEvent.idl \
137     dom/NamedNodeMap.idl \
138     dom/Node.idl \
139     dom/NodeFilter.idl \
140     dom/NodeIterator.idl \
141     dom/NodeList.idl \
142     dom/Notation.idl \
143     dom/OverflowEvent.idl \
144     dom/PageTransitionEvent.idl \
145     dom/PopStateEvent.idl \
146     dom/ProcessingInstruction.idl \
147     dom/ProgressEvent.idl \
148     dom/RangeException.idl \
149     dom/Range.idl \
150     dom/StringCallback.idl \
151     dom/Text.idl \
152     dom/TextEvent.idl \
153     dom/Touch.idl \
154     dom/TouchEvent.idl \
155     dom/TouchList.idl \
156     dom/TreeWalker.idl \
157     dom/UIEvent.idl \
158     dom/WebKitAnimationEvent.idl \
159     dom/WebKitTransitionEvent.idl \
160     dom/WheelEvent.idl \
161     fileapi/Blob.idl \
162     fileapi/BlobBuilder.idl \
163     fileapi/DirectoryEntry.idl \
164     fileapi/DirectoryEntrySync.idl \
165     fileapi/DirectoryReader.idl \
166     fileapi/DirectoryReaderSync.idl \
167     fileapi/DOMFileSystem.idl \
168     fileapi/DOMFileSystemSync.idl \
169     fileapi/EntriesCallback.idl \
170     fileapi/Entry.idl \
171     fileapi/EntryArray.idl \
172     fileapi/EntryArraySync.idl \
173     fileapi/EntryCallback.idl \
174     fileapi/EntrySync.idl \
175     fileapi/ErrorCallback.idl \
176     fileapi/File.idl \
177     fileapi/FileCallback.idl \
178     fileapi/FileEntry.idl \
179     fileapi/FileEntrySync.idl \
180     fileapi/FileError.idl \
181     fileapi/FileException.idl \
182     fileapi/FileList.idl \
183     fileapi/FileReader.idl \
184     fileapi/FileReaderSync.idl \
185     fileapi/FileSystemCallback.idl \
186     fileapi/FileWriter.idl \
187     fileapi/FileWriterCallback.idl \
188     fileapi/Flags.idl \
189     fileapi/Metadata.idl \
190     fileapi/MetadataCallback.idl \
191     html/canvas/ArrayBufferView.idl \
192     html/canvas/ArrayBuffer.idl \
193     html/canvas/DataView.idl \
194     html/canvas/Int8Array.idl \
195     html/canvas/Float32Array.idl \
196     html/canvas/CanvasGradient.idl \
197     html/canvas/Int32Array.idl \
198     html/canvas/CanvasPattern.idl \
199     html/canvas/CanvasRenderingContext.idl \
200     html/canvas/CanvasRenderingContext2D.idl \
201     html/canvas/OESStandardDerivatives.idl \
202     html/canvas/OESTextureFloat.idl \
203     html/canvas/OESVertexArrayObject.idl \
204     html/canvas/WebGLActiveInfo.idl \
205     html/canvas/WebGLBuffer.idl \
206     html/canvas/WebGLContextAttributes.idl \
207     html/canvas/WebGLFramebuffer.idl \
208     html/canvas/WebGLProgram.idl \
209     html/canvas/WebGLRenderbuffer.idl \
210     html/canvas/WebGLRenderingContext.idl \
211     html/canvas/WebGLShader.idl \
212     html/canvas/Int16Array.idl \
213     html/canvas/WebGLTexture.idl \
214     html/canvas/WebGLUniformLocation.idl \
215     html/canvas/WebGLVertexArrayObjectOES.idl \
216     html/canvas/WebKitLoseContext.idl \
217     html/canvas/Uint8Array.idl \
218     html/canvas/Uint32Array.idl \
219     html/canvas/Uint16Array.idl \
220     html/DataGridColumn.idl \
221     html/DataGridColumnList.idl \
222     html/DOMFormData.idl \
223     html/DOMSettableTokenList.idl \
224     html/DOMTokenList.idl \
225     html/DOMURL.idl \
226     html/HTMLAllCollection.idl \
227     html/HTMLAudioElement.idl \
228     html/HTMLAnchorElement.idl \
229     html/HTMLAppletElement.idl \
230     html/HTMLAreaElement.idl \
231     html/HTMLBaseElement.idl \
232     html/HTMLBaseFontElement.idl \
233     html/HTMLBlockquoteElement.idl \
234     html/HTMLBodyElement.idl \
235     html/HTMLBRElement.idl \
236     html/HTMLButtonElement.idl \
237     html/HTMLCanvasElement.idl \
238     html/HTMLCollection.idl \
239     html/HTMLDataGridElement.idl \
240     html/HTMLDataGridCellElement.idl \
241     html/HTMLDataGridColElement.idl \
242     html/HTMLDataGridRowElement.idl \
243     html/HTMLDataListElement.idl \
244     html/HTMLDetailsElement.idl \
245     html/HTMLDirectoryElement.idl \
246     html/HTMLDivElement.idl \
247     html/HTMLDListElement.idl \
248     html/HTMLDocument.idl \
249     html/HTMLElement.idl \
250     html/HTMLEmbedElement.idl \
251     html/HTMLFieldSetElement.idl \
252     html/HTMLFontElement.idl \
253     html/HTMLFormElement.idl \
254     html/HTMLFrameElement.idl \
255     html/HTMLFrameSetElement.idl \
256     html/HTMLHeadElement.idl \
257     html/HTMLHeadingElement.idl \
258     html/HTMLHRElement.idl \
259     html/HTMLHtmlElement.idl \
260     html/HTMLIFrameElement.idl \
261     html/HTMLImageElement.idl \
262     html/HTMLInputElement.idl \
263     html/HTMLIsIndexElement.idl \
264     html/HTMLKeygenElement.idl \
265     html/HTMLLabelElement.idl \
266     html/HTMLLegendElement.idl \
267     html/HTMLLIElement.idl \
268     html/HTMLLinkElement.idl \
269     html/HTMLMapElement.idl \
270     html/HTMLMarqueeElement.idl \
271     html/HTMLMediaElement.idl \
272     html/HTMLMenuElement.idl \
273     html/HTMLMetaElement.idl \
274     html/HTMLMeterElement.idl \
275     html/HTMLModElement.idl \
276     html/HTMLObjectElement.idl \
277     html/HTMLOListElement.idl \
278     html/HTMLOptGroupElement.idl \
279     html/HTMLOptionElement.idl \
280     html/HTMLOptionsCollection.idl \
281     html/HTMLOutputElement.idl \
282     html/HTMLParagraphElement.idl \
283     html/HTMLParamElement.idl \
284     html/HTMLPreElement.idl \
285     html/HTMLProgressElement.idl \
286     html/HTMLQuoteElement.idl \
287     html/HTMLScriptElement.idl \
288     html/HTMLSelectElement.idl \
289     html/HTMLSourceElement.idl \
290     html/HTMLStyleElement.idl \
291     html/HTMLTableCaptionElement.idl \
292     html/HTMLTableCellElement.idl \
293     html/HTMLTableColElement.idl \
294     html/HTMLTableElement.idl \
295     html/HTMLTableRowElement.idl \
296     html/HTMLTableSectionElement.idl \
297     html/HTMLTextAreaElement.idl \
298     html/HTMLTitleElement.idl \
299     html/HTMLTrackElement.idl \
300     html/HTMLUListElement.idl \
301     html/HTMLVideoElement.idl \
302     html/ImageData.idl \
303     html/MediaError.idl \
304     html/TextMetrics.idl \
305     html/TimeRanges.idl \
306     html/ValidityState.idl \
307     html/VoidCallback.idl \
308     inspector/InjectedScriptHost.idl \
309     inspector/InspectorFrontendHost.idl \
310     inspector/JavaScriptCallFrame.idl \
311     inspector/ScriptProfile.idl \
312     inspector/ScriptProfileNode.idl \
313     loader/appcache/DOMApplicationCache.idl \
314     notifications/Notification.idl \
315     notifications/NotificationCenter.idl \
316     page/BarInfo.idl \
317     page/Console.idl \
318     page/Coordinates.idl \
319     page/Crypto.idl \
320     page/DOMSelection.idl \
321     page/DOMWindow.idl \
322     page/EventSource.idl \
323     page/Geolocation.idl \
324     page/Geoposition.idl \
325     page/History.idl \
326     page/Location.idl \
327     page/MemoryInfo.idl \
328     page/Navigator.idl \
329     page/NavigatorUserMediaError.idl \
330     page/NavigatorUserMediaErrorCallback.idl \
331     page/NavigatorUserMediaSuccessCallback.idl \
332     page/Performance.idl \
333     page/PerformanceNavigation.idl \
334     page/PerformanceTiming.idl \
335     page/PositionError.idl \
336     page/Screen.idl \
337     page/SpeechInputEvent.idl \
338     page/SpeechInputResult.idl \
339     page/SpeechInputResultList.idl \
340     page/WebKitAnimation.idl \
341     page/WebKitAnimationList.idl \
342     page/WebKitPoint.idl \
343     page/WorkerNavigator.idl \
344     plugins/DOMPlugin.idl \
345     plugins/DOMMimeType.idl \
346     plugins/DOMPluginArray.idl \
347     plugins/DOMMimeTypeArray.idl \
348     storage/Database.idl \
349     storage/DatabaseCallback.idl \
350     storage/DatabaseSync.idl \
351     storage/IDBAny.idl \
352     storage/IDBCursor.idl \
353     storage/IDBDatabaseError.idl \
354     storage/IDBDatabaseException.idl \
355     storage/IDBDatabase.idl \
356     storage/IDBFactory.idl \
357     storage/IDBIndex.idl \
358     storage/IDBKey.idl \
359     storage/IDBKeyRange.idl \
360     storage/IDBObjectStore.idl \
361     storage/IDBRequest.idl \
362     storage/IDBTransaction.idl \
363     storage/Storage.idl \
364     storage/StorageEvent.idl \
365     storage/SQLError.idl \
366     storage/SQLException.idl \
367     storage/SQLResultSet.idl \
368     storage/SQLResultSetRowList.idl \
369     storage/SQLStatementCallback.idl \
370     storage/SQLStatementErrorCallback.idl \
371     storage/SQLTransaction.idl \
372     storage/SQLTransactionCallback.idl \
373     storage/SQLTransactionErrorCallback.idl \
374     storage/SQLTransactionSync.idl \
375     storage/SQLTransactionSyncCallback.idl \
376     svg/SVGZoomEvent.idl \
377     svg/SVGAElement.idl \
378     svg/SVGAltGlyphElement.idl \
379     svg/SVGAngle.idl \
380     svg/SVGAnimateColorElement.idl \
381     svg/SVGAnimatedAngle.idl \
382     svg/SVGAnimatedBoolean.idl \
383     svg/SVGAnimatedEnumeration.idl \
384     svg/SVGAnimatedInteger.idl \
385     svg/SVGAnimatedLength.idl \
386     svg/SVGAnimatedLengthList.idl \
387     svg/SVGAnimatedNumber.idl \
388     svg/SVGAnimatedNumberList.idl \
389     svg/SVGAnimatedPreserveAspectRatio.idl \
390     svg/SVGAnimatedRect.idl \
391     svg/SVGAnimatedString.idl \
392     svg/SVGAnimatedTransformList.idl \
393     svg/SVGAnimateElement.idl \
394     svg/SVGAnimateTransformElement.idl \
395     svg/SVGAnimationElement.idl \
396     svg/SVGCircleElement.idl \
397     svg/SVGClipPathElement.idl \
398     svg/SVGColor.idl \
399     svg/SVGComponentTransferFunctionElement.idl \
400     svg/SVGCursorElement.idl \
401     svg/SVGDefsElement.idl \
402     svg/SVGDescElement.idl \
403     svg/SVGDocument.idl \
404     svg/SVGElement.idl \
405     svg/SVGElementInstance.idl \
406     svg/SVGElementInstanceList.idl \
407     svg/SVGEllipseElement.idl \
408     svg/SVGException.idl \
409     svg/SVGFEBlendElement.idl \
410     svg/SVGFEColorMatrixElement.idl \
411     svg/SVGFEComponentTransferElement.idl \
412     svg/SVGFECompositeElement.idl \
413     svg/SVGFEConvolveMatrixElement.idl \
414     svg/SVGFEDiffuseLightingElement.idl \
415     svg/SVGFEDisplacementMapElement.idl \
416     svg/SVGFEDistantLightElement.idl \
417     svg/SVGFEFloodElement.idl \
418     svg/SVGFEFuncAElement.idl \
419     svg/SVGFEFuncBElement.idl \
420     svg/SVGFEFuncGElement.idl \
421     svg/SVGFEFuncRElement.idl \
422     svg/SVGFEGaussianBlurElement.idl \
423     svg/SVGFEImageElement.idl \
424     svg/SVGFEMergeElement.idl \
425     svg/SVGFEMergeNodeElement.idl \
426     svg/SVGFEMorphologyElement.idl \
427     svg/SVGFEOffsetElement.idl \
428     svg/SVGFEPointLightElement.idl \
429     svg/SVGFESpecularLightingElement.idl \
430     svg/SVGFESpotLightElement.idl \
431     svg/SVGFETileElement.idl \
432     svg/SVGFETurbulenceElement.idl \
433     svg/SVGFilterElement.idl \
434     svg/SVGFontElement.idl \
435     svg/SVGFontFaceElement.idl \
436     svg/SVGFontFaceFormatElement.idl \
437     svg/SVGFontFaceNameElement.idl \
438     svg/SVGFontFaceSrcElement.idl \
439     svg/SVGFontFaceUriElement.idl \
440     svg/SVGForeignObjectElement.idl \
441     svg/SVGGElement.idl \
442     svg/SVGGlyphElement.idl \
443     svg/SVGGradientElement.idl \
444     svg/SVGHKernElement.idl \
445     svg/SVGImageElement.idl \
446     svg/SVGLength.idl \
447     svg/SVGLengthList.idl \
448     svg/SVGLinearGradientElement.idl \
449     svg/SVGLineElement.idl \
450     svg/SVGMarkerElement.idl \
451     svg/SVGMaskElement.idl \
452     svg/SVGMatrix.idl \
453     svg/SVGMetadataElement.idl \
454     svg/SVGMissingGlyphElement.idl \
455     svg/SVGNumber.idl \
456     svg/SVGNumberList.idl \
457     svg/SVGPaint.idl \
458     svg/SVGPathElement.idl \
459     svg/SVGPathSegArcAbs.idl \
460     svg/SVGPathSegArcRel.idl \
461     svg/SVGPathSegClosePath.idl \
462     svg/SVGPathSegCurvetoCubicAbs.idl \
463     svg/SVGPathSegCurvetoCubicRel.idl \
464     svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
465     svg/SVGPathSegCurvetoCubicSmoothRel.idl \
466     svg/SVGPathSegCurvetoQuadraticAbs.idl \
467     svg/SVGPathSegCurvetoQuadraticRel.idl \
468     svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
469     svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
470     svg/SVGPathSeg.idl \
471     svg/SVGPathSegLinetoAbs.idl \
472     svg/SVGPathSegLinetoHorizontalAbs.idl \
473     svg/SVGPathSegLinetoHorizontalRel.idl \
474     svg/SVGPathSegLinetoRel.idl \
475     svg/SVGPathSegLinetoVerticalAbs.idl \
476     svg/SVGPathSegLinetoVerticalRel.idl \
477     svg/SVGPathSegList.idl \
478     svg/SVGPathSegMovetoAbs.idl \
479     svg/SVGPathSegMovetoRel.idl \
480     svg/SVGPatternElement.idl \
481     svg/SVGPoint.idl \
482     svg/SVGPointList.idl \
483     svg/SVGPolygonElement.idl \
484     svg/SVGPolylineElement.idl \
485     svg/SVGPreserveAspectRatio.idl \
486     svg/SVGRadialGradientElement.idl \
487     svg/SVGRectElement.idl \
488     svg/SVGRect.idl \
489     svg/SVGRenderingIntent.idl \
490     svg/SVGScriptElement.idl \
491     svg/SVGSetElement.idl \
492     svg/SVGStopElement.idl \
493     svg/SVGStringList.idl \
494     svg/SVGStyleElement.idl \
495     svg/SVGSVGElement.idl \
496     svg/SVGSwitchElement.idl \
497     svg/SVGSymbolElement.idl \
498     svg/SVGTextContentElement.idl \
499     svg/SVGTextElement.idl \
500     svg/SVGTextPathElement.idl \
501     svg/SVGTextPositioningElement.idl \
502     svg/SVGTitleElement.idl \
503     svg/SVGTransform.idl \
504     svg/SVGTransformList.idl \
505     svg/SVGTRefElement.idl \
506     svg/SVGTSpanElement.idl \
507     svg/SVGUnitTypes.idl \
508     svg/SVGUseElement.idl \
509     svg/SVGViewElement.idl \
510     svg/SVGVKernElement.idl \
511     webaudio/AudioBuffer.idl \
512     webaudio/AudioBufferSourceNode.idl \
513     webaudio/AudioChannelMerger.idl \
514     webaudio/AudioChannelSplitter.idl \
515     webaudio/AudioContext.idl \
516     webaudio/AudioDestinationNode.idl \
517     webaudio/AudioGain.idl \
518     webaudio/AudioGainNode.idl \
519     webaudio/AudioListener.idl \
520     webaudio/AudioNode.idl \
521     webaudio/AudioPannerNode.idl \
522     webaudio/AudioParam.idl \
523     webaudio/AudioProcessingEvent.idl \
524     webaudio/AudioSourceNode.idl \
525     webaudio/ConvolverNode.idl \
526     webaudio/DelayNode.idl \
527     webaudio/HighPass2FilterNode.idl \
528     webaudio/JavaScriptAudioNode.idl \
529     webaudio/LowPass2FilterNode.idl \
530     webaudio/RealtimeAnalyserNode.idl \
531     websockets/WebSocket.idl \
532     workers/AbstractWorker.idl \
533     workers/DedicatedWorkerContext.idl \
534     workers/SharedWorker.idl \
535     workers/SharedWorkerContext.idl \
536     workers/Worker.idl \
537     workers/WorkerContext.idl \
538     workers/WorkerLocation.idl \
539     xml/DOMParser.idl \
540     xml/XMLHttpRequest.idl \
541     xml/XMLHttpRequestException.idl \
542     xml/XMLHttpRequestProgressEvent.idl \
543     xml/XMLHttpRequestUpload.idl \
544     xml/XMLSerializer.idl \
545     xml/XPathNSResolver.idl \
546     xml/XPathException.idl \
547     xml/XPathExpression.idl \
548     xml/XPathResult.idl \
549     xml/XPathEvaluator.idl \
550     xml/XSLTProcessor.idl
551
552
553 INSPECTOR_JSON = inspector/Inspector.json
554 INSPECTOR_IDL = $${WC_GENERATED_SOURCES_DIR}/Inspector.idl
555 INSPECTOR_BACKEND_STUB_QRC = inspector/front-end/InspectorBackendStub.qrc
556 INJECTED_SCRIPT_SOURCE = $$PWD/inspector/InjectedScriptSource.js
557
558 v8: wrapperFactoryArg = --wrapperFactoryV8
559 else: wrapperFactoryArg = --wrapperFactory
560
561 mathmlnames.output = $${WC_GENERATED_SOURCES_DIR}/MathMLNames.cpp
562 mathmlnames.input = MATHML_NAMES
563 mathmlnames.wkScript = $$PWD/dom/make_names.pl
564 mathmlnames.commands = perl -I$$PWD/bindings/scripts $$mathmlnames.wkScript --tags $$PWD/mathml/mathtags.in --attrs $$PWD/mathml/mathattrs.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory $$wrapperFactoryArg --outputDir $$WC_GENERATED_SOURCES_DIR
565 mathmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/MathMLElementFactory.cpp 
566 addExtraCompiler(mathmlnames)
567
568 contains(DEFINES, ENABLE_WML=1) {
569     wmlnames.output = $${WC_GENERATED_SOURCES_DIR}/WMLNames.cpp
570     wmlnames.input = WML_NAMES
571     wmlnames.wkScript = $$PWD/dom/make_names.pl
572     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 $$wrapperFactoryArg --outputDir $$WC_GENERATED_SOURCES_DIR
573     wmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/WMLElementFactory.cpp
574     addExtraCompiler(wmlnames)
575 }
576
577 # GENERATOR 5-C:
578 svgnames.output = $${WC_GENERATED_SOURCES_DIR}/SVGNames.cpp
579 svgnames.input = SVG_NAMES
580 svgnames.depends = $$PWD/svg/svgattrs.in
581 svgnames.wkScript = $$PWD/dom/make_names.pl
582 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 $$wrapperFactoryArg --outputDir $$WC_GENERATED_SOURCES_DIR
583 svgnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/SVGElementFactory.cpp
584 v8 {
585     svgnames.wkExtraSources += $${WC_GENERATED_SOURCES_DIR}/V8SVGElementWrapperFactory.cpp
586 } else {
587     svgnames.wkExtraSources += $${WC_GENERATED_SOURCES_DIR}/JSSVGElementWrapperFactory.cpp
588 }
589 addExtraCompiler(svgnames)
590
591 # GENERATOR 5-D:
592 xlinknames.output = $${WC_GENERATED_SOURCES_DIR}/XLinkNames.cpp
593 xlinknames.wkScript = $$PWD/dom/make_names.pl
594 xlinknames.commands = perl -I$$PWD/bindings/scripts $$xlinknames.wkScript --attrs $$PWD/svg/xlinkattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
595 xlinknames.input = XLINK_NAMES
596 addExtraCompiler(xlinknames)
597
598 # GENERATOR 6-A:
599 cssprops.wkScript = $$PWD/css/makeprop.pl
600 cssprops.output = $${WC_GENERATED_SOURCES_DIR}/CSSPropertyNames.cpp
601 cssprops.input = WALDOCSSPROPS
602 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
603 cssprops.depends = ${QMAKE_FILE_NAME} $${DASHBOARDSUPPORTCSSPROPERTIES} $${EXTRACSSPROPERTIES} $$cssprops.wkScript
604 addExtraCompiler(cssprops)
605
606 # GENERATOR 6-B:
607 cssvalues.wkScript = $$PWD/css/makevalues.pl
608 cssvalues.output = $${WC_GENERATED_SOURCES_DIR}/CSSValueKeywords.cpp
609 cssvalues.input = WALDOCSSVALUES
610 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
611 cssvalues.depends = ${QMAKE_FILE_NAME} $${EXTRACSSVALUES} $$cssvalues.wkScript
612 cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.h
613 addExtraCompiler(cssvalues)
614
615 # GENERATOR 1: IDL compiler
616 idl.input = IDL_BINDINGS
617 idl.wkScript = $$PWD/bindings/scripts/generate-bindings.pl
618 v8: generator = V8
619 else: generator = JS
620 idl.commands = perl -I$$PWD/bindings/scripts $$idl.wkScript \
621                --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" \
622                --generator $$generator \
623                --include $$PWD/dom \
624                --include $$PWD/fileapi \
625                --include $$PWD/html \
626                --include $$PWD/xml \
627                --include $$PWD/svg \
628                --include $$PWD/storage \
629                --include $$PWD/css \
630                --include $$PWD/webaudio \
631                --include $$PWD/workers \
632                --outputDir $$WC_GENERATED_SOURCES_DIR \
633                --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
634 v8 {
635     idl.output = $${WC_GENERATED_SOURCES_DIR}/V8${QMAKE_FILE_BASE}.cpp
636     idl.depends = $$PWD/bindings/scripts/CodeGenerator.pm \
637                   $$PWD/bindings/scripts/CodeGeneratorV8.pm \
638                   $$PWD/bindings/scripts/IDLParser.pm \
639                   $$PWD/bindings/scripts/IDLStructure.pm \
640                   $$PWD/bindings/scripts/InFilesParser.pm
641 } else {
642     idl.output = $${WC_GENERATED_SOURCES_DIR}/JS${QMAKE_FILE_BASE}.cpp
643     idl.depends = $$PWD/bindings/scripts/CodeGenerator.pm \
644                   $$PWD/bindings/scripts/CodeGeneratorJS.pm \
645                   $$PWD/bindings/scripts/IDLParser.pm \
646                   $$PWD/bindings/scripts/IDLStructure.pm \
647                   $$PWD/bindings/scripts/InFilesParser.pm
648 }
649 addExtraCompiler(idl)
650
651 # GENERATOR 2: inspector idl compiler
652 inspectorJSON.output = $${WC_GENERATED_SOURCES_DIR}/Inspector.idl
653 inspectorJSON.input = INSPECTOR_JSON
654 inspectorJSON.wkScript = $$PWD/inspector/generate-inspector-idl
655 inspectorJSON.commands = python $$inspectorJSON.wkScript -o $${WC_GENERATED_SOURCES_DIR}/Inspector.idl $$PWD/inspector/Inspector.json
656 inspectorJSON.depends = $$PWD/inspector/generate-inspector-idl
657 inspectorJSON.wkAddOutputToSources = false
658 addExtraCompiler(inspectorJSON)
659
660 inspectorIDL.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}Frontend.cpp $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}BackendDispatcher.cpp
661 inspectorIDL.input = INSPECTOR_IDL
662 inspectorIDL.wkScript = $$PWD/bindings/scripts/generate-bindings.pl
663 inspectorIDL.commands = perl -I$$PWD/bindings/scripts -I$$PWD/inspector $$inspectorIDL.wkScript --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --generator Inspector --outputDir $$WC_GENERATED_SOURCES_DIR --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
664 inspectorIDL.depends = $$PWD/bindings/scripts/CodeGenerator.pm \
665               $$PWD/inspector/CodeGeneratorInspector.pm \
666               $$PWD/bindings/scripts/IDLParser.pm \
667               $$PWD/bindings/scripts/IDLStructure.pm \
668               $$PWD/bindings/scripts/InFilesParser.pm \
669               $$PWD/inspector/Inspector.json \
670               $$PWD/inspector/generate-inspector-idl
671 addExtraCompiler(inspectorIDL)
672
673 inspectorBackendStub.output = generated/InspectorBackendStub.qrc
674 inspectorBackendStub.input = INSPECTOR_BACKEND_STUB_QRC
675 inspectorBackendStub.tempNames = $$PWD/$$INSPECTOR_BACKEND_STUB_QRC $${WC_GENERATED_SOURCES_DIR}/InspectorBackendStub.qrc
676 inspectorBackendStub.commands = $$QMAKE_COPY $$replace(inspectorBackendStub.tempNames, "/", $$QMAKE_DIR_SEP)
677 inspectorBackendStub.wkAddOutputToSources = false
678 addExtraCompiler(inspectorBackendStub)
679
680 # GENERATOR 2-a: inspector injected script source compiler
681 injectedScriptSource.output = $${WC_GENERATED_SOURCES_DIR}/InjectedScriptSource.h
682 injectedScriptSource.input = INJECTED_SCRIPT_SOURCE
683 injectedScriptSource.commands = perl $$PWD/inspector/xxd.pl InjectedScriptSource_js $$PWD/inspector/InjectedScriptSource.js  $${WC_GENERATED_SOURCES_DIR}/InjectedScriptSource.h
684 injectedScriptSource.wkAddOutputToSources = false
685 addExtraCompiler(injectedScriptSource)
686
687 # GENERATOR 3: tokenizer (flex)
688 tokenizer.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
689 tokenizer.input = TOKENIZER
690 tokenizer.wkScript = $$PWD/css/maketokenizer
691 tokenizer.commands = flex -t < ${QMAKE_FILE_NAME} | perl $$tokenizer.wkScript > ${QMAKE_FILE_OUT}
692 # tokenizer.cpp is included into CSSParser.cpp
693 tokenizer.wkAddOutputToSources = false
694 addExtraCompiler(tokenizer)
695
696 # GENERATOR 4: CSS grammar
697 cssbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
698 cssbison.input = CSSBISON
699 cssbison.wkScript = $$PWD/css/makegrammar.pl
700 cssbison.commands = perl $$cssbison.wkScript ${QMAKE_FILE_NAME} $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}
701 cssbison.depends = ${QMAKE_FILE_NAME}
702 addExtraCompiler(cssbison)
703
704 # GENERATOR 5-A:
705 htmlnames.output = $${WC_GENERATED_SOURCES_DIR}/HTMLNames.cpp
706 htmlnames.input = HTML_NAMES
707 htmlnames.wkScript = $$PWD/dom/make_names.pl
708 htmlnames.depends = $$PWD/html/HTMLAttributeNames.in
709 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 $$wrapperFactoryArg --outputDir $$WC_GENERATED_SOURCES_DIR
710 htmlnames.wkExtraSources = $${WC_GENERATED_SOURCES_DIR}/HTMLElementFactory.cpp
711 v8 {
712     htmlnames.wkExtraSources += $${WC_GENERATED_SOURCES_DIR}/V8HTMLElementWrapperFactory.cpp
713 } else {
714     htmlnames.wkExtraSources += $${WC_GENERATED_SOURCES_DIR}/JSHTMLElementWrapperFactory.cpp
715 }
716 addExtraCompiler(htmlnames)
717
718 # GENERATOR 5-B:
719 xmlnsnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNSNames.cpp
720 xmlnsnames.input = XMLNS_NAMES
721 xmlnsnames.wkScript = $$PWD/dom/make_names.pl
722 xmlnsnames.commands = perl -I$$PWD/bindings/scripts $$xmlnsnames.wkScript --attrs $$PWD/xml/xmlnsattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
723 addExtraCompiler(xmlnsnames)
724
725 # GENERATOR 5-C:
726 xmlnames.output = $${WC_GENERATED_SOURCES_DIR}/XMLNames.cpp
727 xmlnames.input = XML_NAMES
728 xmlnames.wkScript = $$PWD/dom/make_names.pl
729 xmlnames.commands = perl -I$$PWD/bindings/scripts $$xmlnames.wkScript --attrs $$PWD/xml/xmlattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir $$WC_GENERATED_SOURCES_DIR
730 addExtraCompiler(xmlnames)
731
732 # GENERATOR 8-A:
733 entities.output = $${WC_GENERATED_SOURCES_DIR}/HTMLEntityTable.cpp
734 entities.input = HTML_ENTITIES
735 entities.wkScript = $$PWD/html/parser/create-html-entity-table
736 entities.commands = python $$entities.wkScript -o $${WC_GENERATED_SOURCES_DIR}/HTMLEntityTable.cpp $$HTML_ENTITIES
737 entities.clean = ${QMAKE_FILE_OUT}
738 entities.depends = $$PWD/html/parser/create-html-entity-table
739 addExtraCompiler(entities)
740
741 # GENERATOR 8-B:
742 doctypestrings.output = $${WC_GENERATED_SOURCES_DIR}/DocTypeStrings.cpp
743 doctypestrings.input = DOCTYPESTRINGS_GPERF
744 doctypestrings.wkScript = $$PWD/make-hash-tools.pl
745 doctypestrings.commands = perl $$doctypestrings.wkScript $${WC_GENERATED_SOURCES_DIR} $$DOCTYPESTRINGS_GPERF
746 doctypestrings.clean = ${QMAKE_FILE_OUT}
747 doctypestrings.depends = $$PWD/make-hash-tools.pl
748 addExtraCompiler(doctypestrings)
749
750 # GENERATOR 8-C:
751 colordata.output = $${WC_GENERATED_SOURCES_DIR}/ColorData.cpp
752 colordata.input = COLORDATA_GPERF
753 colordata.wkScript = $$PWD/make-hash-tools.pl
754 colordata.commands = perl $$colordata.wkScript $${WC_GENERATED_SOURCES_DIR} $$COLORDATA_GPERF
755 colordata.clean = ${QMAKE_FILE_OUT}
756 colordata.depends = $$PWD/make-hash-tools.pl
757 addExtraCompiler(colordata)
758
759 # GENERATOR 9:
760 stylesheets.wkScript = $$PWD/css/make-css-file-arrays.pl
761 stylesheets.output = $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp
762 stylesheets.input = stylesheets.wkScript
763 stylesheets.commands = perl $$stylesheets.wkScript $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h ${QMAKE_FILE_OUT} $$STYLESHEETS_EMBED
764 stylesheets.depends = $$STYLESHEETS_EMBED
765 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h
766 addExtraCompiler(stylesheets, $${WC_GENERATED_SOURCES_DIR}/UserAgentStyleSheets.h)
767
768 # GENERATOR 10: XPATH grammar
769 xpathbison.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}.cpp
770 xpathbison.input = XPATHBISON
771 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
772 xpathbison.depends = ${QMAKE_FILE_NAME}
773 addExtraCompiler(xpathbison)
774
775 # GENERATOR 11: WebKit Version
776 # The appropriate Apple-maintained Version.xcconfig file for WebKit version information is in Source/WebKit/mac/Configurations/.
777 webkitversion.wkScript = $$PWD/../WebKit/scripts/generate-webkitversion.pl
778 webkitversion.output = $${WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
779 webkitversion.input = webkitversion.wkScript
780 webkitversion.commands = perl $$webkitversion.wkScript --config $$PWD/../WebKit/mac/Configurations/Version.xcconfig --outputDir $${WC_GENERATED_SOURCES_DIR}/
781 webkitversion.clean = ${QMAKE_VAR_WC_GENERATED_SOURCES_DIR}/WebKitVersion.h
782 webkitversion.wkAddOutputToSources = false
783 addExtraCompiler(webkitversion)