Fix DerivedSources.make to not assume that WTF and WebCore build in to the same build...
[WebKit-https.git] / Source / WebCore / DerivedSources.make
1 # Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
2 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 
3 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 #
9 # 1.  Redistributions of source code must retain the above copyright
10 #     notice, this list of conditions and the following disclaimer. 
11 # 2.  Redistributions in binary form must reproduce the above copyright
12 #     notice, this list of conditions and the following disclaimer in the
13 #     documentation and/or other materials provided with the distribution. 
14 # 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
15 #     its contributors may be used to endorse or promote products derived
16 #     from this software without specific prior written permission. 
17 #
18 # THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
19 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 # DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
22 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 VPATH = \
30     $(WebCore) \
31     $(WebCore)/Modules/geolocation \
32     $(WebCore)/Modules/indexeddb \
33     $(WebCore)/Modules/webdatabase \
34     $(WebCore)/Modules/websockets \
35     $(WebCore)/bindings/generic \
36     $(WebCore)/bindings/js \
37     $(WebCore)/bindings/objc \
38     $(WebCore)/css \
39     $(WebCore)/dom \
40     $(WebCore)/fileapi \
41     $(WebCore)/html \
42     $(WebCore)/html/canvas \
43     $(WebCore)/html/shadow \
44     $(WebCore)/html/track \
45     $(WebCore)/inspector \
46     $(WebCore)/loader/appcache \
47     $(WebCore)/notifications \
48     $(WebCore)/page \
49     $(WebCore)/plugins \
50     $(WebCore)/storage \
51     $(WebCore)/xml \
52     $(WebCore)/webaudio \
53     $(WebCore)/workers \
54     $(WebCore)/svg \
55     $(WebCore)/testing \
56     $(WebCore)/websockets \
57 #
58
59 BINDING_IDLS = \
60     $(WebCore)/Modules/geolocation/Geolocation.idl \
61     $(WebCore)/Modules/geolocation/Geoposition.idl \
62     $(WebCore)/Modules/geolocation/NavigatorGeolocation.idl \
63     $(WebCore)/Modules/geolocation/PositionCallback.idl \
64     $(WebCore)/Modules/geolocation/PositionError.idl \
65     $(WebCore)/Modules/geolocation/PositionErrorCallback.idl \
66     $(WebCore)/Modules/indexeddb/DOMWindowIndexedDatabase.idl \
67     $(WebCore)/Modules/indexeddb/IDBAny.idl \
68     $(WebCore)/Modules/indexeddb/IDBCursor.idl \
69     $(WebCore)/Modules/indexeddb/IDBDatabase.idl \
70     $(WebCore)/Modules/indexeddb/IDBDatabaseError.idl \
71     $(WebCore)/Modules/indexeddb/IDBDatabaseException.idl \
72     $(WebCore)/Modules/indexeddb/IDBFactory.idl \
73     $(WebCore)/Modules/indexeddb/IDBIndex.idl \
74     $(WebCore)/Modules/indexeddb/IDBKey.idl \
75     $(WebCore)/Modules/indexeddb/IDBKeyRange.idl \
76     $(WebCore)/Modules/indexeddb/IDBObjectStore.idl \
77     $(WebCore)/Modules/indexeddb/IDBRequest.idl \
78     $(WebCore)/Modules/indexeddb/IDBTransaction.idl \
79     $(WebCore)/Modules/indexeddb/WorkerContextIndexedDatabase.idl \
80     $(WebCore)/Modules/webdatabase/DOMWindowSQLDatabase.idl \
81     $(WebCore)/Modules/webdatabase/Database.idl \
82     $(WebCore)/Modules/webdatabase/DatabaseCallback.idl \
83     $(WebCore)/Modules/webdatabase/DatabaseSync.idl \
84     $(WebCore)/Modules/webdatabase/SQLError.idl \
85     $(WebCore)/Modules/webdatabase/SQLException.idl \
86     $(WebCore)/Modules/webdatabase/SQLResultSet.idl \
87     $(WebCore)/Modules/webdatabase/SQLResultSetRowList.idl \
88     $(WebCore)/Modules/webdatabase/SQLStatementCallback.idl \
89     $(WebCore)/Modules/webdatabase/SQLStatementErrorCallback.idl \
90     $(WebCore)/Modules/webdatabase/SQLTransaction.idl \
91     $(WebCore)/Modules/webdatabase/SQLTransactionCallback.idl \
92     $(WebCore)/Modules/webdatabase/SQLTransactionErrorCallback.idl \
93     $(WebCore)/Modules/webdatabase/SQLTransactionSync.idl \
94     $(WebCore)/Modules/webdatabase/SQLTransactionSyncCallback.idl \
95     $(WebCore)/Modules/webdatabase/WorkerContextSQLDatabase.idl \
96     $(WebCore)/Modules/websockets/CloseEvent.idl \
97     $(WebCore)/Modules/websockets/DOMWindowWebSocket.idl \
98     $(WebCore)/Modules/websockets/WebSocket.idl \
99     $(WebCore)/css/CSSCharsetRule.idl \
100     $(WebCore)/css/CSSFontFaceRule.idl \
101     $(WebCore)/css/CSSImportRule.idl \
102     $(WebCore)/css/CSSMediaRule.idl \
103     $(WebCore)/css/CSSPageRule.idl \
104     $(WebCore)/css/CSSPrimitiveValue.idl \
105     $(WebCore)/css/CSSRule.idl \
106     $(WebCore)/css/CSSRuleList.idl \
107     $(WebCore)/css/CSSStyleDeclaration.idl \
108     $(WebCore)/css/CSSStyleRule.idl \
109     $(WebCore)/css/CSSStyleSheet.idl \
110     $(WebCore)/css/CSSUnknownRule.idl \
111     $(WebCore)/css/CSSValue.idl \
112     $(WebCore)/css/CSSValueList.idl \
113     $(WebCore)/css/Counter.idl \
114     $(WebCore)/css/MediaList.idl \
115     $(WebCore)/css/MediaQueryList.idl \
116     $(WebCore)/css/MediaQueryListListener.idl \
117     $(WebCore)/css/RGBColor.idl \
118     $(WebCore)/css/Rect.idl \
119     $(WebCore)/css/StyleMedia.idl \
120     $(WebCore)/css/StyleSheet.idl \
121     $(WebCore)/css/StyleSheetList.idl \
122     $(WebCore)/css/WebKitCSSFilterValue.idl \
123     $(WebCore)/css/WebKitCSSKeyframeRule.idl \
124     $(WebCore)/css/WebKitCSSKeyframesRule.idl \
125     $(WebCore)/css/WebKitCSSMatrix.idl \
126     $(WebCore)/css/WebKitCSSRegionRule.idl \
127     $(WebCore)/css/WebKitCSSTransformValue.idl \
128     $(WebCore)/dom/Attr.idl \
129     $(WebCore)/dom/BeforeLoadEvent.idl \
130     $(WebCore)/dom/CDATASection.idl \
131     $(WebCore)/dom/CharacterData.idl \
132     $(WebCore)/dom/ClientRect.idl \
133     $(WebCore)/dom/ClientRectList.idl \
134     $(WebCore)/dom/Clipboard.idl \
135     $(WebCore)/dom/Comment.idl \
136     $(WebCore)/dom/CompositionEvent.idl \
137     $(WebCore)/dom/CustomEvent.idl \
138     $(WebCore)/dom/DOMCoreException.idl \
139     $(WebCore)/dom/DOMImplementation.idl \
140     $(WebCore)/dom/DOMStringList.idl \
141     $(WebCore)/dom/DOMStringMap.idl \
142     $(WebCore)/dom/DataTransferItem.idl \
143     $(WebCore)/dom/DataTransferItemList.idl \
144     $(WebCore)/dom/DeviceMotionEvent.idl \
145     $(WebCore)/dom/DeviceOrientationEvent.idl \
146     $(WebCore)/dom/Document.idl \
147     $(WebCore)/dom/DocumentFragment.idl \
148     $(WebCore)/dom/DocumentType.idl \
149     $(WebCore)/dom/Element.idl \
150     $(WebCore)/dom/Entity.idl \
151     $(WebCore)/dom/EntityReference.idl \
152     $(WebCore)/dom/ErrorEvent.idl \
153     $(WebCore)/dom/Event.idl \
154     $(WebCore)/dom/EventException.idl \
155     $(WebCore)/dom/EventListener.idl \
156     $(WebCore)/dom/EventTarget.idl \
157     $(WebCore)/dom/HashChangeEvent.idl \
158     $(WebCore)/dom/KeyboardEvent.idl \
159     $(WebCore)/dom/MessageChannel.idl \
160     $(WebCore)/dom/MessageEvent.idl \
161     $(WebCore)/dom/MessagePort.idl \
162     $(WebCore)/dom/MouseEvent.idl \
163     $(WebCore)/dom/MutationCallback.idl \
164     $(WebCore)/dom/MutationEvent.idl \
165     $(WebCore)/dom/MutationRecord.idl \
166     $(WebCore)/dom/NamedNodeMap.idl \
167     $(WebCore)/dom/Node.idl \
168     $(WebCore)/dom/NodeFilter.idl \
169     $(WebCore)/dom/NodeIterator.idl \
170     $(WebCore)/dom/NodeList.idl \
171     $(WebCore)/dom/Notation.idl \
172     $(WebCore)/dom/OverflowEvent.idl \
173     $(WebCore)/dom/PageTransitionEvent.idl \
174     $(WebCore)/dom/PopStateEvent.idl \
175     $(WebCore)/dom/ProcessingInstruction.idl \
176     $(WebCore)/dom/ProgressEvent.idl \
177     $(WebCore)/dom/Range.idl \
178     $(WebCore)/dom/RangeException.idl \
179     $(WebCore)/dom/RequestAnimationFrameCallback.idl \
180     $(WebCore)/dom/ShadowRoot.idl \
181     $(WebCore)/dom/StringCallback.idl \
182     $(WebCore)/dom/Text.idl \
183     $(WebCore)/dom/TextEvent.idl \
184     $(WebCore)/dom/Touch.idl \
185     $(WebCore)/dom/TouchEvent.idl \
186     $(WebCore)/dom/TouchList.idl \
187     $(WebCore)/dom/TreeWalker.idl \
188     $(WebCore)/dom/UIEvent.idl \
189     $(WebCore)/dom/WebKitAnimationEvent.idl \
190     $(WebCore)/dom/WebKitMutationObserver.idl \
191     $(WebCore)/dom/WebKitNamedFlow.idl \
192     $(WebCore)/dom/WebKitTransitionEvent.idl \
193     $(WebCore)/dom/WheelEvent.idl \
194     $(WebCore)/fileapi/Blob.idl \
195     $(WebCore)/fileapi/DOMFileSystem.idl \
196     $(WebCore)/fileapi/DOMFileSystemSync.idl \
197     $(WebCore)/fileapi/DOMWindowFileSystem.idl \
198     $(WebCore)/fileapi/DirectoryEntry.idl \
199     $(WebCore)/fileapi/DirectoryEntrySync.idl \
200     $(WebCore)/fileapi/DirectoryReader.idl \
201     $(WebCore)/fileapi/DirectoryReaderSync.idl \
202     $(WebCore)/fileapi/EntriesCallback.idl \
203     $(WebCore)/fileapi/Entry.idl \
204     $(WebCore)/fileapi/EntryArray.idl \
205     $(WebCore)/fileapi/EntryArraySync.idl \
206     $(WebCore)/fileapi/EntryCallback.idl \
207     $(WebCore)/fileapi/EntrySync.idl \
208     $(WebCore)/fileapi/ErrorCallback.idl \
209     $(WebCore)/fileapi/File.idl \
210     $(WebCore)/fileapi/FileCallback.idl \
211     $(WebCore)/fileapi/FileEntry.idl \
212     $(WebCore)/fileapi/FileEntrySync.idl \
213     $(WebCore)/fileapi/FileError.idl \
214     $(WebCore)/fileapi/FileException.idl \
215     $(WebCore)/fileapi/FileList.idl \
216     $(WebCore)/fileapi/FileReader.idl \
217     $(WebCore)/fileapi/FileReaderSync.idl \
218     $(WebCore)/fileapi/FileSystemCallback.idl \
219     $(WebCore)/fileapi/FileWriter.idl \
220     $(WebCore)/fileapi/FileWriterCallback.idl \
221     $(WebCore)/fileapi/FileWriterSync.idl \
222     $(WebCore)/fileapi/Metadata.idl \
223     $(WebCore)/fileapi/MetadataCallback.idl \
224     $(WebCore)/fileapi/OperationNotAllowedException.idl \
225     $(WebCore)/fileapi/WebKitBlobBuilder.idl \
226     $(WebCore)/fileapi/WorkerContextFileSystem.idl \
227     $(WebCore)/html/DOMFormData.idl \
228     $(WebCore)/html/DOMSettableTokenList.idl \
229     $(WebCore)/html/DOMTokenList.idl \
230     $(WebCore)/html/DOMURL.idl \
231     $(WebCore)/html/HTMLAllCollection.idl \
232     $(WebCore)/html/HTMLAnchorElement.idl \
233     $(WebCore)/html/HTMLAppletElement.idl \
234     $(WebCore)/html/HTMLAreaElement.idl \
235     $(WebCore)/html/HTMLAudioElement.idl \
236     $(WebCore)/html/HTMLBRElement.idl \
237     $(WebCore)/html/HTMLBaseElement.idl \
238     $(WebCore)/html/HTMLBaseFontElement.idl \
239     $(WebCore)/html/HTMLBodyElement.idl \
240     $(WebCore)/html/HTMLButtonElement.idl \
241     $(WebCore)/html/HTMLCanvasElement.idl \
242     $(WebCore)/html/HTMLCollection.idl \
243     $(WebCore)/html/HTMLDListElement.idl \
244     $(WebCore)/html/HTMLDataListElement.idl \
245     $(WebCore)/html/HTMLDetailsElement.idl \
246     $(WebCore)/html/HTMLDirectoryElement.idl \
247     $(WebCore)/html/HTMLDivElement.idl \
248     $(WebCore)/html/HTMLDocument.idl \
249     $(WebCore)/html/HTMLElement.idl \
250     $(WebCore)/html/HTMLEmbedElement.idl \
251     $(WebCore)/html/HTMLFieldSetElement.idl \
252     $(WebCore)/html/HTMLFontElement.idl \
253     $(WebCore)/html/HTMLFormElement.idl \
254     $(WebCore)/html/HTMLFrameElement.idl \
255     $(WebCore)/html/HTMLFrameSetElement.idl \
256     $(WebCore)/html/HTMLHRElement.idl \
257     $(WebCore)/html/HTMLHeadElement.idl \
258     $(WebCore)/html/HTMLHeadingElement.idl \
259     $(WebCore)/html/HTMLHtmlElement.idl \
260     $(WebCore)/html/HTMLIFrameElement.idl \
261     $(WebCore)/html/HTMLImageElement.idl \
262     $(WebCore)/html/HTMLInputElement.idl \
263     $(WebCore)/html/HTMLKeygenElement.idl \
264     $(WebCore)/html/HTMLLIElement.idl \
265     $(WebCore)/html/HTMLLabelElement.idl \
266     $(WebCore)/html/HTMLLegendElement.idl \
267     $(WebCore)/html/HTMLLinkElement.idl \
268     $(WebCore)/html/HTMLMapElement.idl \
269     $(WebCore)/html/HTMLMarqueeElement.idl \
270     $(WebCore)/html/HTMLMediaElement.idl \
271     $(WebCore)/html/HTMLMenuElement.idl \
272     $(WebCore)/html/HTMLMetaElement.idl \
273     $(WebCore)/html/HTMLMeterElement.idl \
274     $(WebCore)/html/HTMLModElement.idl \
275     $(WebCore)/html/HTMLOListElement.idl \
276     $(WebCore)/html/HTMLObjectElement.idl \
277     $(WebCore)/html/HTMLOptGroupElement.idl \
278     $(WebCore)/html/HTMLOptionElement.idl \
279     $(WebCore)/html/HTMLOptionsCollection.idl \
280     $(WebCore)/html/HTMLOutputElement.idl \
281     $(WebCore)/html/HTMLParagraphElement.idl \
282     $(WebCore)/html/HTMLParamElement.idl \
283     $(WebCore)/html/HTMLPreElement.idl \
284     $(WebCore)/html/HTMLProgressElement.idl \
285     $(WebCore)/html/HTMLPropertiesCollection.idl \
286     $(WebCore)/html/HTMLQuoteElement.idl \
287     $(WebCore)/html/HTMLScriptElement.idl \
288     $(WebCore)/html/HTMLSelectElement.idl \
289     $(WebCore)/html/HTMLSourceElement.idl \
290     $(WebCore)/html/HTMLSpanElement.idl \
291     $(WebCore)/html/HTMLStyleElement.idl \
292     $(WebCore)/html/HTMLTableCaptionElement.idl \
293     $(WebCore)/html/HTMLTableCellElement.idl \
294     $(WebCore)/html/HTMLTableColElement.idl \
295     $(WebCore)/html/HTMLTableElement.idl \
296     $(WebCore)/html/HTMLTableRowElement.idl \
297     $(WebCore)/html/HTMLTableSectionElement.idl \
298     $(WebCore)/html/HTMLTextAreaElement.idl \
299     $(WebCore)/html/HTMLTitleElement.idl \
300     $(WebCore)/html/HTMLTrackElement.idl \
301     $(WebCore)/html/HTMLUListElement.idl \
302     $(WebCore)/html/HTMLUnknownElement.idl \
303     $(WebCore)/html/HTMLVideoElement.idl \
304     $(WebCore)/html/ImageData.idl \
305     $(WebCore)/html/MediaController.idl \
306     $(WebCore)/html/MediaError.idl \
307     $(WebCore)/html/TextMetrics.idl \
308     $(WebCore)/html/TimeRanges.idl \
309     $(WebCore)/html/ValidityState.idl \
310     $(WebCore)/html/canvas/ArrayBuffer.idl \
311     $(WebCore)/html/canvas/ArrayBufferView.idl \
312     $(WebCore)/html/canvas/CanvasGradient.idl \
313     $(WebCore)/html/canvas/CanvasPattern.idl \
314     $(WebCore)/html/canvas/CanvasRenderingContext.idl \
315     $(WebCore)/html/canvas/CanvasRenderingContext2D.idl \
316     $(WebCore)/html/canvas/DataView.idl \
317     $(WebCore)/html/canvas/EXTTextureFilterAnisotropic.idl \
318     $(WebCore)/html/canvas/Float32Array.idl \
319     $(WebCore)/html/canvas/Float64Array.idl \
320     $(WebCore)/html/canvas/Int16Array.idl \
321     $(WebCore)/html/canvas/Int32Array.idl \
322     $(WebCore)/html/canvas/Int8Array.idl \
323     $(WebCore)/html/canvas/OESStandardDerivatives.idl \
324     $(WebCore)/html/canvas/OESTextureFloat.idl \
325     $(WebCore)/html/canvas/OESVertexArrayObject.idl \
326     $(WebCore)/html/canvas/Uint16Array.idl \
327     $(WebCore)/html/canvas/Uint32Array.idl \
328     $(WebCore)/html/canvas/Uint8Array.idl \
329     $(WebCore)/html/canvas/Uint8ClampedArray.idl \
330     $(WebCore)/html/canvas/WebGLActiveInfo.idl \
331     $(WebCore)/html/canvas/WebGLBuffer.idl \
332     $(WebCore)/html/canvas/WebGLCompressedTextureS3TC.idl \
333     $(WebCore)/html/canvas/WebGLContextAttributes.idl \
334     $(WebCore)/html/canvas/WebGLContextEvent.idl \
335     $(WebCore)/html/canvas/WebGLFramebuffer.idl \
336     $(WebCore)/html/canvas/WebGLLoseContext.idl \
337     $(WebCore)/html/canvas/WebGLProgram.idl \
338     $(WebCore)/html/canvas/WebGLRenderbuffer.idl \
339     $(WebCore)/html/canvas/WebGLRenderingContext.idl \
340     $(WebCore)/html/canvas/WebGLShader.idl \
341     $(WebCore)/html/canvas/WebGLTexture.idl \
342     $(WebCore)/html/canvas/WebGLUniformLocation.idl \
343     $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \
344     $(WebCore)/html/shadow/HTMLContentElement.idl \
345     $(WebCore)/html/shadow/HTMLShadowElement.idl \
346     $(WebCore)/html/track/TextTrack.idl \
347     $(WebCore)/html/track/TextTrackCue.idl \
348     $(WebCore)/html/track/TextTrackCueList.idl \
349     $(WebCore)/html/track/TextTrackList.idl \
350     $(WebCore)/html/track/TrackEvent.idl \
351     $(WebCore)/inspector/InjectedScriptHost.idl \
352     $(WebCore)/inspector/InspectorFrontendHost.idl \
353     $(WebCore)/inspector/ScriptProfile.idl \
354     $(WebCore)/inspector/ScriptProfileNode.idl \
355     $(WebCore)/loader/appcache/DOMApplicationCache.idl \
356     $(WebCore)/notifications/Notification.idl \
357     $(WebCore)/notifications/NotificationCenter.idl \
358     $(WebCore)/page/AbstractView.idl \
359     $(WebCore)/page/BarInfo.idl \
360     $(WebCore)/page/Console.idl \
361     $(WebCore)/page/Coordinates.idl \
362     $(WebCore)/page/Crypto.idl \
363     $(WebCore)/page/DOMSelection.idl \
364     $(WebCore)/page/DOMWindow.idl \
365     $(WebCore)/page/EventSource.idl \
366     $(WebCore)/page/History.idl \
367     $(WebCore)/page/Location.idl \
368     $(WebCore)/page/MemoryInfo.idl \
369     $(WebCore)/page/Navigator.idl \
370     $(WebCore)/page/Performance.idl \
371     $(WebCore)/page/PerformanceNavigation.idl \
372     $(WebCore)/page/PerformanceTiming.idl \
373     $(WebCore)/page/Screen.idl \
374     $(WebCore)/page/SpeechInputEvent.idl \
375     $(WebCore)/page/SpeechInputResult.idl \
376     $(WebCore)/page/SpeechInputResultList.idl \
377     $(WebCore)/page/WebKitAnimation.idl \
378     $(WebCore)/page/WebKitAnimationList.idl \
379     $(WebCore)/page/WebKitPoint.idl \
380     $(WebCore)/page/WorkerNavigator.idl \
381     $(WebCore)/plugins/DOMMimeType.idl \
382     $(WebCore)/plugins/DOMMimeTypeArray.idl \
383     $(WebCore)/plugins/DOMPlugin.idl \
384     $(WebCore)/plugins/DOMPluginArray.idl \
385     $(WebCore)/storage/Storage.idl \
386     $(WebCore)/storage/StorageEvent.idl \
387     $(WebCore)/storage/StorageInfo.idl \
388     $(WebCore)/storage/StorageInfoErrorCallback.idl \
389     $(WebCore)/storage/StorageInfoQuotaCallback.idl \
390     $(WebCore)/storage/StorageInfoUsageCallback.idl \
391     $(WebCore)/svg/ElementTimeControl.idl \
392     $(WebCore)/svg/SVGAElement.idl \
393     $(WebCore)/svg/SVGAltGlyphDefElement.idl \
394     $(WebCore)/svg/SVGAltGlyphElement.idl \
395     $(WebCore)/svg/SVGAltGlyphItemElement.idl \
396     $(WebCore)/svg/SVGAngle.idl \
397     $(WebCore)/svg/SVGAnimateColorElement.idl \
398     $(WebCore)/svg/SVGAnimateElement.idl \
399     $(WebCore)/svg/SVGAnimateMotionElement.idl \
400     $(WebCore)/svg/SVGAnimateTransformElement.idl \
401     $(WebCore)/svg/SVGAnimatedAngle.idl \
402     $(WebCore)/svg/SVGAnimatedBoolean.idl \
403     $(WebCore)/svg/SVGAnimatedEnumeration.idl \
404     $(WebCore)/svg/SVGAnimatedInteger.idl \
405     $(WebCore)/svg/SVGAnimatedLength.idl \
406     $(WebCore)/svg/SVGAnimatedLengthList.idl \
407     $(WebCore)/svg/SVGAnimatedNumber.idl \
408     $(WebCore)/svg/SVGAnimatedNumberList.idl \
409     $(WebCore)/svg/SVGAnimatedPreserveAspectRatio.idl \
410     $(WebCore)/svg/SVGAnimatedRect.idl \
411     $(WebCore)/svg/SVGAnimatedString.idl \
412     $(WebCore)/svg/SVGAnimatedTransformList.idl \
413     $(WebCore)/svg/SVGAnimationElement.idl \
414     $(WebCore)/svg/SVGCircleElement.idl \
415     $(WebCore)/svg/SVGClipPathElement.idl \
416     $(WebCore)/svg/SVGColor.idl \
417     $(WebCore)/svg/SVGComponentTransferFunctionElement.idl \
418     $(WebCore)/svg/SVGCursorElement.idl \
419     $(WebCore)/svg/SVGDefsElement.idl \
420     $(WebCore)/svg/SVGDescElement.idl \
421     $(WebCore)/svg/SVGDocument.idl \
422     $(WebCore)/svg/SVGElement.idl \
423     $(WebCore)/svg/SVGElementInstance.idl \
424     $(WebCore)/svg/SVGElementInstanceList.idl \
425     $(WebCore)/svg/SVGEllipseElement.idl \
426     $(WebCore)/svg/SVGException.idl \
427     $(WebCore)/svg/SVGExternalResourcesRequired.idl \
428     $(WebCore)/svg/SVGFEBlendElement.idl \
429     $(WebCore)/svg/SVGFEColorMatrixElement.idl \
430     $(WebCore)/svg/SVGFEComponentTransferElement.idl \
431     $(WebCore)/svg/SVGFECompositeElement.idl \
432     $(WebCore)/svg/SVGFEConvolveMatrixElement.idl \
433     $(WebCore)/svg/SVGFEDiffuseLightingElement.idl \
434     $(WebCore)/svg/SVGFEDisplacementMapElement.idl \
435     $(WebCore)/svg/SVGFEDistantLightElement.idl \
436     $(WebCore)/svg/SVGFEDropShadowElement.idl \
437     $(WebCore)/svg/SVGFEFloodElement.idl \
438     $(WebCore)/svg/SVGFEFuncAElement.idl \
439     $(WebCore)/svg/SVGFEFuncBElement.idl \
440     $(WebCore)/svg/SVGFEFuncGElement.idl \
441     $(WebCore)/svg/SVGFEFuncRElement.idl \
442     $(WebCore)/svg/SVGFEGaussianBlurElement.idl \
443     $(WebCore)/svg/SVGFEImageElement.idl \
444     $(WebCore)/svg/SVGFEMergeElement.idl \
445     $(WebCore)/svg/SVGFEMergeNodeElement.idl \
446     $(WebCore)/svg/SVGFEMorphologyElement.idl \
447     $(WebCore)/svg/SVGFEOffsetElement.idl \
448     $(WebCore)/svg/SVGFEPointLightElement.idl \
449     $(WebCore)/svg/SVGFESpecularLightingElement.idl \
450     $(WebCore)/svg/SVGFESpotLightElement.idl \
451     $(WebCore)/svg/SVGFETileElement.idl \
452     $(WebCore)/svg/SVGFETurbulenceElement.idl \
453     $(WebCore)/svg/SVGFilterElement.idl \
454     $(WebCore)/svg/SVGFilterPrimitiveStandardAttributes.idl \
455     $(WebCore)/svg/SVGFitToViewBox.idl \
456     $(WebCore)/svg/SVGFontElement.idl \
457     $(WebCore)/svg/SVGFontFaceElement.idl \
458     $(WebCore)/svg/SVGFontFaceFormatElement.idl \
459     $(WebCore)/svg/SVGFontFaceNameElement.idl \
460     $(WebCore)/svg/SVGFontFaceSrcElement.idl \
461     $(WebCore)/svg/SVGFontFaceUriElement.idl \
462     $(WebCore)/svg/SVGForeignObjectElement.idl \
463     $(WebCore)/svg/SVGGElement.idl \
464     $(WebCore)/svg/SVGGlyphElement.idl \
465     $(WebCore)/svg/SVGGlyphRefElement.idl \
466     $(WebCore)/svg/SVGGradientElement.idl \
467     $(WebCore)/svg/SVGHKernElement.idl \
468     $(WebCore)/svg/SVGImageElement.idl \
469     $(WebCore)/svg/SVGLangSpace.idl \
470     $(WebCore)/svg/SVGLength.idl \
471     $(WebCore)/svg/SVGLengthList.idl \
472     $(WebCore)/svg/SVGLineElement.idl \
473     $(WebCore)/svg/SVGLinearGradientElement.idl \
474     $(WebCore)/svg/SVGLocatable.idl \
475     $(WebCore)/svg/SVGMPathElement.idl \
476     $(WebCore)/svg/SVGMarkerElement.idl \
477     $(WebCore)/svg/SVGMaskElement.idl \
478     $(WebCore)/svg/SVGMatrix.idl \
479     $(WebCore)/svg/SVGMetadataElement.idl \
480     $(WebCore)/svg/SVGMissingGlyphElement.idl \
481     $(WebCore)/svg/SVGNumber.idl \
482     $(WebCore)/svg/SVGNumberList.idl \
483     $(WebCore)/svg/SVGPaint.idl \
484     $(WebCore)/svg/SVGPathElement.idl \
485     $(WebCore)/svg/SVGPathSeg.idl \
486     $(WebCore)/svg/SVGPathSegArcAbs.idl \
487     $(WebCore)/svg/SVGPathSegArcRel.idl \
488     $(WebCore)/svg/SVGPathSegClosePath.idl \
489     $(WebCore)/svg/SVGPathSegCurvetoCubicAbs.idl \
490     $(WebCore)/svg/SVGPathSegCurvetoCubicRel.idl \
491     $(WebCore)/svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
492     $(WebCore)/svg/SVGPathSegCurvetoCubicSmoothRel.idl \
493     $(WebCore)/svg/SVGPathSegCurvetoQuadraticAbs.idl \
494     $(WebCore)/svg/SVGPathSegCurvetoQuadraticRel.idl \
495     $(WebCore)/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
496     $(WebCore)/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
497     $(WebCore)/svg/SVGPathSegLinetoAbs.idl \
498     $(WebCore)/svg/SVGPathSegLinetoHorizontalAbs.idl \
499     $(WebCore)/svg/SVGPathSegLinetoHorizontalRel.idl \
500     $(WebCore)/svg/SVGPathSegLinetoRel.idl \
501     $(WebCore)/svg/SVGPathSegLinetoVerticalAbs.idl \
502     $(WebCore)/svg/SVGPathSegLinetoVerticalRel.idl \
503     $(WebCore)/svg/SVGPathSegList.idl \
504     $(WebCore)/svg/SVGPathSegMovetoAbs.idl \
505     $(WebCore)/svg/SVGPathSegMovetoRel.idl \
506     $(WebCore)/svg/SVGPatternElement.idl \
507     $(WebCore)/svg/SVGPoint.idl \
508     $(WebCore)/svg/SVGPointList.idl \
509     $(WebCore)/svg/SVGPolygonElement.idl \
510     $(WebCore)/svg/SVGPolylineElement.idl \
511     $(WebCore)/svg/SVGPreserveAspectRatio.idl \
512     $(WebCore)/svg/SVGRadialGradientElement.idl \
513     $(WebCore)/svg/SVGRect.idl \
514     $(WebCore)/svg/SVGRectElement.idl \
515     $(WebCore)/svg/SVGRenderingIntent.idl \
516     $(WebCore)/svg/SVGSVGElement.idl \
517     $(WebCore)/svg/SVGScriptElement.idl \
518     $(WebCore)/svg/SVGSetElement.idl \
519     $(WebCore)/svg/SVGStopElement.idl \
520     $(WebCore)/svg/SVGStringList.idl \
521     $(WebCore)/svg/SVGStylable.idl \
522     $(WebCore)/svg/SVGStyleElement.idl \
523     $(WebCore)/svg/SVGSwitchElement.idl \
524     $(WebCore)/svg/SVGSymbolElement.idl \
525     $(WebCore)/svg/SVGTRefElement.idl \
526     $(WebCore)/svg/SVGTSpanElement.idl \
527     $(WebCore)/svg/SVGTests.idl \
528     $(WebCore)/svg/SVGTextContentElement.idl \
529     $(WebCore)/svg/SVGTextElement.idl \
530     $(WebCore)/svg/SVGTextPathElement.idl \
531     $(WebCore)/svg/SVGTextPositioningElement.idl \
532     $(WebCore)/svg/SVGTitleElement.idl \
533     $(WebCore)/svg/SVGTransform.idl \
534     $(WebCore)/svg/SVGTransformList.idl \
535     $(WebCore)/svg/SVGTransformable.idl \
536     $(WebCore)/svg/SVGURIReference.idl \
537     $(WebCore)/svg/SVGUnitTypes.idl \
538     $(WebCore)/svg/SVGUseElement.idl \
539     $(WebCore)/svg/SVGVKernElement.idl \
540     $(WebCore)/svg/SVGViewElement.idl \
541     $(WebCore)/svg/SVGZoomAndPan.idl \
542     $(WebCore)/svg/SVGZoomEvent.idl \
543     $(WebCore)/testing/Internals.idl \
544     $(WebCore)/testing/InternalSettings.idl \
545     $(WebCore)/webaudio/AudioBuffer.idl \
546     $(WebCore)/webaudio/AudioBufferCallback.idl \
547     $(WebCore)/webaudio/AudioBufferSourceNode.idl \
548     $(WebCore)/webaudio/AudioChannelMerger.idl \
549     $(WebCore)/webaudio/AudioChannelSplitter.idl \
550     $(WebCore)/webaudio/AudioContext.idl \
551     $(WebCore)/webaudio/AudioDestinationNode.idl \
552     $(WebCore)/webaudio/AudioGain.idl \
553     $(WebCore)/webaudio/AudioGainNode.idl \
554     $(WebCore)/webaudio/AudioListener.idl \
555     $(WebCore)/webaudio/AudioNode.idl \
556     $(WebCore)/webaudio/AudioPannerNode.idl \
557     $(WebCore)/webaudio/AudioParam.idl \
558     $(WebCore)/webaudio/AudioProcessingEvent.idl \
559     $(WebCore)/webaudio/AudioSourceNode.idl \
560     $(WebCore)/webaudio/BiquadFilterNode.idl \
561     $(WebCore)/webaudio/ConvolverNode.idl \
562     $(WebCore)/webaudio/DOMWindowWebAudio.idl \
563     $(WebCore)/webaudio/DelayNode.idl \
564     $(WebCore)/webaudio/DynamicsCompressorNode.idl \
565     $(WebCore)/webaudio/HighPass2FilterNode.idl \
566     $(WebCore)/webaudio/JavaScriptAudioNode.idl \
567     $(WebCore)/webaudio/LowPass2FilterNode.idl \
568     $(WebCore)/webaudio/MediaElementAudioSourceNode.idl \
569     $(WebCore)/webaudio/OfflineAudioCompletionEvent.idl \
570     $(WebCore)/webaudio/RealtimeAnalyserNode.idl \
571     $(WebCore)/webaudio/WaveShaperNode.idl \
572     $(WebCore)/workers/AbstractWorker.idl \
573     $(WebCore)/workers/DedicatedWorkerContext.idl \
574     $(WebCore)/workers/SharedWorker.idl \
575     $(WebCore)/workers/SharedWorkerContext.idl \
576     $(WebCore)/workers/Worker.idl \
577     $(WebCore)/workers/WorkerContext.idl \
578     $(WebCore)/workers/WorkerLocation.idl \
579     $(WebCore)/xml/DOMParser.idl \
580     $(WebCore)/xml/XMLHttpRequest.idl \
581     $(WebCore)/xml/XMLHttpRequestException.idl \
582     $(WebCore)/xml/XMLHttpRequestProgressEvent.idl \
583     $(WebCore)/xml/XMLHttpRequestUpload.idl \
584     $(WebCore)/xml/XMLSerializer.idl \
585     $(WebCore)/xml/XPathEvaluator.idl \
586     $(WebCore)/xml/XPathException.idl \
587     $(WebCore)/xml/XPathExpression.idl \
588     $(WebCore)/xml/XPathNSResolver.idl \
589     $(WebCore)/xml/XPathResult.idl \
590     $(WebCore)/xml/XSLTProcessor.idl \
591 #
592
593 .PHONY : all
594
595 DOM_CLASSES=$(basename $(notdir $(BINDING_IDLS)))
596
597 JS_DOM_HEADERS=$(filter-out JSMediaQueryListListener.h JSEventListener.h JSEventTarget.h, $(DOM_CLASSES:%=JS%.h))
598
599 WEB_DOM_HEADERS :=
600 ifeq ($(findstring BUILDING_WX,$(FEATURE_DEFINES)), BUILDING_WX)
601 WEB_DOM_HEADERS := $(filter-out WebDOMXSLTProcessor.h WebDOMEventTarget.h, $(DOM_CLASSES:%=WebDOM%.h))
602 endif # BUILDING_WX
603
604 all : \
605     $(JS_DOM_HEADERS) \
606     $(WEB_DOM_HEADERS) \
607     \
608     JSJavaScriptCallFrame.h \
609     \
610     CSSGrammar.cpp \
611     CSSPropertyNames.h \
612     CSSValueKeywords.h \
613     ColorData.cpp \
614     EventFactory.cpp \
615     EventTargetInterfaces.h \
616     ExceptionCodeDescription.cpp \
617     HTMLElementFactory.cpp \
618     HTMLEntityTable.cpp \
619     HTMLNames.cpp \
620     JSSVGElementWrapperFactory.cpp \
621     SVGElementFactory.cpp \
622     SVGNames.cpp \
623     UserAgentStyleSheets.h \
624     WebKitFontFamilyNames.cpp \
625     WebKitFontFamilyNames.h \
626     XLinkNames.cpp \
627     XMLNSNames.cpp \
628     XMLNames.cpp \
629     MathMLElementFactory.cpp \
630     MathMLNames.cpp \
631     XPathGrammar.cpp \
632 #
633
634 # --------
635
636 ADDITIONAL_IDL_DEFINES :=
637
638 ifeq ($(OS),MACOS)
639
640 FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));')
641 HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));')
642
643 ifeq ($(shell $(CC) -x c++ -E -P -dM $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_DASHBOARD_SUPPORT | cut -d' ' -f3), 1)
644     ENABLE_DASHBOARD_SUPPORT = 1
645 else
646     ENABLE_DASHBOARD_SUPPORT = 0
647 endif
648
649 ifeq ($(shell $(CC) -x c++ -E -P -dM $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_ORIENTATION_EVENTS | cut -d' ' -f3), 1)
650     ENABLE_ORIENTATION_EVENTS = 1
651 else
652     ENABLE_ORIENTATION_EVENTS = 0
653 endif
654
655 else
656
657 ifndef ENABLE_DASHBOARD_SUPPORT
658     ENABLE_DASHBOARD_SUPPORT = 0
659 endif
660
661 ifndef ENABLE_ORIENTATION_EVENTS
662     ENABLE_ORIENTATION_EVENTS = 0
663 endif
664
665 endif # MACOS
666
667 ifeq ($(ENABLE_ORIENTATION_EVENTS), 1)
668     ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) ENABLE_ORIENTATION_EVENTS
669 endif
670
671 # --------
672
673 # CSS property names and value keywords
674
675 WEBCORE_CSS_PROPERTY_NAMES := $(WebCore)/css/CSSPropertyNames.in
676 WEBCORE_CSS_VALUE_KEYWORDS := $(WebCore)/css/CSSValueKeywords.in
677
678 ifeq ($(findstring ENABLE_SVG,$(FEATURE_DEFINES)), ENABLE_SVG)
679     WEBCORE_CSS_PROPERTY_NAMES := $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/SVGCSSPropertyNames.in
680     WEBCORE_CSS_VALUE_KEYWORDS := $(WEBCORE_CSS_VALUE_KEYWORDS) $(WebCore)/css/SVGCSSValueKeywords.in
681 endif
682
683 CSSPropertyNames.h : $(WEBCORE_CSS_PROPERTY_NAMES) css/makeprop.pl
684         cat $(WEBCORE_CSS_PROPERTY_NAMES) > CSSPropertyNames.in
685         perl -I$(WebCore)/bindings/scripts "$(WebCore)/css/makeprop.pl" --defines "$(FEATURE_DEFINES)"
686
687 CSSValueKeywords.h : $(WEBCORE_CSS_VALUE_KEYWORDS) css/makevalues.pl
688         cat $(WEBCORE_CSS_VALUE_KEYWORDS) > CSSValueKeywords.in
689         perl -I$(WebCore)/bindings/scripts "$(WebCore)/css/makevalues.pl" --defines "$(FEATURE_DEFINES)"
690
691 # --------
692
693 # XMLViewer CSS
694
695 all : XMLViewerCSS.h
696
697 XMLViewerCSS.h : xml/XMLViewer.css
698         perl $(WebCore)/inspector/xxd.pl XMLViewer_css $(WebCore)/xml/XMLViewer.css XMLViewerCSS.h
699
700 # --------
701
702 # XMLViewer JS
703
704 all : XMLViewerJS.h
705
706 XMLViewerJS.h : xml/XMLViewer.js
707         perl $(WebCore)/inspector/xxd.pl XMLViewer_js $(WebCore)/xml/XMLViewer.js XMLViewerJS.h
708
709 # --------
710
711 # HTML entity names
712
713 HTMLEntityTable.cpp : html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table
714         python $(WebCore)/html/parser/create-html-entity-table -o HTMLEntityTable.cpp $(WebCore)/html/parser/HTMLEntityNames.in
715
716 # --------
717
718 # color names
719
720 ColorData.cpp : platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
721         perl $(WebCore)/make-hash-tools.pl . $(WebCore)/platform/ColorData.gperf
722
723 # --------
724
725 # CSS grammar
726 # NOTE: Older versions of bison do not inject an inclusion guard, so we add one.
727
728 CSSGrammar.cpp : css/CSSGrammar.y
729         bison -d -p cssyy $< -o $@
730         touch CSSGrammar.cpp.h
731         touch CSSGrammar.hpp
732         echo '#ifndef CSSGrammar_h' > CSSGrammar.h
733         echo '#define CSSGrammar_h' >> CSSGrammar.h
734         cat CSSGrammar.cpp.h CSSGrammar.hpp >> CSSGrammar.h
735         echo '#endif' >> CSSGrammar.h
736         rm -f CSSGrammar.cpp.h CSSGrammar.hpp
737
738 # --------
739
740 # XPath grammar
741 # NOTE: Older versions of bison do not inject an inclusion guard, so we add one.
742
743 XPathGrammar.cpp : xml/XPathGrammar.y $(PROJECT_FILE)
744         bison -d -p xpathyy $< -o $@
745         touch XPathGrammar.cpp.h
746         touch XPathGrammar.hpp
747         echo '#ifndef XPathGrammar_h' > XPathGrammar.h
748         echo '#define XPathGrammar_h' >> XPathGrammar.h
749         cat XPathGrammar.cpp.h XPathGrammar.hpp >> XPathGrammar.h
750         echo '#endif' >> XPathGrammar.h
751         rm -f XPathGrammar.cpp.h XPathGrammar.hpp
752
753 # --------
754
755 # user agent style sheets
756
757 USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/view-source.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css 
758
759 ifeq ($(findstring ENABLE_SVG,$(FEATURE_DEFINES)), ENABLE_SVG)
760     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css 
761 endif
762
763 ifeq ($(findstring ENABLE_MATHML,$(FEATURE_DEFINES)), ENABLE_MATHML)
764     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/mathml.css
765 endif
766
767 ifeq ($(findstring ENABLE_VIDEO,$(FEATURE_DEFINES)), ENABLE_VIDEO)
768     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/mediaControls.css
769     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/mediaControlsQuickTime.css
770 endif
771
772 ifeq ($(findstring ENABLE_FULLSCREEN_API,$(FEATURE_DEFINES)), ENABLE_FULLSCREEN_API)
773     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/fullscreen.css $(WebCore)/css/fullscreenQuickTime.css
774 endif
775
776 UserAgentStyleSheets.h : css/make-css-file-arrays.pl bindings/scripts/preprocessor.pm $(USER_AGENT_STYLE_SHEETS)
777         perl -I$(WebCore)/bindings/scripts $< --defines "$(FEATURE_DEFINES)" $@ UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
778
779 # --------
780
781 WebKitFontFamilyNames.cpp WebKitFontFamilyNames.h : dom/make_names.pl css/WebKitFontFamilyNames.in
782         perl -I $(WebCore)/bindings/scripts $< --fonts $(WebCore)/css/WebKitFontFamilyNames.in
783
784 # HTML tag and attribute names
785
786 ifeq ($(findstring ENABLE_DATALIST,$(FEATURE_DEFINES)), ENABLE_DATALIST)
787     HTML_FLAGS := $(HTML_FLAGS) ENABLE_DATALIST=1
788 endif
789
790 ifeq ($(findstring ENABLE_DETAILS,$(FEATURE_DEFINES)), ENABLE_DETAILS)
791     HTML_FLAGS := $(HTML_FLAGS) ENABLE_DETAILS=1
792 endif
793
794 ifeq ($(findstring ENABLE_METER_TAG,$(FEATURE_DEFINES)), ENABLE_METER_TAG)
795     HTML_FLAGS := $(HTML_FLAGS) ENABLE_METER_TAG=1
796 endif
797
798 ifeq ($(findstring ENABLE_MICRODATA,$(FEATURE_DEFINES)), ENABLE_MICRODATA)
799     HTML_FLAGS := $(HTML_FLAGS) ENABLE_MICRODATA=1
800 endif
801
802 ifeq ($(findstring ENABLE_PROGRESS_TAG,$(FEATURE_DEFINES)), ENABLE_PROGRESS_TAG)
803     HTML_FLAGS := $(HTML_FLAGS) ENABLE_PROGRESS_TAG=1
804 endif
805
806 ifeq ($(findstring ENABLE_VIDEO,$(FEATURE_DEFINES)), ENABLE_VIDEO)
807     HTML_FLAGS := $(HTML_FLAGS) ENABLE_VIDEO=1
808 endif
809
810 ifeq ($(findstring ENABLE_VIDEO_TRACK,$(FEATURE_DEFINES)), ENABLE_VIDEO_TRACK)
811     HTML_FLAGS := $(HTML_FLAGS) ENABLE_VIDEO_TRACK=0
812 endif
813
814 ifeq ($(findstring ENABLE_SHADOW_DOM,$(FEATURE_DEFINES)), ENABLE_SHADOW_DOM)
815     HTML_FLAGS := $(HTML_FLAGS) ENABLE_SHADOW_DOM=1
816 endif
817
818 ifdef HTML_FLAGS
819
820 HTMLElementFactory.cpp HTMLNames.cpp : dom/make_names.pl html/HTMLTagNames.in html/HTMLAttributeNames.in
821         perl -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory --extraDefines "$(HTML_FLAGS)"
822
823 else
824
825 HTMLElementFactory.cpp HTMLNames.cpp : dom/make_names.pl html/HTMLTagNames.in html/HTMLAttributeNames.in
826         perl -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory
827
828 endif
829
830 JSHTMLElementWrapperFactory.cpp : HTMLNames.cpp
831
832 XMLNSNames.cpp : dom/make_names.pl xml/xmlnsattrs.in
833         perl -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlnsattrs.in
834
835 XMLNames.cpp : dom/make_names.pl xml/xmlattrs.in
836         perl -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlattrs.in
837
838 # --------
839
840 # SVG tag and attribute names, and element factory
841
842 ifeq ($(findstring ENABLE_SVG_FONTS,$(FEATURE_DEFINES)), ENABLE_SVG_FONTS)
843     SVG_FLAGS := $(SVG_FLAGS) ENABLE_SVG_FONTS=1
844 endif
845
846 ifeq ($(findstring ENABLE_FILTERS,$(FEATURE_DEFINES)), ENABLE_FILTERS)
847     SVG_FLAGS := $(SVG_FLAGS) ENABLE_FILTERS=1
848 endif
849
850 # SVG tag and attribute names (need to pass an extra flag if svg experimental features are enabled)
851
852 ifdef SVG_FLAGS
853
854 SVGElementFactory.cpp SVGNames.cpp : dom/make_names.pl svg/svgtags.in svg/svgattrs.in
855         perl -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory
856 else
857
858 SVGElementFactory.cpp SVGNames.cpp : dom/make_names.pl svg/svgtags.in svg/svgattrs.in
859         perl -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --factory --wrapperFactory
860
861 endif
862
863 JSSVGElementWrapperFactory.cpp : SVGNames.cpp
864
865 XLinkNames.cpp : dom/make_names.pl svg/xlinkattrs.in
866         perl -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in
867
868 # --------
869  
870 # Register event constructors and targets
871
872 EventFactory.cpp EventHeaders.h EventInterfaces.h : dom/make_event_factory.pl dom/EventNames.in
873         perl -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventNames.in
874
875 EventTargetHeaders.h EventTargetInterfaces.h : dom/make_event_factory.pl dom/EventTargetFactory.in
876         perl -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventTargetFactory.in
877
878 ExceptionCodeDescription.cpp ExceptionCodeDescription.h ExceptionHeaders.h ExceptionInterfaces.h : dom/make_dom_exceptions.pl dom/DOMExceptions.in
879         perl -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/DOMExceptions.in
880
881 # --------
882  
883 # MathML tag and attribute names, and element factory
884
885 MathMLElementFactory.cpp MathMLNames.cpp : dom/make_names.pl mathml/mathtags.in mathml/mathattrs.in
886         perl -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/mathml/mathtags.in --attrs $(WebCore)/mathml/mathattrs.in --factory --wrapperFactory
887
888 # --------
889
890 # Common generator things
891
892 GENERATE_SCRIPTS = \
893     bindings/scripts/CodeGenerator.pm \
894     bindings/scripts/IDLParser.pm \
895     bindings/scripts/IDLStructure.pm \
896     bindings/scripts/generate-bindings.pl \
897     bindings/scripts/preprocessor.pm
898
899 PREPROCESS_IDLS_SCRIPTS = \
900     bindings/scripts/IDLParser.pm \
901     bindings/scripts/preprocess-idls.pl
902
903 generator_script = perl $(addprefix -I $(WebCore)/, $(sort $(dir $(1)))) $(WebCore)/bindings/scripts/generate-bindings.pl
904
905 preprocess_idls_script = perl $(addprefix -I $(WebCore)/, $(sort $(dir $(1)))) $(WebCore)/bindings/scripts/preprocess-idls.pl
906
907 # JS bindings generator
908
909 IDL_INCLUDES = \
910     $(WebCore)/dom \
911     $(WebCore)/fileapi \
912     $(WebCore)/html \
913     $(WebCore)/css \
914     $(WebCore)/page \
915     $(WebCore)/notifications \
916     $(WebCore)/xml \
917     $(WebCore)/svg
918
919 IDL_COMMON_ARGS = $(IDL_INCLUDES:%=--include %) --write-dependencies --outputDir .
920
921 JS_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorJS.pm
922
923 SUPPLEMENTAL_DEPENDENCY_FILE = ./supplemental_dependency.tmp
924 IDL_FILES_TMP = ./idl_files.tmp
925 ADDITIONAL_IDLS = $(WebCore)/inspector/JavaScriptCallFrame.idl
926 IDL_ATTRIBUTES_FILE = $(WebCore)/bindings/scripts/IDLAttributes.txt
927
928 # The following two lines get a space character stored in a variable.
929 # See <http://blog.jgc.org/2007/06/escaping-comma-and-space-in-gnu-make.html>.
930 space :=
931 space +=
932
933 $(SUPPLEMENTAL_DEPENDENCY_FILE) : $(PREPROCESS_IDLS_SCRIPTS) $(BINDING_IDLS) $(ADDITIONAL_IDLS) $(IDL_ATTRIBUTES_FILE)
934         printf "$(subst $(space),,$(patsubst %,%\n,$(BINDING_IDLS) $(ADDITIONAL_IDLS)))" > $(IDL_FILES_TMP)
935         $(call preprocess_idls_script, $(PREPROCESS_IDLS_SCRIPTS)) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --idlFilesList $(IDL_FILES_TMP) --supplementalDependencyFile $@ --idlAttributesFile $(IDL_ATTRIBUTES_FILE)
936         rm -f $(IDL_FILES_TMP)
937
938 JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) $(SUPPLEMENTAL_DEPENDENCY_FILE)
939         $(call generator_script, $(JS_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
940
941
942 # Inspector interfaces generator
943
944 all : InspectorProtocolVersion.h
945
946 InspectorProtocolVersion.h : Inspector.json inspector/generate-inspector-protocol-version
947         python $(WebCore)/inspector/generate-inspector-protocol-version -o InspectorProtocolVersion.h $(WebCore)/inspector/Inspector.json
948
949 all : InspectorFrontend.h
950
951 INSPECTOR_GENERATOR_SCRIPTS = inspector/CodeGeneratorInspector.py
952
953 InspectorFrontend.h : Inspector.json $(INSPECTOR_GENERATOR_SCRIPTS)
954         python $(WebCore)/inspector/CodeGeneratorInspector.py $(WebCore)/inspector/Inspector.json --output_h_dir . --output_cpp_dir .
955
956 all : InjectedScriptSource.h
957
958 InjectedScriptSource.h : InjectedScriptSource.js
959         perl $(WebCore)/inspector/xxd.pl InjectedScriptSource_js $(WebCore)/inspector/InjectedScriptSource.js InjectedScriptSource.h
960
961 -include $(JS_DOM_HEADERS:.h=.dep)
962
963 ifeq ($(findstring BUILDING_WX,$(FEATURE_DEFINES)), BUILDING_WX)
964 CPP_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorCPP.pm
965
966 WebDOM%.h : %.idl $(CPP_BINDINGS_SCRIPTS) $(SUPPLEMENTAL_DEPENDENCY_FILE)
967         $(call generator_script, $(CPP_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_CPP" --generator CPP --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
968 endif # BUILDING_WX
969
970 # ------------------------
971
972 # Mac-specific rules
973
974 ifeq ($(OS),MACOS)
975
976 OBJC_DOM_HEADERS=$(filter-out DOMDOMWindow.h DOMDOMMimeType.h DOMDOMPlugin.h,$(DOM_CLASSES:%=DOM%.h))
977
978 all : $(OBJC_DOM_HEADERS)
979
980 all : CharsetData.cpp
981
982 # --------
983
984 # character set name table
985
986 CharsetData.cpp : platform/text/mac/make-charset-table.pl platform/text/mac/character-sets.txt platform/text/mac/mac-encodings.txt
987         perl $^ kTextEncoding > $@
988
989 # --------
990
991 ifneq ($(ACTION),installhdrs)
992
993 all : WebCore.exp WebCore.LP64.exp
994
995 WebCore.exp : $(BUILT_PRODUCTS_DIR)/WebCoreExportFileGenerator
996         $^ > $@
997
998 # Switch NSRect, NSSize and NSPoint with their CG counterparts for the 64-bit exports file.
999 WebCore.LP64.exp : WebCore.exp
1000         cat $^ | sed -e s/7_NSRect/6CGRect/ -e s/7_NSSize/6CGSize/ -e s/8_NSPoint/7CGPoint/ > $@
1001
1002 endif # installhdrs
1003
1004 # --------
1005
1006 # Objective-C bindings
1007
1008 DOM_BINDINGS_SCRIPTS = $(GENERATE_BINDING_SCRIPTS) bindings/scripts/CodeGeneratorObjC.pm
1009 DOM%.h : %.idl $(DOM_BINDINGS_SCRIPTS) $(SUPPLEMENTAL_DEPENDENCY_FILE) bindings/objc/PublicDOMInterfaces.h
1010         $(call generator_script, $(DOM_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
1011
1012 -include $(OBJC_DOM_HEADERS:.h=.dep)
1013
1014 # --------
1015
1016 endif # MACOS
1017
1018 # ------------------------
1019
1020 # Header detection
1021
1022 ifeq ($(OS),Windows_NT)
1023
1024 all : WebCoreHeaderDetection.h
1025
1026 WebCoreHeaderDetection.h : DerivedSources.make
1027         if [ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFBase.h" ]; then echo "#define HAVE_AVCF 1" > $@; else echo > $@; fi
1028
1029 endif # Windows_NT