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