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