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