a9cf6c21ea23fe5a1b1f67fb5f4f3698955e3f48
[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) -isysroot $(SDKROOT) -std=gnu++11 -x c++ -E -P -dM -F $(BUILT_PRODUCTS_DIR) $(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 ENABLE_ORIENTATION_EVENTS | cut -d' ' -f3), 1)
704     ENABLE_ORIENTATION_EVENTS = 1
705 endif
706
707 ifeq ($(PLATFORM_FEATURE_DEFINES),)
708 PLATFORM_FEATURE_DEFINES = Configurations/FeatureDefines.xcconfig
709 endif
710
711 ifeq ($(WTF_PLATFORM_IOS), 1)
712
713 ADDITIONAL_BINDING_IDLS = \
714     GestureEvent.idl \
715     Touch.idl \
716     TouchEvent.idl \
717     TouchList.idl
718
719 NON_SVG_BINDING_IDLS += $(ADDITIONAL_BINDING_IDLS)
720
721 all : $(ADDITIONAL_BINDING_IDLS:%.idl=JS%.h)
722
723 vpath %.idl $(BUILT_PRODUCTS_DIR)/usr/local/include $(SDKROOT)/usr/local/include
724
725 $(ADDITIONAL_BINDING_IDLS) : % : WebKitAdditions/%
726         cp $< .
727
728 endif
729
730 endif # MACOS
731
732 ifneq ($(WTF_PLATFORM_IOS), 1)
733 NON_SVG_BINDING_IDLS += \
734     $(WebCore)/dom/Touch.idl \
735     $(WebCore)/dom/TouchEvent.idl \
736     $(WebCore)/dom/TouchList.idl
737 endif
738
739 .PHONY : all
740
741 BINDING_IDLS = $(NON_SVG_BINDING_IDLS) $(SVG_BINDING_IDLS)
742
743 JS_DOM_CLASSES=$(basename $(notdir $(BINDING_IDLS)))
744
745 JS_DOM_HEADERS=$(filter-out JSEventListener.h, $(JS_DOM_CLASSES:%=JS%.h))
746
747 WEB_DOM_HEADERS :=
748
749 all : \
750     $(SUPPLEMENTAL_DEPENDENCY_FILE) \
751     $(WINDOW_CONSTRUCTORS_FILE) \
752     $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) \
753     $(JS_DOM_HEADERS) \
754     $(WEB_DOM_HEADERS) \
755     \
756     CSSGrammar.cpp \
757     CSSPropertyNames.h \
758     CSSValueKeywords.h \
759     ColorData.cpp \
760     EventFactory.cpp \
761     EventTargetInterfaces.h \
762     ExceptionCodeDescription.cpp \
763     HTMLElementFactory.cpp \
764     HTMLEntityTable.cpp \
765     HTMLNames.cpp \
766     HTTPHeaderNames.h \
767     JSHTMLElementWrapperFactory.cpp \
768     JSSVGElementWrapperFactory.cpp \
769     PlugInsResources.h \
770     SVGElementFactory.cpp \
771     SVGNames.cpp \
772     SelectorPseudoClassAndCompatibilityElementMap.cpp \
773     SelectorPseudoElementTypeMap.cpp \
774     UserAgentStyleSheets.h \
775     WebKitFontFamilyNames.cpp \
776     WebKitFontFamilyNames.h \
777     XLinkNames.cpp \
778     XMLNSNames.cpp \
779     XMLNames.cpp \
780     MathMLElementFactory.cpp \
781     MathMLNames.cpp \
782     XPathGrammar.cpp \
783 #
784
785 # --------
786
787 ADDITIONAL_IDL_DEFINES :=
788
789 ifndef ENABLE_ORIENTATION_EVENTS
790     ENABLE_ORIENTATION_EVENTS = 0
791 endif
792
793 ifeq ($(ENABLE_ORIENTATION_EVENTS), 1)
794     ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) ENABLE_ORIENTATION_EVENTS
795 endif
796
797 # --------
798
799 # CSS property names and value keywords
800
801 WEBCORE_CSS_PROPERTY_NAMES := $(WebCore)/css/CSSPropertyNames.in
802 WEBCORE_CSS_VALUE_KEYWORDS := $(WebCore)/css/CSSValueKeywords.in
803 WEBCORE_CSS_PROPERTY_NAMES := $(WEBCORE_CSS_PROPERTY_NAMES) $(WebCore)/css/SVGCSSPropertyNames.in
804 WEBCORE_CSS_VALUE_KEYWORDS := $(WEBCORE_CSS_VALUE_KEYWORDS) $(WebCore)/css/SVGCSSValueKeywords.in
805
806 CSSPropertyNames.h : $(WEBCORE_CSS_PROPERTY_NAMES) css/makeprop.pl bindings/scripts/preprocessor.pm $(PLATFORM_FEATURE_DEFINES)
807         $(PERL) -pe '' $(WEBCORE_CSS_PROPERTY_NAMES) > CSSPropertyNames.in
808         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makeprop.pl" --defines "$(FEATURE_DEFINES)"
809
810 CSSValueKeywords.h : $(WEBCORE_CSS_VALUE_KEYWORDS) css/makevalues.pl bindings/scripts/preprocessor.pm $(PLATFORM_FEATURE_DEFINES)
811         $(PERL) -pe '' $(WEBCORE_CSS_VALUE_KEYWORDS) > CSSValueKeywords.in
812         $(PERL) -I$(WebCore)/bindings/scripts "$(WebCore)/css/makevalues.pl" --defines "$(FEATURE_DEFINES)"
813
814 # --------
815
816 # CSS Selector pseudo type name to value map.
817
818 WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS := $(WebCore)/css/SelectorPseudoClassAndCompatibilityElementMap.in
819 SelectorPseudoClassAndCompatibilityElementMap.cpp : $(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py $(WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS)
820         $(PYTHON) "$(WebCore)/css/makeSelectorPseudoClassAndCompatibilityElementMap.py" $(WEBCORE_CSS_SELECTOR_PSEUDO_TYPE_MAP_KEYWORDS) "$(FEATURE_DEFINES)"
821
822 WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS := $(WebCore)/css/SelectorPseudoElementTypeMap.in
823 SelectorPseudoElementTypeMap.cpp : $(WebCore)/css/makeSelectorPseudoElementsMap.py $(WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS)
824         $(PYTHON) "$(WebCore)/css/makeSelectorPseudoElementsMap.py" $(WEBCORE_CSS_SELECTOR_PSEUDO_ELEMENTS_TYPE_MAP_KEYWORDS) "$(FEATURE_DEFINES)"
825
826 # --------
827
828 # XMLViewer CSS
829
830 all : XMLViewerCSS.h
831
832 XMLViewerCSS.h : xml/XMLViewer.css
833         $(PYTHON) $(InspectorScripts)/cssmin.py <"$(WebCore)/xml/XMLViewer.css" > ./XMLViewer.min.css
834         $(PERL) $(InspectorScripts)/xxd.pl XMLViewer_css ./XMLViewer.min.css XMLViewerCSS.h
835         rm -f ./XMLViewer.min.css
836
837 # --------
838
839 # XMLViewer JS
840
841 all : XMLViewerJS.h
842
843 XMLViewerJS.h : xml/XMLViewer.js
844         $(PYTHON) $(InspectorScripts)/jsmin.py <"$(WebCore)/xml/XMLViewer.js" > ./XMLViewer.min.js
845         $(PERL) $(InspectorScripts)/xxd.pl XMLViewer_js ./XMLViewer.min.js XMLViewerJS.h
846         rm -f ./XMLViewer.min.js
847
848 # --------
849
850 # HTML entity names
851
852 HTMLEntityTable.cpp : html/parser/HTMLEntityNames.in $(WebCore)/html/parser/create-html-entity-table
853         $(PYTHON) $(WebCore)/html/parser/create-html-entity-table -o HTMLEntityTable.cpp $(WebCore)/html/parser/HTMLEntityNames.in
854
855 # --------
856
857 # HTTP header names
858
859 HTTPHeaderNames.h : platform/network/HTTPHeaderNames.in $(WebCore)/platform/network/create-http-header-name-table
860         $(PYTHON) $(WebCore)/platform/network/create-http-header-name-table $(WebCore)/platform/network/HTTPHeaderNames.in
861
862 # --------
863
864 # color names
865
866 ColorData.cpp : platform/ColorData.gperf $(WebCore)/make-hash-tools.pl
867         $(PERL) $(WebCore)/make-hash-tools.pl . $(WebCore)/platform/ColorData.gperf
868
869 # --------
870
871 # Path to bison
872
873 ifeq ($(OS),MACOS)
874 BISON=$(shell xcrun -find bison)
875 else
876 BISON=bison
877 endif
878
879 # --------
880
881 # CSS grammar
882 CSSGrammar.cpp : css/CSSGrammar.y.in $(PLATFORM_FEATURE_DEFINES)
883         $(PERL) -I $(WebCore)/bindings/scripts $(WebCore)/css/makegrammar.pl --extraDefines "$(FEATURE_DEFINES)" --outputDir . --bison "$(BISON)" --symbolsPrefix cssyy $<
884
885 # --------
886
887 # XPath grammar
888 XPathGrammar.cpp : xml/XPathGrammar.y $(PROJECT_FILE)
889         $(PERL) $(WebCore)/css/makegrammar.pl --outputDir . --bison "$(BISON)" --symbolsPrefix xpathyy $<
890
891 # --------
892
893 # user agent style sheets
894
895 USER_AGENT_STYLE_SHEETS = $(WebCore)/css/html.css $(WebCore)/css/quirks.css $(WebCore)/css/themeWin.css $(WebCore)/css/themeWinQuirks.css $(WebCore)/css/plugIns.css
896 USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/svg.css
897
898 ifeq ($(findstring ENABLE_MATHML,$(FEATURE_DEFINES)), ENABLE_MATHML)
899     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/mathml.css
900 endif
901
902 ifeq ($(findstring ENABLE_VIDEO,$(FEATURE_DEFINES)), ENABLE_VIDEO)
903     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/mediaControls.css
904 endif
905
906 ifeq ($(findstring ENABLE_FULLSCREEN_API,$(FEATURE_DEFINES)), ENABLE_FULLSCREEN_API)
907     USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/css/fullscreen.css
908 endif
909
910 ifeq ($(findstring ENABLE_SERVICE_CONTROLS,$(FEATURE_DEFINES)), ENABLE_SERVICE_CONTROLS)
911         USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/html/shadow/mac/imageControlsMac.css
912 endif
913
914 ifeq ($(OS),MACOS)
915         USER_AGENT_STYLE_SHEETS := $(USER_AGENT_STYLE_SHEETS) $(WebCore)/Modules/plugins/QuickTimePluginReplacement.css
916 endif
917
918 UserAgentStyleSheets.h : css/make-css-file-arrays.pl bindings/scripts/preprocessor.pm $(USER_AGENT_STYLE_SHEETS) $(PLATFORM_FEATURE_DEFINES)
919         $(PERL) -I$(WebCore)/bindings/scripts $< --defines "$(FEATURE_DEFINES)" $@ UserAgentStyleSheetsData.cpp $(USER_AGENT_STYLE_SHEETS)
920
921 # --------
922
923 # user agent scripts
924
925 USER_AGENT_SCRIPTS = 
926
927 ifeq ($(OS),MACOS)
928         USER_AGENT_SCRIPTS := $(USER_AGENT_SCRIPTS) $(WebCore)/Modules/plugins/QuickTimePluginReplacement.js
929 endif
930
931 ifdef USER_AGENT_SCRIPTS
932 all : UserAgentScripts.h
933
934 UserAgentScripts.h : Scripts/make-js-file-arrays.py $(USER_AGENT_SCRIPTS)
935         PYTHONPATH=$(InspectorScripts) $(PYTHON) $< $@ UserAgentScriptsData.cpp $(USER_AGENT_SCRIPTS)
936 endif
937
938 # --------
939
940 # plugIns resources
941
942 PLUG_INS_RESOURCES = $(WebCore)/Resources/plugIns.js
943
944 PlugInsResources.h : css/make-css-file-arrays.pl bindings/scripts/preprocessor.pm $(PLUG_INS_RESOURCES) $(PLATFORM_FEATURE_DEFINES)
945         $(PERL) -I$(WebCore)/bindings/scripts $< --defines "$(FEATURE_DEFINES)" $@ PlugInsResourcesData.cpp $(PLUG_INS_RESOURCES)
946
947 # --------
948
949 WebKitFontFamilyNames.cpp WebKitFontFamilyNames.h : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm css/WebKitFontFamilyNames.in
950         $(PERL) -I $(WebCore)/bindings/scripts $< --fonts $(WebCore)/css/WebKitFontFamilyNames.in
951
952 # HTML tag and attribute names
953
954 ifeq ($(findstring ENABLE_DATALIST_ELEMENT,$(FEATURE_DEFINES)), ENABLE_DATALIST_ELEMENT)
955     HTML_FLAGS := $(HTML_FLAGS) ENABLE_DATALIST_ELEMENT=1
956 endif
957
958 ifeq ($(findstring ENABLE_DETAILS_ELEMENT,$(FEATURE_DEFINES)), ENABLE_DETAILS_ELEMENT)
959     HTML_FLAGS := $(HTML_FLAGS) ENABLE_DETAILS_ELEMENT=1
960 endif
961
962 ifeq ($(findstring ENABLE_ENCRYPTED_MEDIA_V2,$(FEATURE_DEFINES)), ENABLE_ENCRYPTED_MEDIA_V2)
963         HTML_FLAGS := $(HTML_FLAGS) ENABLE_ENCRYPTED_MEDIA_V2=1
964 endif
965
966 ifeq ($(findstring ENABLE_METER_ELEMENT,$(FEATURE_DEFINES)), ENABLE_METER_ELEMENT)
967     HTML_FLAGS := $(HTML_FLAGS) ENABLE_METER_ELEMENT=1
968 endif
969
970 ifeq ($(findstring ENABLE_VIDEO,$(FEATURE_DEFINES)), ENABLE_VIDEO)
971     HTML_FLAGS := $(HTML_FLAGS) ENABLE_VIDEO=1
972 endif
973
974 ifeq ($(findstring ENABLE_VIDEO_TRACK,$(FEATURE_DEFINES)), ENABLE_VIDEO_TRACK)
975     HTML_FLAGS := $(HTML_FLAGS) ENABLE_VIDEO_TRACK=0
976 endif
977
978 ifeq ($(findstring ENABLE_DATACUE_VALUE,$(FEATURE_DEFINES)), ENABLE_DATACUE_VALUE)
979         HTML_FLAGS := $(HTML_FLAGS) ENABLE_DATACUE_VALUE=0
980 endif
981
982 ifeq ($(findstring ENABLE_ENCRYPTED_MEDIA,$(FEATURE_DEFINES)), ENABLE_ENCRYPTED_MEDIA)
983     HTML_FLAGS := $(HTML_FLAGS) ENABLE_ENCRYPTED_MEDIA=1
984 endif
985
986 ifeq ($(findstring ENABLE_MEDIA_STREAM,$(FEATURE_DEFINES)), ENABLE_MEDIA_STREAM)
987     HTML_FLAGS := $(HTML_FLAGS) ENABLE_MEDIA_STREAM=1
988 endif
989
990 ifdef HTML_FLAGS
991
992 HTMLElementFactory.cpp HTMLNames.cpp JSHTMLElementWrapperFactory.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm html/HTMLTagNames.in html/HTMLAttributeNames.in
993         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory --extraDefines "$(HTML_FLAGS)"
994
995 else
996
997 HTMLElementFactory.cpp HTMLNames.cpp JSHTMLElementWrapperFactory.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm html/HTMLTagNames.in html/HTMLAttributeNames.in
998         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/html/HTMLTagNames.in --attrs $(WebCore)/html/HTMLAttributeNames.in --factory --wrapperFactory
999
1000 endif
1001
1002 XMLNSNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm xml/xmlnsattrs.in
1003         $(PERL) -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlnsattrs.in
1004
1005 XMLNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm xml/xmlattrs.in
1006         $(PERL) -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/xml/xmlattrs.in
1007
1008 # --------
1009
1010 # SVG tag and attribute names, and element factory
1011
1012 ifeq ($(findstring ENABLE_SVG_FONTS,$(FEATURE_DEFINES)), ENABLE_SVG_FONTS)
1013     SVG_FLAGS := $(SVG_FLAGS) ENABLE_SVG_FONTS=1
1014 endif
1015
1016 ifeq ($(findstring ENABLE_FILTERS,$(FEATURE_DEFINES)), ENABLE_FILTERS)
1017     SVG_FLAGS := $(SVG_FLAGS) ENABLE_FILTERS=1
1018 endif
1019
1020 # SVG tag and attribute names (need to pass an extra flag if svg experimental features are enabled)
1021
1022 ifdef SVG_FLAGS
1023
1024 JSSVGElementWrapperFactory.cpp SVGElementFactory.cpp SVGNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm svg/svgtags.in svg/svgattrs.in
1025         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --extraDefines "$(SVG_FLAGS)" --factory --wrapperFactory
1026 else
1027
1028 JSSVGElementWrapperFactory.cpp SVGElementFactory.cpp SVGNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm svg/svgtags.in svg/svgattrs.in
1029         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/svg/svgtags.in --attrs $(WebCore)/svg/svgattrs.in --factory --wrapperFactory
1030
1031 endif
1032
1033 XLinkNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm svg/xlinkattrs.in
1034         $(PERL) -I $(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in
1035
1036 # --------
1037
1038 # Register event constructors and targets
1039
1040 EventFactory.cpp EventHeaders.h EventInterfaces.h : dom/make_event_factory.pl dom/EventNames.in
1041         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventNames.in
1042
1043 EventTargetHeaders.h EventTargetInterfaces.h : dom/make_event_factory.pl dom/EventTargetFactory.in
1044         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/EventTargetFactory.in
1045
1046 ExceptionCodeDescription.cpp ExceptionCodeDescription.h ExceptionHeaders.h ExceptionInterfaces.h : dom/make_dom_exceptions.pl dom/DOMExceptions.in
1047         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/dom/DOMExceptions.in
1048
1049 # --------
1050
1051 # MathML tag and attribute names, and element factory
1052
1053 MathMLElementFactory.cpp MathMLNames.cpp : dom/make_names.pl bindings/scripts/Hasher.pm bindings/scripts/StaticString.pm mathml/mathtags.in mathml/mathattrs.in
1054         $(PERL) -I $(WebCore)/bindings/scripts $< --tags $(WebCore)/mathml/mathtags.in --attrs $(WebCore)/mathml/mathattrs.in --factory --wrapperFactory
1055
1056 # --------
1057
1058 InternalSettingsGenerated.idl InternalSettingsGenerated.cpp InternalSettingsGenerated.h SettingsMacros.h : page/make_settings.pl page/Settings.in
1059         $(PERL) -I $(WebCore)/bindings/scripts $< --input $(WebCore)/page/Settings.in
1060
1061 # --------
1062
1063 # Common generator things
1064
1065 GENERATE_SCRIPTS = \
1066     bindings/scripts/CodeGenerator.pm \
1067     bindings/scripts/IDLParser.pm \
1068     bindings/scripts/generate-bindings.pl \
1069     bindings/scripts/preprocessor.pm
1070
1071 PREPROCESS_IDLS_SCRIPTS = \
1072     bindings/scripts/preprocess-idls.pl
1073
1074 generator_script = $(PERL) $(addprefix -I $(WebCore)/, $(sort $(dir $(1)))) $(WebCore)/bindings/scripts/generate-bindings.pl
1075
1076 preprocess_idls_script = $(PERL) $(addprefix -I $(WebCore)/, $(sort $(dir $(1)))) $(WebCore)/bindings/scripts/preprocess-idls.pl
1077
1078 # JS bindings generator
1079
1080 IDL_INCLUDES = \
1081     $(WebCore)/Modules \
1082     $(WebCore)/css \
1083     $(WebCore)/dom \
1084     $(WebCore)/fileapi \
1085     $(WebCore)/html \
1086     $(WebCore)/html/canvas \
1087     $(WebCore)/html/shadow \
1088     $(WebCore)/html/track \
1089     $(WebCore)/inspector \
1090     $(WebCore)/loader/appcache \
1091     $(WebCore)/page \
1092     $(WebCore)/plugins \
1093     $(WebCore)/storage \
1094     $(WebCore)/svg \
1095     $(WebCore)/workers \
1096     $(WebCore)/xml
1097
1098 IDL_COMMON_ARGS = $(IDL_INCLUDES:%=--include %) --write-dependencies --outputDir .
1099
1100 JS_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorJS.pm
1101
1102 SUPPLEMENTAL_DEPENDENCY_FILE = ./SupplementalDependencies.txt
1103 SUPPLEMENTAL_MAKEFILE_DEPS = ./SupplementalDependencies.dep
1104 WINDOW_CONSTRUCTORS_FILE = ./DOMWindowConstructors.idl
1105 WORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./WorkerGlobalScopeConstructors.idl
1106 SHAREDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./SharedWorkerGlobalScopeConstructors.idl
1107 DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE = ./DedicatedWorkerGlobalScopeConstructors.idl
1108 IDL_FILES_TMP = ./idl_files.tmp
1109 IDL_ATTRIBUTES_FILE = $(WebCore)/bindings/scripts/IDLAttributes.txt
1110
1111 # The following two lines get a space character stored in a variable.
1112 # See <http://blog.jgc.org/2007/06/escaping-comma-and-space-in-gnu-make.html>.
1113 space :=
1114 space +=
1115
1116 $(SUPPLEMENTAL_MAKEFILE_DEPS) : $(PREPROCESS_IDLS_SCRIPTS) $(BINDING_IDLS) $(PLATFORM_FEATURE_DEFINES)
1117         printf "$(subst $(space),,$(patsubst %,%\n,$(BINDING_IDLS)))" > $(IDL_FILES_TMP)
1118         $(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 $@
1119         rm -f $(IDL_FILES_TMP)
1120
1121 JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) $(IDL_ATTRIBUTES_FILE) $(WINDOW_CONSTRUCTORS_FILE) $(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE) $(PLATFORM_FEATURE_DEFINES)
1122         $(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) $<
1123
1124 -include $(SUPPLEMENTAL_MAKEFILE_DEPS)
1125
1126 # Inspector interfaces generator
1127
1128 INSPECTOR_DOMAINS = \
1129     $(WebCore)/inspector/protocol/ApplicationCache.json \
1130     $(WebCore)/inspector/protocol/CSS.json \
1131     $(WebCore)/inspector/protocol/DOM.json \
1132     $(WebCore)/inspector/protocol/DOMDebugger.json \
1133     $(WebCore)/inspector/protocol/DOMStorage.json \
1134     $(WebCore)/inspector/protocol/LayerTree.json \
1135     $(WebCore)/inspector/protocol/Network.json \
1136     $(WebCore)/inspector/protocol/Page.json \
1137     $(WebCore)/inspector/protocol/Timeline.json \
1138     $(WebCore)/inspector/protocol/Worker.json \
1139 #
1140
1141 ifeq ($(findstring ENABLE_SQL_DATABASE,$(FEATURE_DEFINES)), ENABLE_SQL_DATABASE)
1142     INSPECTOR_DOMAINS := $(INSPECTOR_DOMAINS) $(WebCore)/inspector/protocol/Database.json
1143 endif
1144
1145 ifeq ($(findstring ENABLE_INDEXED_DATABASE,$(FEATURE_DEFINES)), ENABLE_INDEXED_DATABASE)
1146     INSPECTOR_DOMAINS := $(INSPECTOR_DOMAINS) $(WebCore)/inspector/protocol/IndexedDB.json
1147 endif
1148
1149 ifeq ($(findstring ENABLE_WEB_REPLAY,$(FEATURE_DEFINES)), ENABLE_WEB_REPLAY)
1150     INSPECTOR_DOMAINS := $(INSPECTOR_DOMAINS) $(WebCore)/inspector/protocol/Replay.json
1151 endif
1152
1153 INSPECTOR_GENERATOR_SCRIPTS = \
1154     $(InspectorScripts)/generate_backend_commands.py \
1155     $(InspectorScripts)/generate_backend_dispatcher_header.py \
1156     $(InspectorScripts)/generate_backend_dispatcher_implementation.py \
1157     $(InspectorScripts)/generate_frontend_dispatcher_header.py \
1158     $(InspectorScripts)/generate_frontend_dispatcher_implementation.py \
1159     $(InspectorScripts)/generate_type_builder_header.py \
1160     $(InspectorScripts)/generate_type_builder_implementation.py \
1161     $(InspectorScripts)/generator_templates.py \
1162     $(InspectorScripts)/generator.py \
1163     $(InspectorScripts)/generate-combined-inspector-json.py \
1164     $(InspectorScripts)/generate-inspector-protocol-bindings.py \
1165     $(InspectorScripts)/models.py \
1166 #
1167
1168 all : InspectorWeb.json
1169
1170 # The combined JSON file depends on the actual set of domains and their file contents, so that
1171 # adding, modifying, or removing domains will trigger regeneration of inspector files.
1172
1173 .PHONY: force
1174 EnabledInspectorDomains : force
1175         echo '$(INSPECTOR_DOMAINS)' | cmp -s - $@ || echo '$(INSPECTOR_DOMAINS)' > $@
1176
1177 InspectorWeb.json : $(InspectorScripts)/generate-combined-inspector-json.py $(INSPECTOR_DOMAINS) EnabledInspectorDomains
1178         $(PYTHON) $(InspectorScripts)/generate-combined-inspector-json.py $(INSPECTOR_DOMAINS) > ./InspectorWeb.json
1179
1180 all : InspectorWebFrontendDispatchers.h
1181
1182 InspectorWebFrontendDispatchers.h : InspectorWeb.json $(InspectorScripts)/InspectorJS.json $(INSPECTOR_GENERATOR_SCRIPTS)
1183         $(PYTHON) $(InspectorScripts)/generate-inspector-protocol-bindings.py --framework WebCore --outputDir . ./InspectorWeb.json $(InspectorScripts)/InspectorJS.json
1184
1185 all : InspectorOverlayPage.h
1186
1187 InspectorOverlayPage.h : InspectorOverlayPage.html InspectorOverlayPage.css InspectorOverlayPage.js
1188         $(PYTHON) $(InspectorScripts)/inline-and-minify-stylesheets-and-scripts.py $(WebCore)/inspector/InspectorOverlayPage.html ./InspectorOverlayPage.combined.html
1189         $(PERL) $(InspectorScripts)/xxd.pl InspectorOverlayPage_html ./InspectorOverlayPage.combined.html InspectorOverlayPage.h
1190         rm -f ./InspectorOverlayPage.combined.html
1191
1192 all : CommandLineAPIModuleSource.h
1193
1194 CommandLineAPIModuleSource.h : CommandLineAPIModuleSource.js
1195         echo "//# sourceURL=__WebInspectorCommandLineAPIModuleSource__" > ./CommandLineAPIModuleSource.min.js
1196         $(PYTHON) $(InspectorScripts)/jsmin.py <$(WebCore)/inspector/CommandLineAPIModuleSource.js >> ./CommandLineAPIModuleSource.min.js
1197         $(PERL) $(InspectorScripts)/xxd.pl CommandLineAPIModuleSource_js ./CommandLineAPIModuleSource.min.js CommandLineAPIModuleSource.h
1198         rm -f ./CommandLineAPIModuleSource.min.js
1199
1200 # Web Replay inputs generator
1201
1202 INPUT_GENERATOR_SCRIPTS = \
1203     $(WebReplayScripts)/CodeGeneratorReplayInputs.py \
1204     $(WebReplayScripts)/CodeGeneratorReplayInputsTemplates.py \
1205 #
1206
1207 INPUT_GENERATOR_SPECIFICATIONS = \
1208         $(WebCore)/replay/WebInputs.json \
1209 #
1210
1211 all : WebReplayInputs.h
1212
1213 WebReplayInputs.h : $(INPUT_GENERATOR_SPECIFICATIONS) $(INPUT_GENERATOR_SCRIPTS)
1214         $(PYTHON) $(WebReplayScripts)/CodeGeneratorReplayInputs.py --outputDir . --framework WebCore $(INPUT_GENERATOR_SPECIFICATIONS)
1215
1216 -include $(JS_DOM_HEADERS:.h=.dep)
1217
1218 # ------------------------
1219
1220 # Mac-specific rules
1221
1222 ifeq ($(OS),MACOS)
1223
1224 OBJC_DOM_CLASSES=$(basename $(notdir $(NON_SVG_BINDING_IDLS)))
1225
1226 OBJC_DOM_HEADERS=$(filter-out DOMDOMWindow.h DOMDOMMimeType.h DOMDOMPlugin.h,$(OBJC_DOM_CLASSES:%=DOM%.h))
1227
1228 all : $(OBJC_DOM_HEADERS)
1229
1230 all : CharsetData.cpp
1231
1232 # --------
1233
1234 # character set name table
1235
1236 ifeq ($(WTF_PLATFORM_IOS),1)
1237 ENCODINGS_FILENAME := ios-encodings.txt
1238 else
1239 ENCODINGS_FILENAME := mac-encodings.txt
1240 endif # WTF_PLATFORM_IOS
1241
1242 CharsetData.cpp : platform/text/mac/make-charset-table.pl platform/text/mac/character-sets.txt platform/text/mac/$(ENCODINGS_FILENAME)
1243         $(PERL) $^ kTextEncoding > $@
1244
1245 # --------
1246
1247 ifneq ($(ACTION),installhdrs)
1248
1249 ifeq ($(WTF_PLATFORM_IOS),1)
1250
1251 ifeq ($(findstring armv7,$(ARCHS)), armv7)
1252     WEBCORE_EXPORT_FILES := $(WEBCORE_EXPORT_FILES) WebCore.LP64.armv7.exp
1253 endif
1254 ifeq ($(findstring armv7k,$(ARCHS)), armv7k)
1255     WEBCORE_EXPORT_FILES := $(WEBCORE_EXPORT_FILES) WebCore.LP64.armv7k.exp
1256 endif
1257 ifeq ($(findstring armv7s,$(ARCHS)), armv7s)
1258     WEBCORE_EXPORT_FILES := $(WEBCORE_EXPORT_FILES) WebCore.LP64.armv7s.exp
1259 endif
1260 ifeq ($(findstring arm64,$(ARCHS)), arm64)
1261     WEBCORE_EXPORT_FILES := $(WEBCORE_EXPORT_FILES) WebCore.LP64.arm64.exp
1262 endif
1263 ifeq ($(findstring i386,$(ARCHS)), i386)
1264     WEBCORE_EXPORT_FILES := $(WEBCORE_EXPORT_FILES) WebCore.LP64.i386.exp
1265 endif
1266 ifeq ($(findstring x86_64,$(ARCHS)), x86_64)
1267     WEBCORE_EXPORT_FILES := $(WEBCORE_EXPORT_FILES) WebCore.LP64.x86_64.exp
1268 endif
1269
1270 all : $(WEBCORE_EXPORT_FILES)
1271
1272 WebCore.%.exp : generate-export-file WebCore.exp.in
1273         $^ $@
1274
1275 # Switch NSRect, NSSize and NSPoint with their CG counterparts for the 64-bit exports file.
1276 WebCore.LP64.%.exp : WebCore.%.exp
1277         cat $^ | sed -e s/7_NSRect/6CGRect/ -e s/7_NSSize/6CGSize/ -e s/8_NSPoint/7CGPoint/ > $@
1278
1279 else
1280
1281 all : WebCore.exp WebCore.LP64.exp
1282
1283 WebCore.exp : $(BUILT_PRODUCTS_DIR)/WebCoreExportFileGenerator
1284         $^ | grep -v '^# ' | sed -e 's/^#//' > $@
1285
1286 # Switch NSRect, NSSize and NSPoint with their CG counterparts for the 64-bit exports file.
1287 WebCore.LP64.exp : WebCore.exp
1288         cat $^ | sed -e s/7_NSRect/6CGRect/ -e s/7_NSSize/6CGSize/ -e s/8_NSPoint/7CGPoint/ > $@
1289
1290 endif # WTF_PLATFORM_IOS
1291
1292 endif # installhdrs
1293
1294 # --------
1295
1296 # Objective-C bindings
1297
1298 DOM_BINDINGS_SCRIPTS = $(GENERATE_BINDING_SCRIPTS) bindings/scripts/CodeGeneratorObjC.pm
1299 DOM%.h : %.idl $(DOM_BINDINGS_SCRIPTS) bindings/objc/PublicDOMInterfaces.h $(PLATFORM_FEATURE_DEFINES)
1300         $(call generator_script, $(DOM_BINDINGS_SCRIPTS)) $(IDL_COMMON_ARGS) --defines "$(FEATURE_DEFINES) $(ADDITIONAL_IDL_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --supplementalDependencyFile $(SUPPLEMENTAL_DEPENDENCY_FILE) $<
1301
1302 -include $(OBJC_DOM_HEADERS:.h=.dep)
1303
1304 # --------
1305
1306 endif # MACOS
1307
1308 # ------------------------
1309
1310 # Header detection
1311
1312 ifeq ($(OS),Windows_NT)
1313
1314 all : WebCoreHeaderDetection.h
1315
1316 WebCoreHeaderDetection.h : DerivedSources.make
1317         echo "/* Identifying AVFoundation Support */" > $@
1318         if [ -f "$(WEBKIT_LIBRARIES)/include/AVFoundationCF/AVCFBase.h" ]||[ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFBase.h" ]; then echo "#define HAVE_AVCF 1" >> $@; else echo >> $@; fi
1319         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
1320         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
1321
1322 endif # Windows_NT