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