Implement <attachment> element appearance on Mac
[WebKit-https.git] / Source / WebCore / DerivedSources.make
1 # Copyright (C) 2006-2008, 2012, 2014, 2015 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 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/airplay \
32     $(WebCore)/Modules/encryptedmedia \
33     $(WebCore)/Modules/gamepad \
34     $(WebCore)/Modules/geolocation \
35     $(WebCore)/Modules/indexeddb \
36     $(WebCore)/Modules/indieui \
37     $(WebCore)/Modules/mediacontrols \
38     $(WebCore)/Modules/mediasource \
39     $(WebCore)/Modules/mediastream \
40     $(WebCore)/Modules/notifications \
41     $(WebCore)/Modules/plugins \
42     $(WebCore)/Modules/quota \
43     $(WebCore)/Modules/speech \
44     $(WebCore)/Modules/streams \
45     $(WebCore)/Modules/webaudio \
46     $(WebCore)/Modules/webdatabase \
47     $(WebCore)/Modules/websockets \
48     $(WebCore)/bindings/generic \
49     $(WebCore)/bindings/js \
50     $(WebCore)/bindings/objc \
51     $(WebCore)/crypto \
52     $(WebCore)/css \
53     $(WebCore)/dom \
54     $(WebCore)/editing \
55     $(WebCore)/fileapi \
56     $(WebCore)/html \
57     $(WebCore)/html/canvas \
58     $(WebCore)/html/shadow \
59     $(WebCore)/html/track \
60     $(WebCore)/inspector \
61     $(WebCore)/loader/appcache \
62     $(WebCore)/page \
63     $(WebCore)/platform/network \
64     $(WebCore)/plugins \
65     $(WebCore)/storage \
66     $(WebCore)/xml \
67     $(WebCore)/workers \
68     $(WebCore)/svg \
69     $(WebCore)/testing \
70     $(WebCore)/websockets \
71 #
72
73 NON_SVG_BINDING_IDLS = \
74     $(WebCore)/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl \
75     $(WebCore)/Modules/encryptedmedia/MediaKeyMessageEvent.idl \
76     $(WebCore)/Modules/encryptedmedia/MediaKeyNeededEvent.idl \
77     $(WebCore)/Modules/encryptedmedia/MediaKeySession.idl \
78     $(WebCore)/Modules/encryptedmedia/MediaKeys.idl \
79     $(WebCore)/Modules/gamepad/Gamepad.idl \
80     $(WebCore)/Modules/gamepad/GamepadButton.idl \
81     $(WebCore)/Modules/gamepad/GamepadEvent.idl \
82     $(WebCore)/Modules/gamepad/NavigatorGamepad.idl \
83     $(WebCore)/Modules/geolocation/Coordinates.idl \
84     $(WebCore)/Modules/geolocation/Geolocation.idl \
85     $(WebCore)/Modules/geolocation/Geoposition.idl \
86     $(WebCore)/Modules/geolocation/NavigatorGeolocation.idl \
87     $(WebCore)/Modules/geolocation/PositionCallback.idl \
88     $(WebCore)/Modules/geolocation/PositionError.idl \
89     $(WebCore)/Modules/geolocation/PositionErrorCallback.idl \
90     $(WebCore)/Modules/indexeddb/DOMWindowIndexedDatabase.idl \
91     $(WebCore)/Modules/indexeddb/IDBAny.idl \
92     $(WebCore)/Modules/indexeddb/IDBCursor.idl \
93     $(WebCore)/Modules/indexeddb/IDBCursorWithValue.idl \
94     $(WebCore)/Modules/indexeddb/IDBDatabase.idl \
95     $(WebCore)/Modules/indexeddb/IDBFactory.idl \
96     $(WebCore)/Modules/indexeddb/IDBIndex.idl \
97     $(WebCore)/Modules/indexeddb/IDBKeyRange.idl \
98     $(WebCore)/Modules/indexeddb/IDBObjectStore.idl \
99     $(WebCore)/Modules/indexeddb/IDBOpenDBRequest.idl \
100     $(WebCore)/Modules/indexeddb/IDBRequest.idl \
101     $(WebCore)/Modules/indexeddb/IDBTransaction.idl \
102     $(WebCore)/Modules/indexeddb/IDBVersionChangeEvent.idl \
103     $(WebCore)/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl \
104     $(WebCore)/Modules/indieui/UIRequestEvent.idl \
105     $(WebCore)/Modules/mediacontrols/MediaControlsHost.idl \
106         $(WebCore)/Modules/mediasource/DOMURLMediaSource.idl \
107         $(WebCore)/Modules/mediasource/AudioTrackMediaSource.idl \
108         $(WebCore)/Modules/mediasource/MediaSource.idl \
109         $(WebCore)/Modules/mediasource/SourceBuffer.idl \
110         $(WebCore)/Modules/mediasource/SourceBufferList.idl \
111     $(WebCore)/Modules/mediasource/SourceBuffer.idl \
112     $(WebCore)/Modules/mediasource/SourceBufferList.idl \
113         $(WebCore)/Modules/mediasource/TextTrackMediaSource.idl \
114         $(WebCore)/Modules/mediasource/VideoTrackMediaSource.idl \
115         $(WebCore)/Modules/mediasource/VideoPlaybackQuality.idl \
116         $(WebCore)/Modules/mediastream/AllVideoCapabilities.idl \
117         $(WebCore)/Modules/mediastream/AllAudioCapabilities.idl \
118         $(WebCore)/Modules/mediastream/AudioStreamTrack.idl \
119     $(WebCore)/Modules/mediastream/CapabilityRange.idl \
120     $(WebCore)/Modules/mediastream/HTMLMediaElementMediaStream.idl \
121     $(WebCore)/Modules/mediastream/MediaSourceStates.idl \
122         $(WebCore)/Modules/mediastream/MediaStream.idl \
123         $(WebCore)/Modules/mediastream/MediaStreamCapabilities.idl \
124     $(WebCore)/Modules/mediastream/MediaStreamEvent.idl \
125     $(WebCore)/Modules/mediastream/MediaStreamTrack.idl \
126     $(WebCore)/Modules/mediastream/MediaStreamTrackEvent.idl \
127     $(WebCore)/Modules/mediastream/MediaStreamTrackSourcesCallback.idl \
128     $(WebCore)/Modules/mediastream/MediaTrackConstraint.idl \
129     $(WebCore)/Modules/mediastream/MediaTrackConstraints.idl \
130     $(WebCore)/Modules/mediastream/MediaTrackConstraintSet.idl \
131     $(WebCore)/Modules/mediastream/NavigatorUserMedia.idl \
132     $(WebCore)/Modules/mediastream/NavigatorUserMediaError.idl \
133     $(WebCore)/Modules/mediastream/NavigatorUserMediaErrorCallback.idl \
134     $(WebCore)/Modules/mediastream/NavigatorUserMediaSuccessCallback.idl \
135     $(WebCore)/Modules/mediastream/RTCConfiguration.idl \
136     $(WebCore)/Modules/mediastream/RTCDTMFSender.idl \
137     $(WebCore)/Modules/mediastream/RTCDTMFToneChangeEvent.idl \
138     $(WebCore)/Modules/mediastream/RTCDataChannel.idl \
139     $(WebCore)/Modules/mediastream/RTCDataChannelEvent.idl \
140     $(WebCore)/Modules/mediastream/RTCIceCandidate.idl \
141     $(WebCore)/Modules/mediastream/RTCIceCandidateEvent.idl \
142     $(WebCore)/Modules/mediastream/RTCIceServer.idl \
143     $(WebCore)/Modules/mediastream/RTCPeerConnection.idl \
144     $(WebCore)/Modules/mediastream/RTCPeerConnectionErrorCallback.idl \
145     $(WebCore)/Modules/mediastream/RTCSessionDescription.idl \
146     $(WebCore)/Modules/mediastream/RTCSessionDescriptionCallback.idl \
147     $(WebCore)/Modules/mediastream/RTCStatsCallback.idl \
148     $(WebCore)/Modules/mediastream/RTCStatsReport.idl \
149     $(WebCore)/Modules/mediastream/RTCStatsResponse.idl \
150         $(WebCore)/Modules/mediastream/VideoStreamTrack.idl \
151     $(WebCore)/Modules/mediastream/SourceInfo.idl \
152     $(WebCore)/Modules/notifications/DOMWindowNotifications.idl \
153     $(WebCore)/Modules/notifications/Notification.idl \
154     $(WebCore)/Modules/notifications/NotificationCenter.idl \
155     $(WebCore)/Modules/notifications/NotificationPermissionCallback.idl \
156     $(WebCore)/Modules/notifications/WorkerGlobalScopeNotifications.idl \
157     $(WebCore)/Modules/plugins/QuickTimePluginReplacement.idl \
158     $(WebCore)/Modules/quota/DOMWindowQuota.idl \
159     $(WebCore)/Modules/quota/NavigatorStorageQuota.idl \
160     $(WebCore)/Modules/quota/StorageInfo.idl \
161     $(WebCore)/Modules/quota/StorageErrorCallback.idl \
162     $(WebCore)/Modules/quota/StorageQuota.idl \
163     $(WebCore)/Modules/quota/StorageQuotaCallback.idl \
164     $(WebCore)/Modules/quota/StorageUsageCallback.idl \
165     $(WebCore)/Modules/quota/WorkerNavigatorStorageQuota.idl \
166     $(WebCore)/Modules/speech/DOMWindowSpeechSynthesis.idl \
167     $(WebCore)/Modules/speech/SpeechSynthesis.idl \
168     $(WebCore)/Modules/speech/SpeechSynthesisEvent.idl \
169     $(WebCore)/Modules/speech/SpeechSynthesisUtterance.idl \
170     $(WebCore)/Modules/speech/SpeechSynthesisVoice.idl \
171     $(WebCore)/Modules/streams/ReadableStream.idl \
172     $(WebCore)/Modules/webaudio/AudioBuffer.idl \
173     $(WebCore)/Modules/webaudio/AudioBufferCallback.idl \
174     $(WebCore)/Modules/webaudio/AudioBufferSourceNode.idl \
175     $(WebCore)/Modules/webaudio/ChannelMergerNode.idl \
176     $(WebCore)/Modules/webaudio/ChannelSplitterNode.idl \
177     $(WebCore)/Modules/webaudio/AudioContext.idl \
178     $(WebCore)/Modules/webaudio/AudioDestinationNode.idl \
179     $(WebCore)/Modules/webaudio/GainNode.idl \
180     $(WebCore)/Modules/webaudio/AudioListener.idl \
181     $(WebCore)/Modules/webaudio/AudioNode.idl \
182     $(WebCore)/Modules/webaudio/PannerNode.idl \
183     $(WebCore)/Modules/webaudio/AudioParam.idl \
184     $(WebCore)/Modules/webaudio/AudioProcessingEvent.idl \
185     $(WebCore)/Modules/webaudio/BiquadFilterNode.idl \
186     $(WebCore)/Modules/webaudio/ConvolverNode.idl \
187     $(WebCore)/Modules/webaudio/DelayNode.idl \
188     $(WebCore)/Modules/webaudio/DynamicsCompressorNode.idl \
189     $(WebCore)/Modules/webaudio/ScriptProcessorNode.idl \
190     $(WebCore)/Modules/webaudio/MediaElementAudioSourceNode.idl \
191     $(WebCore)/Modules/webaudio/MediaStreamAudioDestinationNode.idl \
192     $(WebCore)/Modules/webaudio/MediaStreamAudioSourceNode.idl \
193     $(WebCore)/Modules/webaudio/OscillatorNode.idl \
194     $(WebCore)/Modules/webaudio/OfflineAudioContext.idl \
195     $(WebCore)/Modules/webaudio/OfflineAudioCompletionEvent.idl \
196     $(WebCore)/Modules/webaudio/AnalyserNode.idl \
197     $(WebCore)/Modules/webaudio/WaveShaperNode.idl \
198     $(WebCore)/Modules/webaudio/PeriodicWave.idl \
199     $(WebCore)/Modules/webdatabase/DOMWindowWebDatabase.idl \
200     $(WebCore)/Modules/webdatabase/Database.idl \
201     $(WebCore)/Modules/webdatabase/DatabaseCallback.idl \
202     $(WebCore)/Modules/webdatabase/SQLError.idl \
203     $(WebCore)/Modules/webdatabase/SQLException.idl \
204     $(WebCore)/Modules/webdatabase/SQLResultSet.idl \
205     $(WebCore)/Modules/webdatabase/SQLResultSetRowList.idl \
206     $(WebCore)/Modules/webdatabase/SQLStatementCallback.idl \
207     $(WebCore)/Modules/webdatabase/SQLStatementErrorCallback.idl \
208     $(WebCore)/Modules/webdatabase/SQLTransaction.idl \
209     $(WebCore)/Modules/webdatabase/SQLTransactionCallback.idl \
210     $(WebCore)/Modules/webdatabase/SQLTransactionErrorCallback.idl \
211     $(WebCore)/Modules/websockets/CloseEvent.idl \
212     $(WebCore)/Modules/websockets/WebSocket.idl \
213     $(WebCore)/crypto/CryptoKey.idl \
214     $(WebCore)/crypto/CryptoKeyPair.idl \
215     $(WebCore)/crypto/SubtleCrypto.idl \
216     $(WebCore)/css/CSSCharsetRule.idl \
217     $(WebCore)/css/CSSFontFaceLoadEvent.idl \
218     $(WebCore)/css/CSSFontFaceRule.idl \
219     $(WebCore)/css/CSSImportRule.idl \
220     $(WebCore)/css/CSSMediaRule.idl \
221     $(WebCore)/css/CSSPageRule.idl \
222     $(WebCore)/css/CSSPrimitiveValue.idl \
223     $(WebCore)/css/CSSRule.idl \
224     $(WebCore)/css/CSSRuleList.idl \
225     $(WebCore)/css/CSSStyleDeclaration.idl \
226     $(WebCore)/css/CSSStyleRule.idl \
227     $(WebCore)/css/CSSStyleSheet.idl \
228     $(WebCore)/css/CSSSupportsRule.idl \
229     $(WebCore)/css/CSSUnknownRule.idl \
230     $(WebCore)/css/CSSValue.idl \
231     $(WebCore)/css/CSSValueList.idl \
232     $(WebCore)/css/Counter.idl \
233     $(WebCore)/css/DOMWindowCSS.idl \
234     $(WebCore)/css/FontLoader.idl \
235     $(WebCore)/css/MediaList.idl \
236     $(WebCore)/css/MediaQueryList.idl \
237     $(WebCore)/css/MediaQueryListListener.idl \
238     $(WebCore)/css/RGBColor.idl \
239     $(WebCore)/css/Rect.idl \
240     $(WebCore)/css/StyleMedia.idl \
241     $(WebCore)/css/StyleSheet.idl \
242     $(WebCore)/css/StyleSheetList.idl \
243     $(WebCore)/css/WebKitCSSFilterValue.idl \
244     $(WebCore)/css/CSSKeyframeRule.idl \
245     $(WebCore)/css/CSSKeyframesRule.idl \
246     $(WebCore)/css/WebKitCSSMatrix.idl \
247     $(WebCore)/css/WebKitCSSRegionRule.idl \
248     $(WebCore)/css/WebKitCSSTransformValue.idl \
249     $(WebCore)/css/WebKitCSSViewportRule.idl \
250     $(WebCore)/dom/AnimationEvent.idl \
251     $(WebCore)/dom/Attr.idl \
252     $(WebCore)/dom/AutocompleteErrorEvent.idl \
253     $(WebCore)/dom/BeforeLoadEvent.idl \
254     $(WebCore)/dom/BeforeUnloadEvent.idl \
255     $(WebCore)/dom/CDATASection.idl \
256     $(WebCore)/dom/CharacterData.idl \
257     $(WebCore)/dom/ChildNode.idl \
258     $(WebCore)/dom/ClientRect.idl \
259     $(WebCore)/dom/ClientRectList.idl \
260     $(WebCore)/dom/Comment.idl \
261     $(WebCore)/dom/CompositionEvent.idl \
262     $(WebCore)/dom/CustomEvent.idl \
263     $(WebCore)/dom/DOMCoreException.idl \
264     $(WebCore)/dom/DOMError.idl \
265     $(WebCore)/dom/DOMImplementation.idl \
266     $(WebCore)/dom/DOMStringList.idl \
267     $(WebCore)/dom/DOMStringMap.idl \
268     $(WebCore)/dom/DataTransfer.idl \
269     $(WebCore)/dom/DataTransferItem.idl \
270     $(WebCore)/dom/DataTransferItemList.idl \
271     $(WebCore)/dom/DeviceMotionEvent.idl \
272     $(WebCore)/dom/DeviceOrientationEvent.idl \
273     $(WebCore)/dom/Document.idl \
274     $(WebCore)/dom/DocumentFragment.idl \
275     $(WebCore)/dom/DocumentType.idl \
276     $(WebCore)/dom/Element.idl \
277     $(WebCore)/dom/Entity.idl \
278     $(WebCore)/dom/EntityReference.idl \
279     $(WebCore)/dom/ErrorEvent.idl \
280     $(WebCore)/dom/Event.idl \
281     $(WebCore)/dom/EventException.idl \
282     $(WebCore)/dom/EventListener.idl \
283     $(WebCore)/dom/EventTarget.idl \
284     $(WebCore)/dom/FocusEvent.idl \
285     $(WebCore)/dom/HashChangeEvent.idl \
286     $(WebCore)/dom/KeyboardEvent.idl \
287     $(WebCore)/dom/MessageChannel.idl \
288     $(WebCore)/dom/MessageEvent.idl \
289     $(WebCore)/dom/MessagePort.idl \
290     $(WebCore)/dom/MouseEvent.idl \
291     $(WebCore)/dom/MutationEvent.idl \
292     $(WebCore)/dom/MutationObserver.idl \
293     $(WebCore)/dom/MutationRecord.idl \
294     $(WebCore)/dom/DOMNamedFlowCollection.idl \
295     $(WebCore)/dom/NamedNodeMap.idl \
296     $(WebCore)/dom/Node.idl \
297     $(WebCore)/dom/NodeFilter.idl \
298     $(WebCore)/dom/NodeIterator.idl \
299     $(WebCore)/dom/NodeList.idl \
300     $(WebCore)/dom/OverflowEvent.idl \
301     $(WebCore)/dom/PageTransitionEvent.idl \
302     $(WebCore)/dom/PopStateEvent.idl \
303     $(WebCore)/dom/ProcessingInstruction.idl \
304     $(WebCore)/dom/ProgressEvent.idl \
305     $(WebCore)/dom/ProgressEvent.idl \
306     $(WebCore)/dom/Range.idl \
307     $(WebCore)/dom/RangeException.idl \
308     $(WebCore)/dom/RequestAnimationFrameCallback.idl \
309     $(WebCore)/dom/StringCallback.idl \
310     $(WebCore)/dom/Text.idl \
311     $(WebCore)/dom/TextEvent.idl \
312     $(WebCore)/dom/TransitionEvent.idl \
313     $(WebCore)/dom/TreeWalker.idl \
314     $(WebCore)/dom/UIEvent.idl \
315     $(WebCore)/dom/WebKitAnimationEvent.idl \
316     $(WebCore)/dom/WebKitNamedFlow.idl \
317     $(WebCore)/dom/WebKitTransitionEvent.idl \
318     $(WebCore)/dom/WheelEvent.idl \
319     $(WebCore)/fileapi/Blob.idl \
320     $(WebCore)/fileapi/File.idl \
321     $(WebCore)/fileapi/FileError.idl \
322     $(WebCore)/fileapi/FileException.idl \
323     $(WebCore)/fileapi/FileList.idl \
324     $(WebCore)/fileapi/FileReader.idl \
325     $(WebCore)/fileapi/FileReaderSync.idl \
326     $(WebCore)/html/DOMFormData.idl \
327     $(WebCore)/html/DOMSettableTokenList.idl \
328     $(WebCore)/html/DOMTokenList.idl \
329     $(WebCore)/html/DOMURL.idl \
330     $(WebCore)/html/HTMLAllCollection.idl \
331     $(WebCore)/html/HTMLAnchorElement.idl \
332     $(WebCore)/html/HTMLAppletElement.idl \
333     $(WebCore)/html/HTMLAreaElement.idl \
334     $(WebCore)/html/HTMLAttachmentElement.idl \
335     $(WebCore)/html/HTMLAudioElement.idl \
336     $(WebCore)/html/HTMLBRElement.idl \
337     $(WebCore)/html/HTMLBaseElement.idl \
338     $(WebCore)/html/HTMLBaseFontElement.idl \
339     $(WebCore)/html/HTMLBodyElement.idl \
340     $(WebCore)/html/HTMLButtonElement.idl \
341     $(WebCore)/html/HTMLCanvasElement.idl \
342     $(WebCore)/html/HTMLCollection.idl \
343     $(WebCore)/html/HTMLDListElement.idl \
344     $(WebCore)/html/HTMLDataListElement.idl \
345     $(WebCore)/html/HTMLDetailsElement.idl \
346     $(WebCore)/html/HTMLDirectoryElement.idl \
347     $(WebCore)/html/HTMLDivElement.idl \
348     $(WebCore)/html/HTMLDocument.idl \
349     $(WebCore)/html/HTMLElement.idl \
350     $(WebCore)/html/HTMLEmbedElement.idl \
351     $(WebCore)/html/HTMLFieldSetElement.idl \
352     $(WebCore)/html/HTMLFontElement.idl \
353     $(WebCore)/html/HTMLFormControlsCollection.idl \
354     $(WebCore)/html/HTMLFormElement.idl \
355     $(WebCore)/html/HTMLFrameElement.idl \
356     $(WebCore)/html/HTMLFrameSetElement.idl \
357     $(WebCore)/html/HTMLHRElement.idl \
358     $(WebCore)/html/HTMLHeadElement.idl \
359     $(WebCore)/html/HTMLHeadingElement.idl \
360     $(WebCore)/html/HTMLHtmlElement.idl \
361     $(WebCore)/html/HTMLIFrameElement.idl \
362     $(WebCore)/html/HTMLImageElement.idl \
363     $(WebCore)/html/HTMLInputElement.idl \
364     $(WebCore)/html/HTMLKeygenElement.idl \
365     $(WebCore)/html/HTMLLIElement.idl \
366     $(WebCore)/html/HTMLLabelElement.idl \
367     $(WebCore)/html/HTMLLegendElement.idl \
368     $(WebCore)/html/HTMLLinkElement.idl \
369     $(WebCore)/html/HTMLMapElement.idl \
370     $(WebCore)/html/HTMLMarqueeElement.idl \
371     $(WebCore)/html/HTMLMediaElement.idl \
372     $(WebCore)/html/HTMLMenuElement.idl \
373     $(WebCore)/html/HTMLMetaElement.idl \
374     $(WebCore)/html/HTMLMeterElement.idl \
375     $(WebCore)/html/HTMLModElement.idl \
376     $(WebCore)/html/HTMLOListElement.idl \
377     $(WebCore)/html/HTMLObjectElement.idl \
378     $(WebCore)/html/HTMLOptGroupElement.idl \
379     $(WebCore)/html/HTMLOptionElement.idl \
380     $(WebCore)/html/HTMLOptionsCollection.idl \
381     $(WebCore)/html/HTMLOutputElement.idl \
382     $(WebCore)/html/HTMLParagraphElement.idl \
383     $(WebCore)/html/HTMLParamElement.idl \
384     $(WebCore)/html/HTMLPreElement.idl \
385     $(WebCore)/html/HTMLProgressElement.idl \
386     $(WebCore)/html/HTMLQuoteElement.idl \
387     $(WebCore)/html/HTMLScriptElement.idl \
388     $(WebCore)/html/HTMLSelectElement.idl \
389     $(WebCore)/html/HTMLSourceElement.idl \
390     $(WebCore)/html/HTMLSpanElement.idl \
391     $(WebCore)/html/HTMLStyleElement.idl \
392     $(WebCore)/html/HTMLTableCaptionElement.idl \
393     $(WebCore)/html/HTMLTableCellElement.idl \
394     $(WebCore)/html/HTMLTableColElement.idl \
395     $(WebCore)/html/HTMLTableElement.idl \
396     $(WebCore)/html/HTMLTableRowElement.idl \
397     $(WebCore)/html/HTMLTableSectionElement.idl \
398     $(WebCore)/html/HTMLTemplateElement.idl \
399     $(WebCore)/html/HTMLTextAreaElement.idl \
400     $(WebCore)/html/HTMLTitleElement.idl \
401     $(WebCore)/html/HTMLTrackElement.idl \
402     $(WebCore)/html/HTMLUListElement.idl \
403     $(WebCore)/html/HTMLUnknownElement.idl \
404     $(WebCore)/html/HTMLVideoElement.idl \
405     $(WebCore)/html/ImageData.idl \
406     $(WebCore)/html/MediaController.idl \
407     $(WebCore)/html/MediaError.idl \
408     $(WebCore)/html/MediaKeyError.idl \
409     $(WebCore)/html/MediaKeyEvent.idl \
410     $(WebCore)/html/RadioNodeList.idl \
411     $(WebCore)/html/TextMetrics.idl \
412     $(WebCore)/html/TimeRanges.idl \
413     $(WebCore)/html/URLUtils.idl \
414     $(WebCore)/html/ValidityState.idl \
415     $(WebCore)/html/VoidCallback.idl \
416     $(WebCore)/html/canvas/ANGLEInstancedArrays.idl \
417     $(WebCore)/html/canvas/CanvasGradient.idl \
418     $(WebCore)/html/canvas/CanvasPattern.idl \
419     $(WebCore)/html/canvas/CanvasProxy.idl \
420     $(WebCore)/html/canvas/CanvasRenderingContext.idl \
421     $(WebCore)/html/canvas/CanvasRenderingContext2D.idl \
422     $(WebCore)/html/canvas/DOMPath.idl \
423     $(WebCore)/html/canvas/EXTShaderTextureLOD.idl \
424     $(WebCore)/html/canvas/EXTTextureFilterAnisotropic.idl \
425     $(WebCore)/html/canvas/EXTsRGB.idl \
426     $(WebCore)/html/canvas/EXTBlendMinMax.idl \
427     $(WebCore)/html/canvas/EXTFragDepth.idl \
428     $(WebCore)/html/canvas/OESElementIndexUint.idl \
429     $(WebCore)/html/canvas/OESStandardDerivatives.idl \
430     $(WebCore)/html/canvas/OESTextureFloat.idl \
431     $(WebCore)/html/canvas/OESTextureFloatLinear.idl \
432     $(WebCore)/html/canvas/OESTextureHalfFloat.idl \
433     $(WebCore)/html/canvas/OESTextureHalfFloatLinear.idl \
434     $(WebCore)/html/canvas/OESVertexArrayObject.idl \
435     $(WebCore)/html/canvas/WebGLActiveInfo.idl \
436     $(WebCore)/html/canvas/WebGLBuffer.idl \
437     $(WebCore)/html/canvas/WebGLCompressedTextureATC.idl \
438     $(WebCore)/html/canvas/WebGLCompressedTexturePVRTC.idl \
439     $(WebCore)/html/canvas/WebGLCompressedTextureS3TC.idl \
440     $(WebCore)/html/canvas/WebGLContextAttributes.idl \
441     $(WebCore)/html/canvas/WebGLContextEvent.idl \
442     $(WebCore)/html/canvas/WebGLDebugRendererInfo.idl \
443     $(WebCore)/html/canvas/WebGLDebugShaders.idl \
444     $(WebCore)/html/canvas/WebGLDepthTexture.idl \
445     $(WebCore)/html/canvas/WebGLDrawBuffers.idl \
446     $(WebCore)/html/canvas/WebGLFramebuffer.idl \
447     $(WebCore)/html/canvas/WebGLLoseContext.idl \
448     $(WebCore)/html/canvas/WebGLProgram.idl \
449     $(WebCore)/html/canvas/WebGLQuery.idl \
450     $(WebCore)/html/canvas/WebGLRenderbuffer.idl \
451     $(WebCore)/html/canvas/WebGLRenderingContextBase.idl \
452     $(WebCore)/html/canvas/WebGLRenderingContext.idl \
453     $(WebCore)/html/canvas/WebGL2RenderingContext.idl \
454     $(WebCore)/html/canvas/WebGLSampler.idl \
455     $(WebCore)/html/canvas/WebGLShader.idl \
456     $(WebCore)/html/canvas/WebGLShaderPrecisionFormat.idl \
457     $(WebCore)/html/canvas/WebGLSync.idl \
458     $(WebCore)/html/canvas/WebGLTexture.idl \
459     $(WebCore)/html/canvas/WebGLTransformFeedback.idl \
460     $(WebCore)/html/canvas/WebGLUniformLocation.idl \
461     $(WebCore)/html/canvas/WebGLVertexArrayObject.idl \
462     $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \
463     $(WebCore)/html/track/AudioTrack.idl \
464     $(WebCore)/html/track/AudioTrackList.idl \
465     $(WebCore)/html/track/DataCue.idl \
466     $(WebCore)/html/track/TextTrack.idl \
467     $(WebCore)/html/track/TextTrackCue.idl \
468     $(WebCore)/html/track/TextTrackCueList.idl \
469     $(WebCore)/html/track/TextTrackList.idl \
470     $(WebCore)/html/track/VTTRegion.idl \
471     $(WebCore)/html/track/VTTRegionList.idl \
472     $(WebCore)/html/track/TrackEvent.idl \
473     $(WebCore)/html/track/VideoTrack.idl \
474     $(WebCore)/html/track/VideoTrackList.idl \
475     $(WebCore)/html/track/VTTCue.idl \
476     $(WebCore)/inspector/CommandLineAPIHost.idl \
477     $(WebCore)/inspector/InspectorFrontendHost.idl \
478     $(WebCore)/inspector/ScriptProfile.idl \
479     $(WebCore)/inspector/ScriptProfileNode.idl \
480     $(WebCore)/loader/appcache/DOMApplicationCache.idl \
481     $(WebCore)/page/AbstractView.idl \
482     $(WebCore)/page/BarProp.idl \
483     $(WebCore)/page/Crypto.idl \
484     $(WebCore)/page/DOMSecurityPolicy.idl \
485     $(WebCore)/page/DOMSelection.idl \
486     $(WebCore)/page/DOMWindow.idl \
487     $(WebCore)/page/EventSource.idl \
488     $(WebCore)/page/History.idl \
489     $(WebCore)/page/Location.idl \
490     $(WebCore)/page/Navigator.idl \
491     $(WebCore)/page/Performance.idl \
492     $(WebCore)/page/PerformanceNavigation.idl \
493     $(WebCore)/page/PerformanceTiming.idl \
494     $(WebCore)/page/Screen.idl \
495     $(WebCore)/page/WebKitPoint.idl \
496     $(WebCore)/page/WebKitNamespace.idl \
497     $(WebCore)/page/UserMessageHandlersNamespace.idl \
498     $(WebCore)/page/UserMessageHandler.idl \
499     $(WebCore)/page/WindowBase64.idl \
500     $(WebCore)/page/WindowTimers.idl \
501     $(WebCore)/page/WorkerNavigator.idl \
502     $(WebCore)/plugins/DOMMimeType.idl \
503     $(WebCore)/plugins/DOMMimeTypeArray.idl \
504     $(WebCore)/plugins/DOMPlugin.idl \
505     $(WebCore)/plugins/DOMPluginArray.idl \
506     $(WebCore)/storage/Storage.idl \
507     $(WebCore)/storage/StorageEvent.idl \
508     $(WebCore)/testing/Internals.idl \
509     $(WebCore)/testing/InternalSettings.idl \
510     $(WebCore)/testing/MallocStatistics.idl \
511     $(WebCore)/testing/MemoryInfo.idl \
512     $(WebCore)/testing/TypeConversions.idl \
513     $(WebCore)/workers/AbstractWorker.idl \
514     $(WebCore)/workers/DedicatedWorkerGlobalScope.idl \
515     $(WebCore)/workers/Worker.idl \
516     $(WebCore)/workers/WorkerGlobalScope.idl \
517     $(WebCore)/workers/WorkerLocation.idl \
518     $(WebCore)/xml/DOMParser.idl \
519     $(WebCore)/xml/XMLHttpRequest.idl \
520     $(WebCore)/xml/XMLHttpRequestException.idl \
521     $(WebCore)/xml/XMLHttpRequestProgressEvent.idl \
522     $(WebCore)/xml/XMLHttpRequestUpload.idl \
523     $(WebCore)/xml/XMLSerializer.idl \
524     $(WebCore)/xml/XPathEvaluator.idl \
525     $(WebCore)/xml/XPathException.idl \
526     $(WebCore)/xml/XPathExpression.idl \
527     $(WebCore)/xml/XPathNSResolver.idl \
528     $(WebCore)/xml/XPathResult.idl \
529     $(WebCore)/xml/XSLTProcessor.idl \
530     InternalSettingsGenerated.idl
531 #
532
533 SVG_BINDING_IDLS = \
534     $(WebCore)/svg/SVGAElement.idl \
535     $(WebCore)/svg/SVGAltGlyphDefElement.idl \
536     $(WebCore)/svg/SVGAltGlyphElement.idl \
537     $(WebCore)/svg/SVGAltGlyphItemElement.idl \
538     $(WebCore)/svg/SVGAngle.idl \
539     $(WebCore)/svg/SVGAnimateColorElement.idl \
540     $(WebCore)/svg/SVGAnimateElement.idl \
541     $(WebCore)/svg/SVGAnimateMotionElement.idl \
542     $(WebCore)/svg/SVGAnimateTransformElement.idl \
543     $(WebCore)/svg/SVGAnimatedAngle.idl \
544     $(WebCore)/svg/SVGAnimatedBoolean.idl \
545     $(WebCore)/svg/SVGAnimatedEnumeration.idl \
546     $(WebCore)/svg/SVGAnimatedInteger.idl \
547     $(WebCore)/svg/SVGAnimatedLength.idl \
548     $(WebCore)/svg/SVGAnimatedLengthList.idl \
549     $(WebCore)/svg/SVGAnimatedNumber.idl \
550     $(WebCore)/svg/SVGAnimatedNumberList.idl \
551     $(WebCore)/svg/SVGAnimatedPreserveAspectRatio.idl \
552     $(WebCore)/svg/SVGAnimatedRect.idl \
553     $(WebCore)/svg/SVGAnimatedString.idl \
554     $(WebCore)/svg/SVGAnimatedTransformList.idl \
555     $(WebCore)/svg/SVGAnimationElement.idl \
556     $(WebCore)/svg/SVGCircleElement.idl \
557     $(WebCore)/svg/SVGClipPathElement.idl \
558     $(WebCore)/svg/SVGColor.idl \
559     $(WebCore)/svg/SVGComponentTransferFunctionElement.idl \
560     $(WebCore)/svg/SVGCursorElement.idl \
561     $(WebCore)/svg/SVGDefsElement.idl \
562     $(WebCore)/svg/SVGDescElement.idl \
563     $(WebCore)/svg/SVGDocument.idl \
564     $(WebCore)/svg/SVGElement.idl \
565     $(WebCore)/svg/SVGEllipseElement.idl \
566     $(WebCore)/svg/SVGException.idl \
567     $(WebCore)/svg/SVGExternalResourcesRequired.idl \
568     $(WebCore)/svg/SVGFEBlendElement.idl \
569     $(WebCore)/svg/SVGFEColorMatrixElement.idl \
570     $(WebCore)/svg/SVGFEComponentTransferElement.idl \
571     $(WebCore)/svg/SVGFECompositeElement.idl \
572     $(WebCore)/svg/SVGFEConvolveMatrixElement.idl \
573     $(WebCore)/svg/SVGFEDiffuseLightingElement.idl \
574     $(WebCore)/svg/SVGFEDisplacementMapElement.idl \
575     $(WebCore)/svg/SVGFEDistantLightElement.idl \
576     $(WebCore)/svg/SVGFEDropShadowElement.idl \
577     $(WebCore)/svg/SVGFEFloodElement.idl \
578     $(WebCore)/svg/SVGFEFuncAElement.idl \
579     $(WebCore)/svg/SVGFEFuncBElement.idl \
580     $(WebCore)/svg/SVGFEFuncGElement.idl \
581     $(WebCore)/svg/SVGFEFuncRElement.idl \
582     $(WebCore)/svg/SVGFEGaussianBlurElement.idl \
583     $(WebCore)/svg/SVGFEImageElement.idl \
584     $(WebCore)/svg/SVGFEMergeElement.idl \
585     $(WebCore)/svg/SVGFEMergeNodeElement.idl \
586     $(WebCore)/svg/SVGFEMorphologyElement.idl \
587     $(WebCore)/svg/SVGFEOffsetElement.idl \
588     $(WebCore)/svg/SVGFEPointLightElement.idl \
589     $(WebCore)/svg/SVGFESpecularLightingElement.idl \
590     $(WebCore)/svg/SVGFESpotLightElement.idl \
591     $(WebCore)/svg/SVGFETileElement.idl \
592     $(WebCore)/svg/SVGFETurbulenceElement.idl \
593     $(WebCore)/svg/SVGFilterElement.idl \
594     $(WebCore)/svg/SVGFilterPrimitiveStandardAttributes.idl \
595     $(WebCore)/svg/SVGFitToViewBox.idl \
596     $(WebCore)/svg/SVGFontElement.idl \
597     $(WebCore)/svg/SVGFontFaceElement.idl \
598     $(WebCore)/svg/SVGFontFaceFormatElement.idl \
599     $(WebCore)/svg/SVGFontFaceNameElement.idl \
600     $(WebCore)/svg/SVGFontFaceSrcElement.idl \
601     $(WebCore)/svg/SVGFontFaceUriElement.idl \
602     $(WebCore)/svg/SVGForeignObjectElement.idl \
603     $(WebCore)/svg/SVGGElement.idl \
604     $(WebCore)/svg/SVGGlyphElement.idl \
605     $(WebCore)/svg/SVGGlyphRefElement.idl \
606     $(WebCore)/svg/SVGGradientElement.idl \
607     $(WebCore)/svg/SVGGraphicsElement.idl \
608     $(WebCore)/svg/SVGHKernElement.idl \
609     $(WebCore)/svg/SVGImageElement.idl \
610     $(WebCore)/svg/SVGLength.idl \
611     $(WebCore)/svg/SVGLengthList.idl \
612     $(WebCore)/svg/SVGLineElement.idl \
613     $(WebCore)/svg/SVGLinearGradientElement.idl \
614     $(WebCore)/svg/SVGMPathElement.idl \
615     $(WebCore)/svg/SVGMarkerElement.idl \
616     $(WebCore)/svg/SVGMaskElement.idl \
617     $(WebCore)/svg/SVGMatrix.idl \
618     $(WebCore)/svg/SVGMetadataElement.idl \
619     $(WebCore)/svg/SVGMissingGlyphElement.idl \
620     $(WebCore)/svg/SVGNumber.idl \
621     $(WebCore)/svg/SVGNumberList.idl \
622     $(WebCore)/svg/SVGPaint.idl \
623     $(WebCore)/svg/SVGPathElement.idl \
624     $(WebCore)/svg/SVGPathSeg.idl \
625     $(WebCore)/svg/SVGPathSegArcAbs.idl \
626     $(WebCore)/svg/SVGPathSegArcRel.idl \
627     $(WebCore)/svg/SVGPathSegClosePath.idl \
628     $(WebCore)/svg/SVGPathSegCurvetoCubicAbs.idl \
629     $(WebCore)/svg/SVGPathSegCurvetoCubicRel.idl \
630     $(WebCore)/svg/SVGPathSegCurvetoCubicSmoothAbs.idl \
631     $(WebCore)/svg/SVGPathSegCurvetoCubicSmoothRel.idl \
632     $(WebCore)/svg/SVGPathSegCurvetoQuadraticAbs.idl \
633     $(WebCore)/svg/SVGPathSegCurvetoQuadraticRel.idl \
634     $(WebCore)/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl \
635     $(WebCore)/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl \
636     $(WebCore)/svg/SVGPathSegLinetoAbs.idl \
637     $(WebCore)/svg/SVGPathSegLinetoHorizontalAbs.idl \
638     $(WebCore)/svg/SVGPathSegLinetoHorizontalRel.idl \
639     $(WebCore)/svg/SVGPathSegLinetoRel.idl \
640     $(WebCore)/svg/SVGPathSegLinetoVerticalAbs.idl \
641     $(WebCore)/svg/SVGPathSegLinetoVerticalRel.idl \
642     $(WebCore)/svg/SVGPathSegList.idl \
643     $(WebCore)/svg/SVGPathSegMovetoAbs.idl \
644     $(WebCore)/svg/SVGPathSegMovetoRel.idl \
645     $(WebCore)/svg/SVGPatternElement.idl \
646     $(WebCore)/svg/SVGPoint.idl \
647     $(WebCore)/svg/SVGPointList.idl \
648     $(WebCore)/svg/SVGPolygonElement.idl \
649     $(WebCore)/svg/SVGPolylineElement.idl \
650     $(WebCore)/svg/SVGPreserveAspectRatio.idl \
651     $(WebCore)/svg/SVGRadialGradientElement.idl \
652     $(WebCore)/svg/SVGRect.idl \
653     $(WebCore)/svg/SVGRectElement.idl \
654     $(WebCore)/svg/SVGRenderingIntent.idl \
655     $(WebCore)/svg/SVGSVGElement.idl \
656     $(WebCore)/svg/SVGScriptElement.idl \
657     $(WebCore)/svg/SVGSetElement.idl \
658     $(WebCore)/svg/SVGStopElement.idl \
659     $(WebCore)/svg/SVGStringList.idl \
660     $(WebCore)/svg/SVGStyleElement.idl \
661     $(WebCore)/svg/SVGSwitchElement.idl \
662     $(WebCore)/svg/SVGSymbolElement.idl \
663     $(WebCore)/svg/SVGTRefElement.idl \
664     $(WebCore)/svg/SVGTSpanElement.idl \
665     $(WebCore)/svg/SVGTests.idl \
666     $(WebCore)/svg/SVGTextContentElement.idl \
667     $(WebCore)/svg/SVGTextElement.idl \
668     $(WebCore)/svg/SVGTextPathElement.idl \
669     $(WebCore)/svg/SVGTextPositioningElement.idl \
670     $(WebCore)/svg/SVGTitleElement.idl \
671     $(WebCore)/svg/SVGTransform.idl \
672     $(WebCore)/svg/SVGTransformList.idl \
673     $(WebCore)/svg/SVGURIReference.idl \
674     $(WebCore)/svg/SVGUnitTypes.idl \
675     $(WebCore)/svg/SVGUseElement.idl \
676     $(WebCore)/svg/SVGVKernElement.idl \
677     $(WebCore)/svg/SVGViewElement.idl \
678     $(WebCore)/svg/SVGViewSpec.idl \
679     $(WebCore)/svg/SVGZoomAndPan.idl \
680     $(WebCore)/svg/SVGZoomEvent.idl
681 #
682
683 # Windows has specific needs for specifying the path to its interpreters
684 ifeq ($(OS),Windows_NT)
685     PYTHON = /usr/bin/python
686     PERL = /usr/bin/perl
687 else
688     PYTHON = python
689     PERL = perl
690 endif
691 # --------
692
693 ifeq ($(OS),MACOS)
694
695 FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) | perl -e 'print "-F " . join(" -F ", split(" ", <>));')
696 HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));')
697 TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional
698
699 ifneq ($(SDKROOT),)
700         SDK_FLAGS=-isysroot $(SDKROOT)
701 endif
702
703 ifeq ($(shell $(CC) -std=gnu++11 -x c++ -E -P -dM $(SDK_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_IOS ' | cut -d' ' -f3), 1)
704     WTF_PLATFORM_IOS = 1
705 else
706     WTF_PLATFORM_IOS = 0
707 endif
708
709 ifeq ($(shell $(CC) -std=gnu++11 -x c++ -E -P -dM $(SDK_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep WTF_USE_APPLE_INTERNAL_SDK | cut -d' ' -f3), 1)
710     WTF_USE_APPLE_INTERNAL_SDK = 1
711 else
712     WTF_USE_APPLE_INTERNAL_SDK = 0
713 endif
714
715 ifeq ($(shell $(CC) -std=gnu++11 -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)
716     ENABLE_ORIENTATION_EVENTS = 1
717 endif
718
719 ifeq ($(PLATFORM_FEATURE_DEFINES),)
720 PLATFORM_FEATURE_DEFINES = Configurations/FeatureDefines.xcconfig
721 endif
722
723 ifeq ($(WTF_PLATFORM_IOS), 1)
724 ADDITIONAL_BINDING_IDLS =
725
726 ifeq ($(findstring ENABLE_IOS_TOUCH_EVENTS,$(FEATURE_DEFINES)), ENABLE_IOS_TOUCH_EVENTS)
727 ADDITIONAL_BINDING_IDLS += \
728     Touch.idl \
729     TouchEvent.idl \
730     TouchList.idl
731 endif
732
733 ifeq ($(findstring ENABLE_IOS_GESTURE_EVENTS,$(FEATURE_DEFINES)), ENABLE_IOS_GESTURE_EVENTS)
734 ADDITIONAL_BINDING_IDLS += GestureEvent.idl
735 endif
736
737 NON_SVG_BINDING_IDLS += $(ADDITIONAL_BINDING_IDLS)
738
739 all : $(ADDITIONAL_BINDING_IDLS:%.idl=JS%.h)
740
741 vpath %.idl $(BUILT_PRODUCTS_DIR)/usr/local/include $(SDKROOT)/usr/local/include
742
743 $(ADDITIONAL_BINDING_IDLS) : % : WebKitAdditions/%
744         cp $< .
745
746 endif
747
748 endif # MACOS
749
750 ifneq ($(WTF_PLATFORM_IOS), 1)
751 NON_SVG_BINDING_IDLS += \
752     $(WebCore)/dom/Touch.idl \
753     $(WebCore)/dom/TouchEvent.idl \
754     $(WebCore)/dom/TouchList.idl
755 endif
756
757 .PHONY : all
758
759 BINDING_IDLS = $(NON_SVG_BINDING_IDLS) $(SVG_BINDING_IDLS)
760
761 JS_DOM_CLASSES=$(basename $(notdir $(BINDING_IDLS)))
762
763 JS_DOM_HEADERS=$(filter-out JSEventListener.h, $(JS_DOM_CLASSES:%=JS%.h))
764
765 WEB_DOM_HEADERS :=
766
767 all : \
768     $(SUPPLEMENTAL_DEPENDENCY_FILE) \
769     $(WINDOW_CONSTRUCTORS_FILE) \
770     $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) \
771     $(JS_DOM_HEADERS) \
772     $(WEB_DOM_HEADERS) \
773     \
774     CSSGrammar.cpp \
775     CSSPropertyNames.cpp \
776     CSSPropertyNames.h \
777     CSSValueKeywords.cpp \
778     CSSValueKeywords.h \
779     ColorData.cpp \
780     EventFactory.cpp \
781     EventTargetInterfaces.h \
782     ExceptionCodeDescription.cpp \
783     HTMLElementFactory.cpp \
784     HTMLElementFactory.h \
785     HTMLElementTypeHelpers.h \
786     HTMLEntityTable.cpp \
787     HTMLNames.cpp \
788     HTMLNames.h \
789     HTTPHeaderNames.h \
790     JSHTMLElementWrapperFactory.cpp \
791     JSHTMLElementWrapperFactory.h \
792     JSMathMLElementWrapperFactory.cpp \
793     JSMathMLElementWrapperFactory.h \
794     JSSVGElementWrapperFactory.cpp \
795     JSSVGElementWrapperFactory.h \
796     PlugInsResources.h \
797     SVGElementFactory.cpp \
798     SVGElementFactory.h \
799     SVGElementTypeHelpers.h \
800     SVGNames.cpp \
801     SVGNames.h \
802     SelectorPseudoClassAndCompatibilityElementMap.cpp \
803     SelectorPseudoElementTypeMap.cpp \
804     StyleBuilder.cpp \
805     StylePropertyShorthandFunctions.cpp \
806     StylePropertyShorthandFunctions.h \
807     UserAgentStyleSheets.h \
808     WebKitFontFamilyNames.cpp \
809     WebKitFontFamilyNames.h \
810     XLinkNames.cpp \
811     XMLNSNames.cpp \
812     XMLNames.cpp \
813     MathMLElementFactory.cpp \
814     MathMLElementFactory.h \
815     MathMLElementTypeHelpers.h \
816     MathMLNames.cpp \
817     MathMLNames.h \
818     XPathGrammar.cpp \
819 #
820
821 # --------
822
823 ADDITIONAL_IDL_DEFINES :=
824
825 ifndef ENABLE_ORIENTATION_EVENTS
826     ENABLE_ORIENTATION_EVENTS = 0
827 endif
828
829 ifeq ($(ENABLE_ORIENTATION_EVENTS), 1)
830     ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) ENABLE_ORIENTATION_EVENTS
831 endif
832
833 ifeq ($(WTF_USE_APPLE_INTERNAL_SDK), 1)
834     ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) WTF_USE_APPLE_INTERNAL_SDK
835 endif
836
837 # --------
838
839 # CSS property names and value keywords
840
841 WEBCORE_CSS_PROPERTY_NAMES := $(WebCore)/css/CSSPropertyNames.in
842 WEBCORE_CSS_VALUE_KEYWORDS := $(WebCore)/css/CSSValueKeywords.in
843 WEBCORE_CSS_VALUE_KEYWORDS := $(WEBCORE_CSS_VALUE_KEYWORDS) $(WebCore)/css/SVGCSSValueKeywords.in
844
845 CSSPropertyNames.h CSSPropertyNames.cpp StyleBuilder.cpp StylePropertyShorthandFunctions.h StylePropertyShorthandFunctions.cpp : makeprop.intermediate
846 .INTERMEDIATE : makeprop.intermediate
847 makeprop.intermediate : $(WEBCORE_CSS_PROPERTY_NAMES) css/makeprop.pl bindings/scripts/preprocessor.pm $(PLATFORM_FEATURE_DEFINES)
848         $(PERL) -pe '' $(WEBCORE_CSS_PROPERTY_NAMES) > CSSPropertyNames.in
849         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makeprop.pl" --defines "$(FEATURE_DEFINES)"
850
851 CSSValueKeywords.h CSSValueKeywords.cpp : makevalues.intermediate
852 .INTERMEDIATE : makevalues.intermediate
853 makevalues.intermediate : $(WEBCORE_CSS_VALUE_KEYWORDS) css/makevalues.pl bindings/scripts/preprocessor.pm $(PLATFORM_FEATURE_DEFINES)
854         $(PERL) -pe '' $(WEBCORE_CSS_VALUE_KEYWORDS) > CSSValueKeywords.in
855         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makevalues.pl" --defines "$(FEATURE_DEFINES)"
856
857 # --------
858
859 # CSS Selector pseudo type name to value map.
860
861 WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS := $(WebCore)/css/SelectorPseudoClassAndCompatibilityElementMap.in
862 SelectorPseudoClassAndCompatibilityElementMap.cpp : $(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py $(WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS)
863         $(PYTHON) "$(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py" $(WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS) "$(FEATURE_DEFINES)"
864
865 WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS := $(WebCore)/css/SelectorPseudoElementTypeMap.in
866 SelectorPseudoElementTypeMap.cpp : $(WebCore)/css/makeSelectorPseudoElementsMap.py $(WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS)
867         $(PYTHON) "$(WebCore)/css/makeSelectorPseudoElementsMap.py" $(WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS) "$(FEATURE_DEFINES)"
868
869 # --------
870
871 # XMLViewer CSS
872
873 all : XMLViewerCSS.h
874
875 XMLViewerCSS.h : xml/XMLViewer.css
876         $(PYTHON) $(InspectorScripts)/cssmin.py <"$(WebCore)/xml/XMLViewer.css" > ./XMLViewer.min.css
877         $(PERL) $(InspectorScripts)/xxd.pl XMLViewer_css ./XMLViewer.min.css XMLViewerCSS.h
878         rm -f ./XMLViewer.min.css
879
880 # --------
881
882 # XMLViewer JS
883
884 all : XMLViewerJS.h
885
886 XMLViewerJS.h : xml/XMLViewer.js
887         $(PYTHON) $(InspectorScripts)/jsmin.py <"$(WebCore)/xml/XMLViewer.js" > ./XMLViewer.min.js
888         $(PERL) $(InspectorScripts)/xxd.pl XMLViewer_js ./XMLViewer.min.js XMLViewerJS.h
889         rm -f ./XMLViewer.min.js
890
891 # --------
892
893 # HTML entity names
894
895 HTMLEntityTable.cpp : html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table
896         $(PYTHON) $(WebCore)/html/parser/create-html-entity-table -o HTMLEntityTable.cpp $(WebCore)/html/parser/HTMLEntityNames.in
897
898 # --------
899
900 # HTTP header names
901
902 HTTPHeaderNames.h : platform/network/HTTPHeaderNames.in $(WebCore)/platform/network/create-http-header-name-table
903         $(PYTHON) $(WebCore)/platform/network/create-http-header-name-table $(WebCore)/platform/network/HTTPHeaderNames.in
904
905 # --------
906
907 # color names
908
909 ColorData.cpp : platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
910         $(PERL) $(WebCore)/make-hash-tools.pl . $(WebCore)/platform/ColorData.gperf
911
912 # --------
913
914 # Path to bison
915
916 ifeq ($(OS),MACOS)
917 BISON=$(shell xcrun -find bison)
918 else
919 BISON=bison
920 endif
921
922 # --------
923
924 # CSS grammar
925 CSSGrammar.cpp : css/CSSGrammar.y.in $(PLATFORM_FEATURE_DEFINES)
926         $(PERL) -I $(WebCore)/bindings/scripts $(WebCore)/css/makegrammar.pl --extraDefines "$(FEATURE_DEFINES)" --outputDir . --bison "$(BISON)" --symbolsPrefix cssyy $<
927
928 # --------
929
930 # XPath grammar
931 XPathGrammar.cpp : xml/XPathGrammar.y $(PROJECT_FILE)
932         $(PERL) $(WebCore)/css/makegrammar.pl --outputDir . --bison "$(BISON)" --symbolsPrefix xpathyy $<
933
934 # --------
935
936 # user agent style sheets
937
938 USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css $(WebCore)/css/plugIns.css
939 USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css
940
941 ifeq ($(findstring ENABLE_MATHML,$(FEATURE_DEFINES)), ENABLE_MATHML)
942     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/mathml.css
943 endif
944
945 ifeq ($(findstring ENABLE_VIDEO,$(FEATURE_DEFINES)), ENABLE_VIDEO)
946     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/mediaControls.css
947 endif
948
949 ifeq ($(findstring ENABLE_FULLSCREEN_API,$(FEATURE_DEFINES)), ENABLE_FULLSCREEN_API)
950     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/fullscreen.css
951 endif
952
953 ifeq ($(findstring ENABLE_SERVICE_CONTROLS,$(FEATURE_DEFINES)), ENABLE_SERVICE_CONTROLS)
954         USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/html/shadow/mac/imageControlsMac.css
955 endif
956
957 ifeq ($(OS),MACOS)
958         USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/Modules/plugins/QuickTimePluginReplacement.css
959 endif
960
961 UserAgentStyleSheets.h : css/make-css-file-arrays.pl bindings/scripts/preprocessor.pm $(USER_AGENT_STYLE_SHEETS) $(PLATFORM_FEATURE_DEFINES)
962         $(PERL) -I$(WebCore)/bindings/scripts $< --defines "$(FEATURE_DEFINES)" $@ UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
963
964 # --------
965
966 # user agent scripts
967
968 USER_AGENT_SCRIPTS = 
969
970 ifeq ($(OS),MACOS)
971         USER_AGENT_SCRIPTS := $(USER_AGENT_SCRIPTS) $(WebCore)/Modules/plugins/QuickTimePluginReplacement.js
972 endif
973
974 ifdef USER_AGENT_SCRIPTS
975 all : UserAgentScripts.h
976
977 UserAgentScripts.h : Scripts/make-js-file-arrays.py $(USER_AGENT_SCRIPTS)
978         PYTHONPATH=$(InspectorScripts) $(PYTHON) $< $@ UserAgentScriptsData.cpp $(USER_AGENT_SCRIPTS)
979 endif
980
981 # --------
982
983 # plugIns resources
984
985 PLUG_INS_RESOURCES = $(WebCore)/Resources/plugIns.js
986
987 PlugInsResources.h : css/make-css-file-arrays.pl bindings/scripts/preprocessor.pm $(PLUG_INS_RESOURCES) $(PLATFORM_FEATURE_DEFINES)
988         $(PERL) -I$(WebCore)/bindings/scripts $< --defines "$(FEATURE_DEFINES)" $@ PlugInsResourcesData.cpp $(PLUG_INS_RESOURCES)
989
990 # --------
991
992 WebKitFontFamilyNames.cpp WebKitFontFamilyNames.h: WebKitFontFamilyMakeNames.intermediate
993 .INTERMEDIATE : WebKitFontFamilyMakeNames.intermediate
994 WebKitFontFamilyMakeNames.intermediate : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm css/WebKitFontFamilyNames.in
995         $(PERL) -I $(WebCore)/bindings/scripts $< --fonts $(WebCore)/css/WebKitFontFamilyNames.in
996
997 # HTML tag and attribute names
998
999 ifeq ($(findstring ENABLE_DATALIST_ELEMENT,$(FEATURE_DEFINES)), ENABLE_DATALIST_ELEMENT)
1000     HTML_FLAGS := $(HTML_FLAGS) ENABLE_DATALIST_ELEMENT=1
1001 endif
1002
1003 ifeq ($(findstring ENABLE_DETAILS_ELEMENT,$(FEATURE_DEFINES)), ENABLE_DETAILS_ELEMENT)
1004     HTML_FLAGS := $(HTML_FLAGS) ENABLE_DETAILS_ELEMENT=1
1005 endif
1006
1007 ifeq ($(findstring ENABLE_ENCRYPTED_MEDIA_V2,$(FEATURE_DEFINES)), ENABLE_ENCRYPTED_MEDIA_V2)
1008         HTML_FLAGS := $(HTML_FLAGS) ENABLE_ENCRYPTED_MEDIA_V2=1
1009 endif
1010
1011 ifeq ($(findstring ENABLE_METER_ELEMENT,$(FEATURE_DEFINES)), ENABLE_METER_ELEMENT)
1012     HTML_FLAGS := $(HTML_FLAGS) ENABLE_METER_ELEMENT=1
1013 endif
1014
1015 ifeq ($(findstring ENABLE_VIDEO,$(FEATURE_DEFINES)), ENABLE_VIDEO)
1016     HTML_FLAGS := $(HTML_FLAGS) ENABLE_VIDEO=1
1017 endif
1018
1019 ifeq ($(findstring ENABLE_VIDEO_TRACK,$(FEATURE_DEFINES)), ENABLE_VIDEO_TRACK)
1020     HTML_FLAGS := $(HTML_FLAGS) ENABLE_VIDEO_TRACK=0
1021 endif
1022
1023 ifeq ($(findstring ENABLE_DATACUE_VALUE,$(FEATURE_DEFINES)), ENABLE_DATACUE_VALUE)
1024         HTML_FLAGS := $(HTML_FLAGS) ENABLE_DATACUE_VALUE=0
1025 endif
1026
1027 ifeq ($(findstring ENABLE_ENCRYPTED_MEDIA,$(FEATURE_DEFINES)), ENABLE_ENCRYPTED_MEDIA)
1028     HTML_FLAGS := $(HTML_FLAGS) ENABLE_ENCRYPTED_MEDIA=1
1029 endif
1030
1031 ifeq ($(findstring ENABLE_MEDIA_STREAM,$(FEATURE_DEFINES)), ENABLE_MEDIA_STREAM)
1032     HTML_FLAGS := $(HTML_FLAGS) ENABLE_MEDIA_STREAM=1
1033 endif
1034
1035 JSHTMLElementWrapperFactory.cpp JSHTMLElementWrapperFactory.h HTMLElementFactory.cpp HTMLElementFactory.h HTMLElementTypeHelpers.h HTMLNames.cpp HTMLNames.h : htmlMakeNames.intermediate
1036 .INTERMEDIATE : htmlMakeNames.intermediate
1037
1038 ifdef HTML_FLAGS
1039
1040 htmlMakeNames.intermediate : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm html/HTMLTagNames.in html/HTMLAttributeNames.in
1041         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory --extraDefines "$(HTML_FLAGS)"
1042
1043 else
1044
1045 htmlMakeNames.intermediate : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm html/HTMLTagNames.in html/HTMLAttributeNames.in
1046         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory
1047
1048 endif
1049
1050 XMLNSNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm xml/xmlnsattrs.in
1051         $(PERL) -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlnsattrs.in
1052
1053 XMLNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm xml/xmlattrs.in
1054         $(PERL) -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlattrs.in
1055
1056 # --------
1057
1058 # SVG tag and attribute names, and element factory
1059
1060 ifeq ($(findstring ENABLE_SVG_FONTS,$(FEATURE_DEFINES)), ENABLE_SVG_FONTS)
1061     SVG_FLAGS := $(SVG_FLAGS) ENABLE_SVG_FONTS=1
1062 endif
1063
1064 # SVG tag and attribute names (need to pass an extra flag if svg experimental features are enabled)
1065
1066 JSSVGElementWrapperFactory.cpp JSSVGElementWrapperFactory.h SVGElementFactory.cpp SVGElementFactory.h SVGElementTypeHelpers.h SVGNames.cpp SVGNames.h : svgMakeNames.intermediate
1067 .INTERMEDIATE : svgMakeNames.intermediate
1068
1069 ifdef SVG_FLAGS
1070 svgMakeNames.intermediate : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm svg/svgtags.in svg/svgattrs.in
1071         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory
1072 else
1073
1074 svgMakeNames.intermediate : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm svg/svgtags.in svg/svgattrs.in
1075         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --factory --wrapperFactory
1076
1077 endif
1078
1079 XLinkNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm svg/xlinkattrs.in
1080         $(PERL) -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in
1081
1082 # --------
1083
1084 # Register event constructors and targets
1085
1086 EventFactory.cpp EventHeaders.h EventInterfaces.h : EventFactory.intermediate
1087 .INTERMEDIATE : EventFactory.intermediate
1088 EventFactory.intermediate : dom/make_event_factory.pl dom/EventNames.in
1089         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventNames.in
1090
1091 EventTargetHeaders.h EventTargetInterfaces.h : EventTargetFactory.intermediate
1092 .INTERMEDIATE : EventTargetFactory.intermediate
1093 EventTargetFactory.intermediate : dom/make_event_factory.pl dom/EventTargetFactory.in
1094         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventTargetFactory.in
1095
1096 ExceptionCodeDescription.cpp ExceptionCodeDescription.h ExceptionHeaders.h ExceptionInterfaces.h : MakeDOMExceptions.intermediate
1097 .INTERMEDIATE : MakeDOMExceptions.intermediate
1098 MakeDOMExceptions.intermediate : dom/make_dom_exceptions.pl dom/DOMExceptions.in
1099         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/DOMExceptions.in
1100
1101 # --------
1102
1103 # MathML tag and attribute names, and element factory
1104
1105 JSMathMLElementWrapperFactory.cpp JSMathMLElementWrapperFactory.h MathMLElementFactory.cpp MathMLElementFactory.h MathMLElementTypeHelpers.h MathMLNames.cpp MathMLNames.h : mathmlMakeNames.intermediate
1106 .INTERMEDIATE : mathmlMakeNames.intermediate
1107 mathmlMakeNames.intermediate : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm mathml/mathtags.in mathml/mathattrs.in
1108         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/mathml/mathtags.in --attrs $(WebCore)/mathml/mathattrs.in --factory --wrapperFactory
1109
1110 # --------
1111
1112 InternalSettingsGenerated.idl InternalSettingsGenerated.cpp InternalSettingsGenerated.h SettingsMacros.h : MakeSettings.intermediate
1113 .INTERMEDIATE : MakeSettings.intermediate
1114 MakeSettings.intermediate : page/make_settings.pl page/Settings.in
1115         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/page/Settings.in
1116
1117 # --------
1118
1119 # Common generator things
1120
1121 GENERATE_SCRIPTS = \
1122     bindings/scripts/CodeGenerator.pm \
1123     bindings/scripts/IDLParser.pm \
1124     bindings/scripts/generate-bindings.pl \
1125     bindings/scripts/preprocessor.pm
1126
1127 PREPROCESS_IDLS_SCRIPTS = \
1128     bindings/scripts/preprocess-idls.pl
1129
1130 generator_script = $(PERL) $(addprefix -I $(WebCore)/, $(sort $(dir $(1)))) $(WebCore)/bindings/scripts/generate-bindings.pl
1131
1132 preprocess_idls_script = $(PERL) $(addprefix -I $(WebCore)/, $(sort $(dir $(1)))) $(WebCore)/bindings/scripts/preprocess-idls.pl
1133
1134 # JS bindings generator
1135
1136 IDL_INCLUDES = \
1137     $(WebCore)/Modules \
1138     $(WebCore)/css \
1139     $(WebCore)/dom \
1140     $(WebCore)/fileapi \
1141     $(WebCore)/html \
1142     $(WebCore)/html/canvas \
1143     $(WebCore)/html/shadow \
1144     $(WebCore)/html/track \
1145     $(WebCore)/inspector \
1146     $(WebCore)/loader/appcache \
1147     $(WebCore)/page \
1148     $(WebCore)/plugins \
1149     $(WebCore)/storage \
1150     $(WebCore)/svg \
1151     $(WebCore)/workers \
1152     $(WebCore)/xml
1153
1154 IDL_COMMON_ARGS = $(IDL_INCLUDES:%=--include %) --write-dependencies --outputDir .
1155
1156 JS_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorJS.pm
1157
1158 SUPPLEMENTAL_DEPENDENCY_FILE = ./SupplementalDependencies.txt
1159 SUPPLEMENTAL_MAKEFILE_DEPS = ./SupplementalDependencies.dep
1160 WINDOW_CONSTRUCTORS_FILE = ./DOMWindowConstructors.idl
1161 WORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./WorkerGlobalScopeConstructors.idl
1162 DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./DedicatedWorkerGlobalScopeConstructors.idl
1163 IDL_FILES_TMP = ./idl_files.tmp
1164 IDL_ATTRIBUTES_FILE = $(WebCore)/bindings/scripts/IDLAttributes.txt
1165
1166 # The following two lines get a space character stored in a variable.
1167 # See <http://blog.jgc.org/2007/06/escaping-comma-and-space-in-gnu-make.html>.
1168 space :=
1169 space +=
1170
1171 $(SUPPLEMENTAL_MAKEFILE_DEPS) : $(PREPROCESS_IDLS_SCRIPTS) $(BINDING_IDLS) $(PLATFORM_FEATURE_DEFINES) DerivedSources.make
1172         printf "$(subst $(space),,$(patsubst %,%\n,$(BINDING_IDLS)))" > $(IDL_FILES_TMP)
1173         $(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) --workerGlobalScopeConstructorsFile $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --dedicatedWorkerGlobalScopeConstructorsFile $(DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE) --supplementalMakefileDeps $@
1174         rm -f $(IDL_FILES_TMP)
1175
1176 JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) $(IDL_ATTRIBUTES_FILE) $(WINDOW_CONSTRUCTORS_FILE) $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) $(PLATFORM_FEATURE_DEFINES)
1177         $(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) $<
1178
1179 -include $(SUPPLEMENTAL_MAKEFILE_DEPS)
1180
1181 # Inspector interfaces
1182
1183 all : InspectorOverlayPage.h
1184
1185 InspectorOverlayPage.h : InspectorOverlayPage.html InspectorOverlayPage.css InspectorOverlayPage.js
1186         $(PYTHON) $(InspectorScripts)/inline-and-minify-stylesheets-and-scripts.py $(WebCore)/inspector/InspectorOverlayPage.html ./InspectorOverlayPage.combined.html
1187         $(PERL) $(InspectorScripts)/xxd.pl InspectorOverlayPage_html ./InspectorOverlayPage.combined.html InspectorOverlayPage.h
1188         rm -f ./InspectorOverlayPage.combined.html
1189
1190 all : CommandLineAPIModuleSource.h
1191
1192 CommandLineAPIModuleSource.h : CommandLineAPIModuleSource.js
1193         echo "//# sourceURL=__WebInspectorCommandLineAPIModuleSource__" > ./CommandLineAPIModuleSource.min.js
1194         $(PYTHON) $(InspectorScripts)/jsmin.py <$(WebCore)/inspector/CommandLineAPIModuleSource.js >> ./CommandLineAPIModuleSource.min.js
1195         $(PERL) $(InspectorScripts)/xxd.pl CommandLineAPIModuleSource_js ./CommandLineAPIModuleSource.min.js CommandLineAPIModuleSource.h
1196         rm -f ./CommandLineAPIModuleSource.min.js
1197
1198 # Web Replay inputs generator
1199
1200 INPUT_GENERATOR_SCRIPTS = \
1201     $(WebReplayScripts)/CodeGeneratorReplayInputs.py \
1202     $(WebReplayScripts)/CodeGeneratorReplayInputsTemplates.py \
1203 #
1204
1205 INPUT_GENERATOR_SPECIFICATIONS = \
1206         $(WebCore)/replay/WebInputs.json \
1207         $(WebReplayScripts)/JSInputs.json \
1208 #
1209
1210 all : WebReplayInputs.h
1211
1212 WebReplayInputs.h : $(INPUT_GENERATOR_SPECIFICATIONS) $(INPUT_GENERATOR_SCRIPTS)
1213         $(PYTHON) $(WebReplayScripts)/CodeGeneratorReplayInputs.py --outputDir . --framework WebCore $(INPUT_GENERATOR_SPECIFICATIONS)
1214
1215 -include $(JS_DOM_HEADERS:.h=.dep)
1216
1217 # ------------------------
1218
1219 # Mac-specific rules
1220
1221 ifeq ($(OS),MACOS)
1222
1223 OBJC_DOM_CLASSES=$(basename $(notdir $(NON_SVG_BINDING_IDLS)))
1224
1225 OBJC_DOM_HEADERS=$(filter-out DOMDOMWindow.h DOMDOMMimeType.h DOMDOMPlugin.h,$(OBJC_DOM_CLASSES:%=DOM%.h))
1226
1227 all : $(OBJC_DOM_HEADERS)
1228
1229 all : CharsetData.cpp
1230
1231 # --------
1232
1233 # character set name table
1234
1235 ifeq ($(WTF_PLATFORM_IOS),1)
1236 ENCODINGS_FILENAME := ios-encodings.txt
1237 else
1238 ENCODINGS_FILENAME := mac-encodings.txt
1239 endif # WTF_PLATFORM_IOS
1240
1241 CharsetData.cpp : platform/text/mac/make-charset-table.pl platform/text/mac/character-sets.txt platform/text/mac/$(ENCODINGS_FILENAME)
1242         $(PERL) $^ kTextEncoding > $@
1243
1244 # --------
1245
1246 # Objective-C bindings
1247
1248 DOM_BINDINGS_SCRIPTS = $(GENERATE_BINDING_SCRIPTS) bindings/scripts/CodeGeneratorObjC.pm
1249 DOM%.h : %.idl $(DOM_BINDINGS_SCRIPTS) bindings/objc/PublicDOMInterfaces.h $(PLATFORM_FEATURE_DEFINES)
1250         $(call generator_script, $(DOM_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
1251
1252 -include $(OBJC_DOM_HEADERS:.h=.dep)
1253
1254 # --------
1255
1256 endif # MACOS
1257
1258 # ------------------------
1259
1260 # Header detection
1261
1262 ifeq ($(OS),Windows_NT)
1263
1264 all : WebCoreHeaderDetection.h
1265
1266 WebCoreHeaderDetection.h : DerivedSources.make
1267         echo "/* Identifying AVFoundation Support */" > $@
1268         if [ -f "$(WEBKIT_LIBRARIES)/include/AVFoundationCF/AVCFBase.h" ]||[ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFBase.h" ]; then echo "#define HAVE_AVCF 1" >> $@; else echo >> $@; fi
1269         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
1270         if [ -f "$(WEBKIT_LIBRARIES)/include/AVFoundationCF/AVCFAssetResourceLoader.h" ]||[ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFAssetResourceLoader.h" ]; then echo "#define HAVE_AVFOUNDATION_LOADER_DELEGATE 1" >> $@; else echo >> $@; fi
1271
1272 endif # Windows_NT