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