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