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