Merge "[WK2] Revert patch / set a limit of layer count and atlas size." into 2.0_beta
[framework/web/webkit-efl.git] / Source / WebCore / DerivedSources.pri
1 # -------------------------------------------------------------------
2 # Derived sources for WebCore
3 #
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
6
7 # This file is both a top level target, and included from Target.pri,
8 # so that the resulting generated sources can be added to SOURCES.
9 # We only set the template if we're a top level target, so that we
10 # don't override what Target.pri has already set.
11 sanitizedFile = $$toSanitizedPath($$_FILE_)
12 equals(sanitizedFile, $$toSanitizedPath($$_PRO_FILE_)):TEMPLATE = derived
13
14 load(features)
15
16 mac {
17     # FIXME: This runs the perl script every time. Is there a way we can run it only when deps change?
18     fwheader_generator.commands = perl $${ROOT_WEBKIT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl $${ROOT_WEBKIT_DIR}/Source/WebCore $${ROOT_BUILD_DIR}/Source/include mac
19     fwheader_generator.depends = $${ROOT_WEBKIT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl
20     GENERATORS += fwheader_generator
21 }
22
23 MATHML_NAMES = $$PWD/mathml/mathtags.in
24
25 SVG_NAMES = $$PWD/svg/svgtags.in
26
27 XLINK_NAMES = $$PWD/svg/xlinkattrs.in
28
29 CSSBISON = $$PWD/css/CSSGrammar.y
30
31 contains(DEFINES, ENABLE_XSLT=1) {
32     XMLVIEWER_CSS = $$PWD/xml/XMLViewer.css
33     XMLVIEWER_JS = $$PWD/xml/XMLViewer.js
34 }
35
36 FONT_NAMES = $$PWD/css/WebKitFontFamilyNames.in
37
38 HTML_NAMES = $$PWD/html/HTMLTagNames.in
39
40 XML_NAMES = $$PWD/xml/xmlattrs.in
41
42 XMLNS_NAMES = $$PWD/xml/xmlnsattrs.in
43
44 HTML_ENTITIES = $$PWD/html/parser/HTMLEntityNames.in
45
46 EVENTS_NAMES = $$PWD/dom/EventNames.in
47
48 EVENT_TARGET_FACTORY = $$PWD/dom/EventTargetFactory.in
49
50 DOM_EXCEPTIONS = $$PWD/dom/DOMExceptions.in
51
52 COLORDATA_GPERF = $$PWD/platform/ColorData.gperf
53
54 WALDOCSSPROPS = $$PWD/css/CSSPropertyNames.in
55
56 WALDOCSSVALUES = $$PWD/css/CSSValueKeywords.in
57
58 INSPECTOR_JSON = $$PWD/inspector/Inspector.json
59
60 INSPECTOR_BACKEND_COMMANDS_QRC = $$PWD/inspector/front-end/InspectorBackendCommands.qrc
61
62 INJECTED_SCRIPT_SOURCE = $$PWD/inspector/InjectedScriptSource.js
63
64 DEBUGGER_SCRIPT_SOURCE = $$PWD/bindings/v8/DebuggerScript.js
65
66 ARRAY_BUFFER_VIEW_CUSTOM_SCRIPT_SOURCE = $$PWD/bindings/v8/custom/V8ArrayBufferViewCustomScript.js
67
68 XPATHBISON = $$PWD/xml/XPathGrammar.y
69
70 contains(DEFINES, ENABLE_SVG=1) {
71     EXTRACSSPROPERTIES += $$PWD/css/SVGCSSPropertyNames.in
72     EXTRACSSVALUES += $$PWD/css/SVGCSSValueKeywords.in
73 }
74
75 STYLESHEETS_EMBED = \
76     $$PWD/css/html.css \
77     $$PWD/css/quirks.css \
78     $$PWD/css/mathml.css \
79     $$PWD/css/svg.css \
80     $$PWD/css/view-source.css \
81     $$PWD/css/fullscreen.css \
82     $$PWD/css/mediaControls.css \
83     $$PWD/css/mediaControlsQt.css \
84     $$PWD/css/mediaControlsQtFullscreen.css \
85     $$PWD/css/themeQtNoListboxes.css \
86     $$PWD/css/mobileThemeQt.css
87
88 IDL_BINDINGS += \
89     $$PWD/Modules/filesystem/DOMFileSystem.idl \
90     $$PWD/Modules/filesystem/DOMFileSystemSync.idl \
91     $$PWD/Modules/filesystem/DOMWindowFileSystem.idl \
92     $$PWD/Modules/filesystem/DirectoryEntry.idl \
93     $$PWD/Modules/filesystem/DirectoryEntrySync.idl \
94     $$PWD/Modules/filesystem/DirectoryReader.idl \
95     $$PWD/Modules/filesystem/DirectoryReaderSync.idl \
96     $$PWD/Modules/filesystem/EntriesCallback.idl \
97     $$PWD/Modules/filesystem/Entry.idl \
98     $$PWD/Modules/filesystem/EntryArray.idl \
99     $$PWD/Modules/filesystem/EntryArraySync.idl \
100     $$PWD/Modules/filesystem/EntryCallback.idl \
101     $$PWD/Modules/filesystem/EntrySync.idl \
102     $$PWD/Modules/filesystem/ErrorCallback.idl \
103     $$PWD/Modules/filesystem/FileCallback.idl \
104     $$PWD/Modules/filesystem/FileEntry.idl \
105     $$PWD/Modules/filesystem/FileEntrySync.idl \
106     $$PWD/Modules/filesystem/FileSystemCallback.idl \
107     $$PWD/Modules/filesystem/FileWriter.idl \
108     $$PWD/Modules/filesystem/FileWriterCallback.idl \
109     $$PWD/Modules/filesystem/Metadata.idl \
110     $$PWD/Modules/filesystem/MetadataCallback.idl \
111     $$PWD/Modules/filesystem/WorkerContextFileSystem.idl \
112     $$PWD/Modules/geolocation/Geolocation.idl \
113     $$PWD/Modules/geolocation/Geoposition.idl \
114     $$PWD/Modules/geolocation/NavigatorGeolocation.idl \
115     $$PWD/Modules/geolocation/PositionCallback.idl \
116     $$PWD/Modules/geolocation/PositionError.idl \
117     $$PWD/Modules/geolocation/PositionErrorCallback.idl \
118     $$PWD/Modules/indexeddb/DOMWindowIndexedDatabase.idl \
119     $$PWD/Modules/indexeddb/IDBAny.idl \
120     $$PWD/Modules/indexeddb/IDBCursor.idl \
121     $$PWD/Modules/indexeddb/IDBDatabaseException.idl \
122     $$PWD/Modules/indexeddb/IDBDatabase.idl \
123     $$PWD/Modules/indexeddb/IDBFactory.idl \
124     $$PWD/Modules/indexeddb/IDBIndex.idl \
125     $$PWD/Modules/indexeddb/IDBKey.idl \
126     $$PWD/Modules/indexeddb/IDBKeyRange.idl \
127     $$PWD/Modules/indexeddb/IDBObjectStore.idl \
128     $$PWD/Modules/indexeddb/IDBRequest.idl \
129     $$PWD/Modules/indexeddb/IDBTransaction.idl \
130     $$PWD/Modules/indexeddb/WorkerContextIndexedDatabase.idl \
131     $$PWD/Modules/webaudio/AudioBuffer.idl \
132     $$PWD/Modules/webaudio/AudioBufferSourceNode.idl \
133     $$PWD/Modules/webaudio/AudioChannelMerger.idl \
134     $$PWD/Modules/webaudio/AudioChannelSplitter.idl \
135     $$PWD/Modules/webaudio/AudioContext.idl \
136     $$PWD/Modules/webaudio/AudioDestinationNode.idl \
137     $$PWD/Modules/webaudio/AudioGain.idl \
138     $$PWD/Modules/webaudio/AudioGainNode.idl \
139     $$PWD/Modules/webaudio/AudioListener.idl \
140     $$PWD/Modules/webaudio/AudioNode.idl \
141     $$PWD/Modules/webaudio/AudioPannerNode.idl \
142     $$PWD/Modules/webaudio/AudioParam.idl \
143     $$PWD/Modules/webaudio/AudioProcessingEvent.idl \
144     $$PWD/Modules/webaudio/AudioSourceNode.idl \
145     $$PWD/Modules/webaudio/ConvolverNode.idl \
146     $$PWD/Modules/webaudio/DelayNode.idl \
147     $$PWD/Modules/webaudio/DOMWindowWebAudio.idl \
148     $$PWD/Modules/webaudio/JavaScriptAudioNode.idl \
149     $$PWD/Modules/webaudio/RealtimeAnalyserNode.idl \
150     $$PWD/Modules/webdatabase/DOMWindowWebDatabase.idl \
151     $$PWD/Modules/webdatabase/Database.idl \
152     $$PWD/Modules/webdatabase/DatabaseCallback.idl \
153     $$PWD/Modules/webdatabase/DatabaseSync.idl \
154     $$PWD/Modules/webdatabase/SQLError.idl \
155     $$PWD/Modules/webdatabase/SQLException.idl \
156     $$PWD/Modules/webdatabase/SQLResultSet.idl \
157     $$PWD/Modules/webdatabase/SQLResultSetRowList.idl \
158     $$PWD/Modules/webdatabase/SQLStatementCallback.idl \
159     $$PWD/Modules/webdatabase/SQLStatementErrorCallback.idl \
160     $$PWD/Modules/webdatabase/SQLTransaction.idl \
161     $$PWD/Modules/webdatabase/SQLTransactionCallback.idl \
162     $$PWD/Modules/webdatabase/SQLTransactionErrorCallback.idl \
163     $$PWD/Modules/webdatabase/SQLTransactionSync.idl \
164     $$PWD/Modules/webdatabase/SQLTransactionSyncCallback.idl \
165     $$PWD/Modules/webdatabase/WorkerContextWebDatabase.idl \
166     $$PWD/Modules/websockets/CloseEvent.idl \
167     $$PWD/Modules/websockets/DOMWindowWebSocket.idl \
168     $$PWD/Modules/websockets/WebSocket.idl \
169     $$PWD/Modules/websockets/WorkerContextWebSocket.idl \
170     $$PWD/css/Counter.idl \
171     $$PWD/css/CSSCharsetRule.idl \
172     $$PWD/css/CSSFontFaceRule.idl \
173     $$PWD/css/CSSImportRule.idl \
174     $$PWD/css/CSSMediaRule.idl \
175     $$PWD/css/CSSPageRule.idl \
176     $$PWD/css/CSSPrimitiveValue.idl \
177     $$PWD/css/CSSRule.idl \
178     $$PWD/css/CSSRuleList.idl \
179     $$PWD/css/CSSStyleDeclaration.idl \
180     $$PWD/css/CSSStyleRule.idl \
181     $$PWD/css/CSSStyleSheet.idl \
182     $$PWD/css/CSSValue.idl \
183     $$PWD/css/CSSValueList.idl \
184     $$PWD/css/MediaList.idl \
185     $$PWD/css/MediaQueryList.idl \
186     $$PWD/css/Rect.idl \
187     $$PWD/css/RGBColor.idl \
188     $$PWD/css/StyleMedia.idl \
189     $$PWD/css/StyleSheet.idl \
190     $$PWD/css/StyleSheetList.idl \
191     $$PWD/css/WebKitCSSFilterValue.idl \
192     $$PWD/css/WebKitCSSKeyframeRule.idl \
193     $$PWD/css/WebKitCSSKeyframesRule.idl \
194     $$PWD/css/WebKitCSSMatrix.idl \
195     $$PWD/css/WebKitCSSRegionRule.idl \
196     $$PWD/css/WebKitCSSTransformValue.idl \
197     $$PWD/dom/Attr.idl \
198     $$PWD/dom/BeforeLoadEvent.idl \
199     $$PWD/dom/CharacterData.idl \
200     $$PWD/dom/ClientRect.idl \
201     $$PWD/dom/ClientRectList.idl \
202     $$PWD/dom/Clipboard.idl \
203     $$PWD/dom/CDATASection.idl \
204     $$PWD/dom/Comment.idl \
205     $$PWD/dom/CompositionEvent.idl \
206     $$PWD/dom/CustomEvent.idl \
207     $$PWD/dom/DataTransferItem.idl \
208     $$PWD/dom/DataTransferItemList.idl \
209     $$PWD/dom/DeviceMotionEvent.idl \
210     $$PWD/dom/DeviceOrientationEvent.idl \
211     $$PWD/dom/DocumentFragment.idl \
212     $$PWD/dom/Document.idl \
213     $$PWD/dom/DocumentType.idl \
214     $$PWD/dom/DOMCoreException.idl \
215     $$PWD/dom/DOMError.idl \
216     $$PWD/dom/DOMImplementation.idl \
217     $$PWD/dom/DOMStringList.idl \
218     $$PWD/dom/DOMStringMap.idl \
219     $$PWD/dom/Element.idl \
220     $$PWD/dom/Entity.idl \
221     $$PWD/dom/EntityReference.idl \
222     $$PWD/dom/ErrorEvent.idl \
223     $$PWD/dom/Event.idl \
224     $$PWD/dom/EventException.idl \
225 #    $$PWD/dom/EventListener.idl \
226 #    $$PWD/dom/EventTarget.idl \
227     $$PWD/dom/HashChangeEvent.idl \
228     $$PWD/dom/KeyboardEvent.idl \
229     $$PWD/dom/MouseEvent.idl \
230     $$PWD/dom/MessageChannel.idl \
231     $$PWD/dom/MessageEvent.idl \
232     $$PWD/dom/MessagePort.idl \
233     $$PWD/dom/MutationEvent.idl \
234     $$PWD/dom/NamedNodeMap.idl \
235     $$PWD/dom/Node.idl \
236     $$PWD/dom/NodeFilter.idl \
237     $$PWD/dom/NodeIterator.idl \
238     $$PWD/dom/NodeList.idl \
239     $$PWD/dom/Notation.idl \
240     $$PWD/dom/OverflowEvent.idl \
241     $$PWD/dom/PageTransitionEvent.idl \
242     $$PWD/dom/PopStateEvent.idl \
243     $$PWD/dom/ProcessingInstruction.idl \
244     $$PWD/dom/ProgressEvent.idl \
245     $$PWD/dom/RangeException.idl \
246     $$PWD/dom/Range.idl \
247     $$PWD/dom/RequestAnimationFrameCallback.idl \
248     $$PWD/dom/ShadowRoot.idl \
249     $$PWD/dom/StringCallback.idl \
250     $$PWD/dom/Text.idl \
251     $$PWD/dom/TextEvent.idl \
252     $$PWD/dom/Touch.idl \
253     $$PWD/dom/TouchEvent.idl \
254     $$PWD/dom/TouchList.idl \
255     $$PWD/dom/TreeWalker.idl \
256     $$PWD/dom/UIEvent.idl \
257     $$PWD/dom/WebKitAnimationEvent.idl \
258     $$PWD/dom/WebKitNamedFlow.idl \
259     $$PWD/dom/WebKitTransitionEvent.idl \
260     $$PWD/dom/WheelEvent.idl \
261     $$PWD/fileapi/Blob.idl \
262     $$PWD/fileapi/File.idl \
263     $$PWD/fileapi/FileError.idl \
264     $$PWD/fileapi/FileException.idl \
265     $$PWD/fileapi/FileList.idl \
266     $$PWD/fileapi/FileReader.idl \
267     $$PWD/fileapi/FileReaderSync.idl \
268     $$PWD/fileapi/OperationNotAllowedException.idl \
269     $$PWD/fileapi/WebKitBlobBuilder.idl \
270     $$PWD/html/canvas/ArrayBufferView.idl \
271     $$PWD/html/canvas/ArrayBuffer.idl \
272     $$PWD/html/canvas/DataView.idl \
273     $$PWD/html/canvas/Int8Array.idl \
274     $$PWD/html/canvas/Float32Array.idl \
275     $$PWD/html/canvas/Float64Array.idl \
276     $$PWD/html/canvas/CanvasGradient.idl \
277     $$PWD/html/canvas/Int32Array.idl \
278     $$PWD/html/canvas/CanvasPattern.idl \
279     $$PWD/html/canvas/CanvasRenderingContext.idl \
280     $$PWD/html/canvas/CanvasRenderingContext2D.idl \
281     $$PWD/html/canvas/EXTTextureFilterAnisotropic.idl \
282     $$PWD/html/canvas/OESStandardDerivatives.idl \
283     $$PWD/html/canvas/OESTextureFloat.idl \
284     $$PWD/html/canvas/OESVertexArrayObject.idl \
285     $$PWD/html/canvas/WebGLActiveInfo.idl \
286     $$PWD/html/canvas/WebGLBuffer.idl \
287     $$PWD/html/canvas/WebGLCompressedTextureS3TC.idl \
288     $$PWD/html/canvas/WebGLContextAttributes.idl \
289     $$PWD/html/canvas/WebGLContextEvent.idl \
290     $$PWD/html/canvas/WebGLDebugRendererInfo.idl \
291     $$PWD/html/canvas/WebGLDebugShaders.idl \
292     $$PWD/html/canvas/WebGLFramebuffer.idl \
293     $$PWD/html/canvas/WebGLLoseContext.idl \
294     $$PWD/html/canvas/WebGLProgram.idl \
295     $$PWD/html/canvas/WebGLRenderbuffer.idl \
296     $$PWD/html/canvas/WebGLRenderingContext.idl \
297     $$PWD/html/canvas/WebGLShader.idl \
298     $$PWD/html/canvas/WebGLShaderPrecisionFormat.idl \
299     $$PWD/html/canvas/Int16Array.idl \
300     $$PWD/html/canvas/WebGLTexture.idl \
301     $$PWD/html/canvas/WebGLUniformLocation.idl \
302     $$PWD/html/canvas/WebGLVertexArrayObjectOES.idl \
303     $$PWD/html/canvas/Uint8Array.idl \
304     $$PWD/html/canvas/Uint8ClampedArray.idl \
305     $$PWD/html/canvas/Uint32Array.idl \
306     $$PWD/html/canvas/Uint16Array.idl \
307     $$PWD/html/DOMFormData.idl \
308     $$PWD/html/DOMSettableTokenList.idl \
309     $$PWD/html/DOMTokenList.idl \
310     $$PWD/html/DOMURL.idl \
311     $$PWD/html/HTMLAllCollection.idl \
312     $$PWD/html/HTMLAudioElement.idl \
313     $$PWD/html/HTMLAnchorElement.idl \
314     $$PWD/html/HTMLAppletElement.idl \
315     $$PWD/html/HTMLAreaElement.idl \
316     $$PWD/html/HTMLBaseElement.idl \
317     $$PWD/html/HTMLBaseFontElement.idl \
318     $$PWD/html/HTMLBodyElement.idl \
319     $$PWD/html/HTMLBRElement.idl \
320     $$PWD/html/HTMLButtonElement.idl \
321     $$PWD/html/HTMLCanvasElement.idl \
322     $$PWD/html/HTMLCollection.idl \
323     $$PWD/html/HTMLDataListElement.idl \
324     $$PWD/html/HTMLDetailsElement.idl \
325     $$PWD/html/HTMLDirectoryElement.idl \
326     $$PWD/html/HTMLDivElement.idl \
327     $$PWD/html/HTMLDListElement.idl \
328     $$PWD/html/HTMLDocument.idl \
329     $$PWD/html/HTMLElement.idl \
330     $$PWD/html/HTMLEmbedElement.idl \
331     $$PWD/html/HTMLFieldSetElement.idl \
332     $$PWD/html/HTMLFontElement.idl \
333     $$PWD/html/HTMLFormElement.idl \
334     $$PWD/html/HTMLFrameElement.idl \
335     $$PWD/html/HTMLFrameSetElement.idl \
336     $$PWD/html/HTMLHeadElement.idl \
337     $$PWD/html/HTMLHeadingElement.idl \
338     $$PWD/html/HTMLHRElement.idl \
339     $$PWD/html/HTMLHtmlElement.idl \
340     $$PWD/html/HTMLIFrameElement.idl \
341     $$PWD/html/HTMLImageElement.idl \
342     $$PWD/html/HTMLInputElement.idl \
343     $$PWD/html/HTMLKeygenElement.idl \
344     $$PWD/html/HTMLLabelElement.idl \
345     $$PWD/html/HTMLLegendElement.idl \
346     $$PWD/html/HTMLLIElement.idl \
347     $$PWD/html/HTMLLinkElement.idl \
348     $$PWD/html/HTMLMapElement.idl \
349     $$PWD/html/HTMLMarqueeElement.idl \
350     $$PWD/html/HTMLMediaElement.idl \
351     $$PWD/html/HTMLMenuElement.idl \
352     $$PWD/html/HTMLMetaElement.idl \
353     $$PWD/html/HTMLMeterElement.idl \
354     $$PWD/html/HTMLModElement.idl \
355     $$PWD/html/HTMLObjectElement.idl \
356     $$PWD/html/HTMLOListElement.idl \
357     $$PWD/html/HTMLOptGroupElement.idl \
358     $$PWD/html/HTMLOptionElement.idl \
359     $$PWD/html/HTMLOptionsCollection.idl \
360     $$PWD/html/HTMLOutputElement.idl \
361     $$PWD/html/HTMLParagraphElement.idl \
362     $$PWD/html/HTMLParamElement.idl \
363     $$PWD/html/HTMLPreElement.idl \
364     $$PWD/html/HTMLProgressElement.idl \
365     $$PWD/html/HTMLPropertiesCollection.idl \
366     $$PWD/html/HTMLQuoteElement.idl \
367     $$PWD/html/HTMLScriptElement.idl \
368     $$PWD/html/HTMLSelectElement.idl \
369     $$PWD/html/HTMLSourceElement.idl \
370     $$PWD/html/HTMLSpanElement.idl \
371     $$PWD/html/HTMLStyleElement.idl \
372     $$PWD/html/HTMLTableCaptionElement.idl \
373     $$PWD/html/HTMLTableCellElement.idl \
374     $$PWD/html/HTMLTableColElement.idl \
375     $$PWD/html/HTMLTableElement.idl \
376     $$PWD/html/HTMLTableRowElement.idl \
377     $$PWD/html/HTMLTableSectionElement.idl \
378     $$PWD/html/HTMLTextAreaElement.idl \
379     $$PWD/html/HTMLTitleElement.idl \
380     $$PWD/html/HTMLTrackElement.idl \
381     $$PWD/html/HTMLUListElement.idl \
382     $$PWD/html/HTMLUnknownElement.idl \
383     $$PWD/html/HTMLVideoElement.idl \
384     $$PWD/html/ImageData.idl \
385     $$PWD/html/MediaController.idl \
386     $$PWD/html/MediaError.idl \
387     $$PWD/html/RadioNodeList.idl \
388     $$PWD/html/TextMetrics.idl \
389     $$PWD/html/TimeRanges.idl \
390     $$PWD/html/ValidityState.idl \
391     $$PWD/html/VoidCallback.idl \
392     $$PWD/html/shadow/HTMLContentElement.idl \
393     $$PWD/html/shadow/HTMLShadowElement.idl \
394     $$PWD/inspector/InjectedScriptHost.idl \
395     $$PWD/inspector/InspectorFrontendHost.idl \
396     $$PWD/inspector/JavaScriptCallFrame.idl \
397     $$PWD/inspector/ScriptProfile.idl \
398     $$PWD/inspector/ScriptProfileNode.idl \
399     $$PWD/loader/appcache/DOMApplicationCache.idl \
400     $$PWD/notifications/DOMWindowNotifications.idl \
401     $$PWD/notifications/Notification.idl \
402     $$PWD/notifications/NotificationCenter.idl \
403     $$PWD/notifications/NotificationPermissionCallback.idl \
404     $$PWD/notifications/WorkerContextNotifications.idl \
405     $$PWD/page/BarInfo.idl \
406     $$PWD/page/Console.idl \
407     $$PWD/page/Coordinates.idl \
408     $$PWD/page/Crypto.idl \
409     $$PWD/page/DOMSelection.idl \
410     $$PWD/page/DOMWindow.idl \
411     $$PWD/page/EventSource.idl \
412     $$PWD/page/History.idl \
413     $$PWD/page/Location.idl \
414     $$PWD/page/MemoryInfo.idl \
415     $$PWD/page/Navigator.idl \
416     $$PWD/page/Performance.idl \
417     $$PWD/page/PerformanceEntry.idl \
418     $$PWD/page/PerformanceEntryList.idl \
419     $$PWD/page/PerformanceNavigation.idl \
420     $$PWD/page/PerformanceTiming.idl \
421     $$PWD/page/Screen.idl \
422     $$PWD/page/SpeechInputEvent.idl \
423     $$PWD/page/SpeechInputResult.idl \
424     $$PWD/page/SpeechInputResultList.idl \
425     $$PWD/page/WebKitAnimation.idl \
426     $$PWD/page/WebKitAnimationList.idl \
427     $$PWD/page/WebKitPoint.idl \
428     $$PWD/page/WorkerNavigator.idl \
429     $$PWD/plugins/DOMPlugin.idl \
430     $$PWD/plugins/DOMMimeType.idl \
431     $$PWD/plugins/DOMPluginArray.idl \
432     $$PWD/plugins/DOMMimeTypeArray.idl \
433     $$PWD/storage/Storage.idl \
434     $$PWD/storage/StorageEvent.idl \
435     $$PWD/storage/StorageInfo.idl \
436     $$PWD/storage/StorageInfoErrorCallback.idl \
437     $$PWD/storage/StorageInfoQuotaCallback.idl \
438     $$PWD/storage/StorageInfoUsageCallback.idl \
439     $$PWD/testing/Internals.idl \
440     $$PWD/testing/InternalSettings.idl \
441     $$PWD/workers/AbstractWorker.idl \
442     $$PWD/workers/DedicatedWorkerContext.idl \
443     $$PWD/workers/SharedWorker.idl \
444     $$PWD/workers/SharedWorkerContext.idl \
445     $$PWD/workers/Worker.idl \
446     $$PWD/workers/WorkerContext.idl \
447     $$PWD/workers/WorkerLocation.idl \
448     $$PWD/xml/DOMParser.idl \
449     $$PWD/xml/XMLHttpRequest.idl \
450     $$PWD/xml/XMLHttpRequestException.idl \
451     $$PWD/xml/XMLHttpRequestProgressEvent.idl \
452     $$PWD/xml/XMLHttpRequestUpload.idl \
453     $$PWD/xml/XMLSerializer.idl \
454     $$PWD/xml/XPathNSResolver.idl \
455     $$PWD/xml/XPathException.idl \
456     $$PWD/xml/XPathExpression.idl \
457     $$PWD/xml/XPathResult.idl \
458     $$PWD/xml/XPathEvaluator.idl \
459     $$PWD/xml/XSLTProcessor.idl
460
461 v8 {
462   IDL_BINDINGS += \
463     $$PWD/Modules/indexeddb/IDBVersionChangeEvent.idl \
464     $$PWD/Modules/indexeddb/IDBVersionChangeRequest.idl
465 }
466
467 contains(DEFINES, ENABLE_SVG=1) {
468   IDL_BINDINGS += \
469     $$PWD/svg/SVGAElement.idl \
470     $$PWD/svg/SVGAltGlyphDefElement.idl \
471     $$PWD/svg/SVGAltGlyphElement.idl \
472     $$PWD/svg/SVGAltGlyphItemElement.idl \
473     $$PWD/svg/SVGAngle.idl \
474     $$PWD/svg/SVGAnimateColorElement.idl \
475     $$PWD/svg/SVGAnimateMotionElement.idl \
476     $$PWD/svg/SVGAnimatedAngle.idl \
477     $$PWD/svg/SVGAnimatedBoolean.idl \
478     $$PWD/svg/SVGAnimatedEnumeration.idl \
479     $$PWD/svg/SVGAnimatedInteger.idl \
480     $$PWD/svg/SVGAnimatedLength.idl \
481     $$PWD/svg/SVGAnimatedLengthList.idl \
482     $$PWD/svg/SVGAnimatedNumber.idl \
483     $$PWD/svg/SVGAnimatedNumberList.idl \
484     $$PWD/svg/SVGAnimatedPreserveAspectRatio.idl \
485     $$PWD/svg/SVGAnimatedRect.idl \
486     $$PWD/svg/SVGAnimatedString.idl \
487     $$PWD/svg/SVGAnimatedTransformList.idl \
488     $$PWD/svg/SVGAnimateElement.idl \
489     $$PWD/svg/SVGAnimateTransformElement.idl \
490     $$PWD/svg/SVGAnimationElement.idl \
491     $$PWD/svg/SVGCircleElement.idl \
492     $$PWD/svg/SVGClipPathElement.idl \
493     $$PWD/svg/SVGColor.idl \
494     $$PWD/svg/SVGComponentTransferFunctionElement.idl \
495     $$PWD/svg/SVGCursorElement.idl \
496     $$PWD/svg/SVGDefsElement.idl \
497     $$PWD/svg/SVGDescElement.idl \
498     $$PWD/svg/SVGDocument.idl \
499     $$PWD/svg/SVGElement.idl \
500     $$PWD/svg/SVGElementInstance.idl \
501     $$PWD/svg/SVGElementInstanceList.idl \
502     $$PWD/svg/SVGEllipseElement.idl \
503     $$PWD/svg/SVGException.idl \
504     $$PWD/svg/SVGFEBlendElement.idl \
505     $$PWD/svg/SVGFEColorMatrixElement.idl \
506     $$PWD/svg/SVGFEComponentTransferElement.idl \
507     $$PWD/svg/SVGFECompositeElement.idl \
508     $$PWD/svg/SVGFEConvolveMatrixElement.idl \
509     $$PWD/svg/SVGFEDiffuseLightingElement.idl \
510     $$PWD/svg/SVGFEDisplacementMapElement.idl \
511     $$PWD/svg/SVGFEDistantLightElement.idl \
512     $$PWD/svg/SVGFEDropShadowElement.idl \
513     $$PWD/svg/SVGFEFloodElement.idl \
514     $$PWD/svg/SVGFEFuncAElement.idl \
515     $$PWD/svg/SVGFEFuncBElement.idl \
516     $$PWD/svg/SVGFEFuncGElement.idl \
517     $$PWD/svg/SVGFEFuncRElement.idl \
518     $$PWD/svg/SVGFEGaussianBlurElement.idl \
519     $$PWD/svg/SVGFEImageElement.idl \
520     $$PWD/svg/SVGFEMergeElement.idl \
521     $$PWD/svg/SVGFEMergeNodeElement.idl \
522     $$PWD/svg/SVGFEMorphologyElement.idl \
523     $$PWD/svg/SVGFEOffsetElement.idl \
524     $$PWD/svg/SVGFEPointLightElement.idl \
525     $$PWD/svg/SVGFESpecularLightingElement.idl \
526     $$PWD/svg/SVGFESpotLightElement.idl \
527     $$PWD/svg/SVGFETileElement.idl \
528     $$PWD/svg/SVGFETurbulenceElement.idl \
529     $$PWD/svg/SVGFilterElement.idl \
530     $$PWD/svg/SVGFontElement.idl \
531     $$PWD/svg/SVGFontFaceElement.idl \
532     $$PWD/svg/SVGFontFaceFormatElement.idl \
533     $$PWD/svg/SVGFontFaceNameElement.idl \
534     $$PWD/svg/SVGFontFaceSrcElement.idl \
535     $$PWD/svg/SVGFontFaceUriElement.idl \
536     $$PWD/svg/SVGForeignObjectElement.idl \
537     $$PWD/svg/SVGGElement.idl \
538     $$PWD/svg/SVGGlyphElement.idl \
539     $$PWD/svg/SVGGlyphRefElement.idl \
540     $$PWD/svg/SVGGradientElement.idl \
541     $$PWD/svg/SVGHKernElement.idl \
542     $$PWD/svg/SVGImageElement.idl \
543     $$PWD/svg/SVGLength.idl \
544     $$PWD/svg/SVGLengthList.idl \
545     $$PWD/svg/SVGLinearGradientElement.idl \
546     $$PWD/svg/SVGLineElement.idl \
547     $$PWD/svg/SVGMarkerElement.idl \
548     $$PWD/svg/SVGMaskElement.idl \
549     $$PWD/svg/SVGMatrix.idl \
550     $$PWD/svg/SVGMetadataElement.idl \
551     $$PWD/svg/SVGMissingGlyphElement.idl \
552     $$PWD/svg/SVGMPathElement.idl \
553     $$PWD/svg/SVGNumber.idl \
554     $$PWD/svg/SVGNumberList.idl \
555     $$PWD/svg/SVGPaint.idl \
556     $$PWD/svg/SVGPathElement.idl \
557     $$PWD/svg/SVGPathSegArcAbs.idl \
558     $$PWD/svg/SVGPathSegArcRel.idl \
559     $$PWD/svg/SVGPathSegClosePath.idl \
560     $$PWD/svg/SVGPathSegCurvetoCubicAbs.idl \
561     $$PWD/svg/SVGPathSegCurvetoCubicRel.idl \
562     $$PWD/svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
563     $$PWD/svg/SVGPathSegCurvetoCubicSmoothRel.idl \
564     $$PWD/svg/SVGPathSegCurvetoQuadraticAbs.idl \
565     $$PWD/svg/SVGPathSegCurvetoQuadraticRel.idl \
566     $$PWD/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
567     $$PWD/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
568     $$PWD/svg/SVGPathSeg.idl \
569     $$PWD/svg/SVGPathSegLinetoAbs.idl \
570     $$PWD/svg/SVGPathSegLinetoHorizontalAbs.idl \
571     $$PWD/svg/SVGPathSegLinetoHorizontalRel.idl \
572     $$PWD/svg/SVGPathSegLinetoRel.idl \
573     $$PWD/svg/SVGPathSegLinetoVerticalAbs.idl \
574     $$PWD/svg/SVGPathSegLinetoVerticalRel.idl \
575     $$PWD/svg/SVGPathSegList.idl \
576     $$PWD/svg/SVGPathSegMovetoAbs.idl \
577     $$PWD/svg/SVGPathSegMovetoRel.idl \
578     $$PWD/svg/SVGPatternElement.idl \
579     $$PWD/svg/SVGPoint.idl \
580     $$PWD/svg/SVGPointList.idl \
581     $$PWD/svg/SVGPolygonElement.idl \
582     $$PWD/svg/SVGPolylineElement.idl \
583     $$PWD/svg/SVGPreserveAspectRatio.idl \
584     $$PWD/svg/SVGRadialGradientElement.idl \
585     $$PWD/svg/SVGRectElement.idl \
586     $$PWD/svg/SVGRect.idl \
587     $$PWD/svg/SVGRenderingIntent.idl \
588     $$PWD/svg/SVGScriptElement.idl \
589     $$PWD/svg/SVGSetElement.idl \
590     $$PWD/svg/SVGStopElement.idl \
591     $$PWD/svg/SVGStringList.idl \
592     $$PWD/svg/SVGStyleElement.idl \
593     $$PWD/svg/SVGSVGElement.idl \
594     $$PWD/svg/SVGSwitchElement.idl \
595     $$PWD/svg/SVGSymbolElement.idl \
596     $$PWD/svg/SVGTextContentElement.idl \
597     $$PWD/svg/SVGTextElement.idl \
598     $$PWD/svg/SVGTextPathElement.idl \
599     $$PWD/svg/SVGTextPositioningElement.idl \
600     $$PWD/svg/SVGTitleElement.idl \
601     $$PWD/svg/SVGTransform.idl \
602     $$PWD/svg/SVGTransformList.idl \
603     $$PWD/svg/SVGTRefElement.idl \
604     $$PWD/svg/SVGTSpanElement.idl \
605     $$PWD/svg/SVGUnitTypes.idl \
606     $$PWD/svg/SVGUseElement.idl \
607     $$PWD/svg/SVGViewElement.idl \
608     $$PWD/svg/SVGVKernElement.idl \
609     $$PWD/svg/SVGViewSpec.idl \
610     $$PWD/svg/SVGZoomAndPan.idl \
611     $$PWD/svg/SVGZoomEvent.idl
612 }
613
614 contains(DEFINES, ENABLE_VIDEO_TRACK=1) {
615   IDL_BINDINGS += \
616     $$PWD/html/track/TextTrack.idl \
617     $$PWD/html/track/TextTrackCue.idl \
618     $$PWD/html/track/TextTrackCueList.idl \
619     $$PWD/html/track/TextTrackList.idl \
620     $$PWD/html/track/TrackEvent.idl \
621 }
622
623 v8: wrapperFactoryArg = --wrapperFactoryV8
624 else: wrapperFactoryArg = --wrapperFactory
625
626 mathmlnames.output = MathMLNames.cpp
627 mathmlnames.input = MATHML_NAMES
628 mathmlnames.depends = $$PWD/mathml/mathattrs.in
629 mathmlnames.script = $$PWD/dom/make_names.pl
630 mathmlnames.commands = perl -I$$PWD/bindings/scripts $$mathmlnames.script --tags $$PWD/mathml/mathtags.in --attrs $$PWD/mathml/mathattrs.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory $$wrapperFactoryArg --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
631 mathmlnames.extra_sources = MathMLElementFactory.cpp
632 GENERATORS += mathmlnames
633
634 # GENERATOR 5-C:
635 svgnames.output = SVGNames.cpp
636 svgnames.input = SVG_NAMES
637 svgnames.depends = $$PWD/svg/svgattrs.in
638 svgnames.script = $$PWD/dom/make_names.pl
639 svgnames.commands = perl -I$$PWD/bindings/scripts $$svgnames.script --tags $$PWD/svg/svgtags.in --attrs $$PWD/svg/svgattrs.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\" --factory $$wrapperFactoryArg --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
640 svgnames.extra_sources = SVGElementFactory.cpp
641 v8 {
642     svgnames.extra_sources += V8SVGElementWrapperFactory.cpp
643 } else {
644     svgnames.extra_sources += JSSVGElementWrapperFactory.cpp
645 }
646 GENERATORS += svgnames
647
648 # GENERATOR 5-D:
649 xlinknames.output = XLinkNames.cpp
650 xlinknames.script = $$PWD/dom/make_names.pl
651 xlinknames.commands = perl -I$$PWD/bindings/scripts $$xlinknames.script --attrs $$PWD/svg/xlinkattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
652 xlinknames.input = XLINK_NAMES
653 GENERATORS += xlinknames
654
655 # GENERATOR 6-A:
656 cssprops.script = $$PWD/css/makeprop.pl
657 cssprops.output = CSSPropertyNames.cpp
658 cssprops.input = WALDOCSSPROPS
659 cssprops.commands = perl -ne \"print $1\" ${QMAKE_FILE_NAME} $${EXTRACSSPROPERTIES} > ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.in && cd ${QMAKE_FUNC_FILE_OUT_PATH} && perl -I$$PWD/bindings/scripts $$cssprops.script --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME} && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
660 cssprops.depends = ${QMAKE_FILE_NAME} $${EXTRACSSPROPERTIES} $$cssprops.script
661 GENERATORS += cssprops
662
663 # GENERATOR 6-B:
664 cssvalues.script = $$PWD/css/makevalues.pl
665 cssvalues.output = CSSValueKeywords.cpp
666 cssvalues.input = WALDOCSSVALUES
667 cssvalues.commands = perl -ne \"print $1\" ${QMAKE_FILE_NAME} $$EXTRACSSVALUES > ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.in && cd ${QMAKE_FUNC_FILE_OUT_PATH} && perl -I$$PWD/bindings/scripts $$cssvalues.script --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME} && $(DEL_FILE) ${QMAKE_FILE_BASE}.in ${QMAKE_FILE_BASE}.gperf
668 cssvalues.depends = ${QMAKE_FILE_NAME} $${EXTRACSSVALUES} $$cssvalues.script
669 cssvalues.clean = ${QMAKE_FILE_OUT} ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.h
670 GENERATORS += cssvalues
671
672 # GENERATOR 0: Resolve [Supplemental] dependency in IDLs
673 SUPPLEMENTAL_DEPENDENCY_FILE = supplemental_dependency.tmp
674 IDL_FILES_TMP = ${QMAKE_FUNC_FILE_OUT_PATH}/idl_files.tmp
675 PREPROCESS_IDLS_SCRIPT = $$PWD/bindings/scripts/preprocess-idls.pl
676 IDL_ATTRIBUTES_FILE = $$PWD/bindings/scripts/IDLAttributes.txt
677
678 preprocessIdls.input = IDL_ATTRIBUTES_FILE
679 preprocessIdls.script = $$PREPROCESS_IDLS_SCRIPT
680 # FIXME : We need to use only perl at some point.
681 EOC = $$escape_expand(\\n\\t)
682 win_cmd_shell: preprocessIdls.commands = type nul > $$IDL_FILES_TMP $$EOC
683 else: preprocessIdls.commands = cat /dev/null > $$IDL_FILES_TMP $$EOC
684 for(binding, IDL_BINDINGS) {
685     preprocessIdls.commands += echo $$binding >> $$IDL_FILES_TMP $$EOC
686 }
687 preprocessIdls.commands += perl -I$$PWD/bindings/scripts $$preprocessIdls.script \
688                                --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" \
689                                --idlFilesList $$IDL_FILES_TMP \
690                                --supplementalDependencyFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
691                                --idlAttributesFile $${IDL_ATTRIBUTES_FILE} \
692                                --preprocessor \"$${QMAKE_MOC} -E\"
693 preprocessIdls.output = $$SUPPLEMENTAL_DEPENDENCY_FILE
694 preprocessIdls.add_output_to_sources = false
695 preprocessIdls.depends = $$PWD/bindings/scripts/IDLParser.pm $$IDL_BINDINGS
696 GENERATORS += preprocessIdls
697
698 # GENERATOR 1: Generate .h and .cpp from IDLs
699 generateBindings.input = IDL_BINDINGS
700 generateBindings.script = $$PWD/bindings/scripts/generate-bindings.pl
701 v8: generator = V8
702 else: generator = JS
703 generateBindings.commands = perl -I$$PWD/bindings/scripts $$generateBindings.script \
704                             --defines \"$${FEATURE_DEFINES_JAVASCRIPT}\" \
705                             --generator $$generator \
706                             --include $$PWD/Modules/filesystem \
707                             --include $$PWD/Modules/geolocation \
708                             --include $$PWD/Modules/indexeddb \
709                             --include $$PWD/Modules/webaudio \
710                             --include $$PWD/Modules/webdatabase \
711                             --include $$PWD/Modules/websockets \
712                             --include $$PWD/dom \
713                             --include $$PWD/fileapi \
714                             --include $$PWD/html \
715                             --include $$PWD/xml \
716                             --include $$PWD/svg \
717                             --include $$PWD/storage \
718                             --include $$PWD/css \
719                             --include $$PWD/testing \
720                             --include $$PWD/workers \
721                             --outputDir ${QMAKE_FUNC_FILE_OUT_PATH} \
722                             --supplementalDependencyFile ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
723                             --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME}
724 v8 {
725     generateBindings.output = V8${QMAKE_FILE_BASE}.cpp
726     generateBindings.depends = ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
727                                $$PWD/bindings/scripts/CodeGenerator.pm \
728                                $$PWD/bindings/scripts/CodeGeneratorV8.pm \
729                                $$PWD/bindings/scripts/IDLParser.pm \
730                                $$PWD/bindings/scripts/IDLStructure.pm \
731                                $$PWD/bindings/scripts/InFilesParser.pm \
732                                $$PWD/bindings/scripts/preprocessor.pm
733 } else {
734     generateBindings.output = JS${QMAKE_FILE_BASE}.cpp
735     generateBindings.depends = ${QMAKE_FUNC_FILE_OUT_PATH}/$$SUPPLEMENTAL_DEPENDENCY_FILE \
736                                $$PWD/bindings/scripts/CodeGenerator.pm \
737                                $$PWD/bindings/scripts/CodeGeneratorJS.pm \
738                                $$PWD/bindings/scripts/IDLParser.pm \
739                                $$PWD/bindings/scripts/IDLStructure.pm \
740                                $$PWD/bindings/scripts/InFilesParser.pm \
741                                $$PWD/bindings/scripts/preprocessor.pm
742 }
743 GENERATORS += generateBindings
744
745 # GENERATOR 2: inspector idl compiler
746 inspectorValidate.output = InspectorProtocolVersion.h
747 inspectorValidate.input = INSPECTOR_JSON
748 inspectorValidate.script = $$PWD/inspector/generate-inspector-protocol-version
749 inspectorValidate.commands = python $$inspectorValidate.script -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
750 inspectorValidate.depends = $$PWD/inspector/generate-inspector-protocol-version
751 inspectorValidate.add_output_to_sources = false
752 GENERATORS += inspectorValidate
753
754 inspectorJSON.output = InspectorFrontend.cpp InspectorBackendDispatcher.cpp InspectorTypeBuilder.cpp
755 inspectorJSON.input = INSPECTOR_JSON
756 inspectorJSON.script = $$PWD/inspector/CodeGeneratorInspector.py
757 inspectorJSON.commands = python $$inspectorJSON.script $$PWD/inspector/Inspector.json --output_h_dir ${QMAKE_FUNC_FILE_OUT_PATH} --output_cpp_dir ${QMAKE_FUNC_FILE_OUT_PATH}
758 inspectorJSON.depends = $$inspectorJSON.script
759 GENERATORS += inspectorJSON
760
761 inspectorBackendCommands.output = InspectorBackendCommands.qrc
762 inspectorBackendCommands.input = INSPECTOR_BACKEND_COMMANDS_QRC
763 inspectorBackendCommands.commands = $$QMAKE_COPY $$toSystemPath($$INSPECTOR_BACKEND_COMMANDS_QRC) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}InspectorBackendCommands.qrc
764 inspectorBackendCommands.add_output_to_sources = false
765 GENERATORS += inspectorBackendCommands
766
767 # GENERATOR 2-a: inspector injected script source compiler
768 injectedScriptSource.output = InjectedScriptSource.h
769 injectedScriptSource.input = INJECTED_SCRIPT_SOURCE
770 injectedScriptSource.commands = perl $$PWD/inspector/xxd.pl InjectedScriptSource_js $$PWD/inspector/InjectedScriptSource.js ${QMAKE_FILE_OUT}
771 injectedScriptSource.add_output_to_sources = false
772 GENERATORS += injectedScriptSource
773
774 # GENERATOR 2-b: inspector debugger script source compiler
775 debuggerScriptSource.output = DebuggerScriptSource.h
776 debuggerScriptSource.input = DEBUGGER_SCRIPT_SOURCE
777 debuggerScriptSource.commands = perl $$PWD/inspector/xxd.pl DebuggerScriptSource_js ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
778 debuggerScriptSource.add_output_to_sources = false
779 GENERATORS += debuggerScriptSource
780
781 arrayBufferViewCustomScript.output = V8ArrayBufferViewCustomScript.h
782 arrayBufferViewCustomScript.input = ARRAY_BUFFER_VIEW_CUSTOM_SCRIPT_SOURCE
783 arrayBufferViewCustomScript.commands = perl $$PWD/inspector/xxd.pl V8ArrayBufferViewCustomScript_js ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
784 arrayBufferViewCustomScript.add_output_to_sources = false
785 GENERATORS += arrayBufferViewCustomScript
786
787 # GENERATOR 4: CSS grammar
788 cssbison.output = ${QMAKE_FILE_BASE}.cpp
789 cssbison.input = CSSBISON
790 cssbison.script = $$PWD/css/makegrammar.pl
791 cssbison.commands = perl $$cssbison.script ${QMAKE_FILE_NAME} ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}
792 cssbison.depends = ${QMAKE_FILE_NAME}
793 GENERATORS += cssbison
794
795 # GENERATOR 5-A:
796 htmlnames.output = HTMLNames.cpp
797 htmlnames.input = HTML_NAMES
798 htmlnames.script = $$PWD/dom/make_names.pl
799 htmlnames.depends = $$PWD/html/HTMLAttributeNames.in
800 htmlnames.commands = perl -I$$PWD/bindings/scripts $$htmlnames.script --tags $$PWD/html/HTMLTagNames.in --attrs $$PWD/html/HTMLAttributeNames.in --extraDefines \"$${DEFINES}\" --preprocessor \"$${QMAKE_MOC} -E\"  --factory $$wrapperFactoryArg --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
801 htmlnames.extra_sources = HTMLElementFactory.cpp
802 v8 {
803     htmlnames.extra_sources += V8HTMLElementWrapperFactory.cpp
804 } else {
805     htmlnames.extra_sources += JSHTMLElementWrapperFactory.cpp
806 }
807 GENERATORS += htmlnames
808
809 # GENERATOR 5-B:
810 xmlnsnames.output = XMLNSNames.cpp
811 xmlnsnames.input = XMLNS_NAMES
812 xmlnsnames.script = $$PWD/dom/make_names.pl
813 xmlnsnames.commands = perl -I$$PWD/bindings/scripts $$xmlnsnames.script --attrs $$PWD/xml/xmlnsattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
814 GENERATORS += xmlnsnames
815
816 # GENERATOR 5-C:
817 xmlnames.output = XMLNames.cpp
818 xmlnames.input = XML_NAMES
819 xmlnames.script = $$PWD/dom/make_names.pl
820 xmlnames.commands = perl -I$$PWD/bindings/scripts $$xmlnames.script --attrs $$PWD/xml/xmlattrs.in --preprocessor \"$${QMAKE_MOC} -E\" --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
821 GENERATORS += xmlnames
822
823 # GENERATOR 5-D:
824 fontnames.output = WebKitFontFamilyNames.cpp
825 fontnames.input = FONT_NAMES
826 fontnames.script = $$PWD/dom/make_names.pl
827 fontnames.commands = perl -I$$PWD/bindings/scripts $$fontnames.script --fonts $$FONT_NAMES --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
828 entities.depends = $$PWD/dom/make_names.pl $$FONT_NAMES
829 GENERATORS += fontnames
830
831 # GENERATOR 5-E:
832 eventfactory.output = EventFactory.cpp
833 eventfactory.input = EVENTS_NAMES
834 eventfactory.script = $$PWD/dom/make_event_factory.pl
835 eventfactory.commands = perl -I$$PWD/bindings/scripts $$eventfactory.script --input $$EVENTS_NAMES --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
836 eventfactory.depends = $$PWD/dom/make_event_factory.pl $$EVENTS_NAMES
837 GENERATORS += eventfactory
838
839 # GENERATOR 5-F:
840 eventtargetfactory.output = EventTargetInterfaces.h
841 eventtargetfactory.add_output_to_sources = false
842 eventtargetfactory.input = EVENT_TARGET_FACTORY
843 eventtargetfactory.script = $$PWD/dom/make_event_factory.pl
844 eventtargetfactory.commands = perl -I$$PWD/bindings/scripts $$eventfactory.script --input $$EVENT_TARGET_FACTORY --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
845 eventtargetfactory.depends = $$PWD/dom/make_event_factory.pl $$EVENT_TARGET_FACTORY
846 GENERATORS += eventtargetfactory
847
848 # GENERATOR 5-G:
849 exceptioncodedescription.output = ExceptionCodeDescription.cpp
850 exceptioncodedescription.input = DOM_EXCEPTIONS
851 exceptioncodedescription.script = $$PWD/dom/make_dom_exceptions.pl
852 exceptioncodedescription.commands = perl -I$$PWD/bindings/scripts $$exceptioncodedescription.script --input $$DOM_EXCEPTIONS --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}
853 exceptioncodedescription.depends = $$PWD/dom/make_dom_exceptions.pl $$DOM_EXCEPTIONS
854 GENERATORS += exceptioncodedescription
855
856 # GENERATOR 8-A:
857 entities.output = HTMLEntityTable.cpp
858 entities.input = HTML_ENTITIES
859 entities.script = $$PWD/html/parser/create-html-entity-table
860 entities.commands = python $$entities.script -o ${QMAKE_FILE_OUT} $$HTML_ENTITIES
861 entities.clean = ${QMAKE_FILE_OUT}
862 entities.depends = $$PWD/html/parser/create-html-entity-table
863 GENERATORS += entities
864
865 # GENERATOR 8-B:
866 colordata.output = ColorData.cpp
867 colordata.input = COLORDATA_GPERF
868 colordata.script = $$PWD/make-hash-tools.pl
869 colordata.commands = perl $$colordata.script ${QMAKE_FUNC_FILE_OUT_PATH} $$COLORDATA_GPERF
870 colordata.clean = ${QMAKE_FILE_OUT}
871 colordata.depends = $$PWD/make-hash-tools.pl
872 GENERATORS += colordata
873
874 contains(DEFINES, ENABLE_XSLT=1) {
875     # GENERATOR 8-C:
876     xmlviewercss.output = XMLViewerCSS.h
877     xmlviewercss.input = XMLVIEWER_CSS
878     xmlviewercss.script = $$PWD/inspector/xxd.pl
879     xmlviewercss.commands = perl $$xmlviewercss.script XMLViewer_css $$XMLVIEWER_CSS ${QMAKE_FILE_OUT}
880     xmlviewercss.clean = ${QMAKE_FILE_OUT}
881     xmlviewercss.depends = $$PWD/inspector/xxd.pl
882     xmlviewercss.add_output_to_sources = false
883     GENERATORS += xmlviewercss
884
885     # GENERATOR 8-D:
886     xmlviewerjs.output = XMLViewerJS.h
887     xmlviewerjs.input = XMLVIEWER_JS
888     xmlviewerjs.script = $$PWD/inspector/xxd.pl
889     xmlviewerjs.commands = perl $$xmlviewerjs.script XMLViewer_js $$XMLVIEWER_JS ${QMAKE_FILE_OUT}
890     xmlviewerjs.clean = ${QMAKE_FILE_OUT}
891     xmlviewerjs.depends = $$PWD/inspector/xxd.pl
892     xmlviewerjs.add_output_to_sources = false
893     GENERATORS += xmlviewerjs
894 }
895
896 # GENERATOR 9:
897 stylesheets.script = $$PWD/css/make-css-file-arrays.pl
898 stylesheets.output = UserAgentStyleSheetsData.cpp
899 stylesheets.input = stylesheets.script
900 stylesheets.commands = perl $$stylesheets.script ${QMAKE_FUNC_FILE_OUT_PATH}/UserAgentStyleSheets.h ${QMAKE_FILE_OUT} $$STYLESHEETS_EMBED
901 stylesheets.depends = $$STYLESHEETS_EMBED
902 stylesheets.clean = ${QMAKE_FILE_OUT} ${QMAKE_FUNC_FILE_OUT_PATH}/UserAgentStyleSheets.h
903 GENERATORS += stylesheets
904
905 # GENERATOR 10: XPATH grammar
906 xpathbison.output = ${QMAKE_FILE_BASE}.cpp
907 xpathbison.input = XPATHBISON
908 xpathbison.commands = bison -d -p xpathyy ${QMAKE_FILE_NAME} -o ${QMAKE_FUNC_FILE_OUT_PATH}/${QMAKE_FILE_BASE}.tab.c && $(MOVE) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp && $(MOVE) ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.h ${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.h
909 xpathbison.depends = ${QMAKE_FILE_NAME}
910 GENERATORS += xpathbison
911
912 # GENERATOR 11: WebKit Version
913 # The appropriate Apple-maintained Version.xcconfig file for WebKit version information is in Source/WebKit/mac/Configurations/.
914 webkitversion.script = $$PWD/../WebKit/scripts/generate-webkitversion.pl
915 webkitversion.output = WebKitVersion.h
916 webkitversion.input = webkitversion.script
917 webkitversion.commands = perl $$webkitversion.script --config $$PWD/../WebKit/mac/Configurations/Version.xcconfig --outputDir ${QMAKE_FUNC_FILE_OUT_PATH}/
918 webkitversion.clean = ${QMAKE_FUNC_FILE_OUT_PATH}/WebKitVersion.h
919 webkitversion.add_output_to_sources = false
920 GENERATORS += webkitversion
921
922 # Stolen from JavaScriptCore, needed for YARR
923 v8 {
924     retgen.output = RegExpJitTables.h
925     retgen.script = $$PWD/../JavaScriptCore/create_regex_tables
926     retgen.input = retgen.script
927     retgen.commands = python $$retgen.script > ${QMAKE_FILE_OUT}
928     GENERATORS += retgen
929 }