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