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