Implement error handler of MediaRecorder
[WebKit-https.git] / Source / WebCore / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.12)
2
3 include(WebKitCommon)
4 include(WebCoreMacros.cmake)
5
6 set_property(DIRECTORY . PROPERTY FOLDER "WebCore")
7
8 add_subdirectory(PAL/pal)
9
10 if (PAL_LIBRARY_TYPE MATCHES STATIC)
11     add_definitions(-DSTATICALLY_LINKED_WITH_PAL=1)
12 endif ()
13
14 list(APPEND WebCore_UNIFIED_SOURCE_LIST_FILES
15     "Sources.txt"
16 )
17
18 set(WebCore_INCLUDE_DIRECTORIES
19     "${CMAKE_BINARY_DIR}"
20     "${WEBCORE_DIR}"
21     "${WEBCORE_DIR}/Modules/airplay"
22     "${WEBCORE_DIR}/Modules/beacon"
23     "${WEBCORE_DIR}/Modules/applepay"
24     "${WEBCORE_DIR}/Modules/applepay/paymentrequest"
25     "${WEBCORE_DIR}/Modules/cache"
26     "${WEBCORE_DIR}/Modules/credentialmanagement"
27     "${WEBCORE_DIR}/Modules/encryptedmedia"
28     "${WEBCORE_DIR}/Modules/encryptedmedia/legacy"
29     "${WEBCORE_DIR}/Modules/entriesapi"
30     "${WEBCORE_DIR}/Modules/fetch"
31     "${WEBCORE_DIR}/Modules/geolocation"
32     "${WEBCORE_DIR}/Modules/indexeddb"
33     "${WEBCORE_DIR}/Modules/indexeddb/client"
34     "${WEBCORE_DIR}/Modules/indexeddb/server"
35     "${WEBCORE_DIR}/Modules/indexeddb/shared"
36     "${WEBCORE_DIR}/Modules/mediacapabilities"
37     "${WEBCORE_DIR}/Modules/mediacontrols/"
38     "${WEBCORE_DIR}/Modules/mediasession"
39     "${WEBCORE_DIR}/Modules/mediasource"
40     "${WEBCORE_DIR}/Modules/mediastream"
41     "${WEBCORE_DIR}/Modules/mediarecorder"
42     "${WEBCORE_DIR}/Modules/navigatorcontentutils"
43     "${WEBCORE_DIR}/Modules/notifications"
44     "${WEBCORE_DIR}/Modules/paymentrequest"
45     "${WEBCORE_DIR}/Modules/plugins"
46     "${WEBCORE_DIR}/Modules/quota"
47     "${WEBCORE_DIR}/Modules/speech"
48     "${WEBCORE_DIR}/Modules/streams"
49     "${WEBCORE_DIR}/Modules/webaudio"
50     "${WEBCORE_DIR}/Modules/webauthn"
51     "${WEBCORE_DIR}/Modules/webdatabase"
52     "${WEBCORE_DIR}/Modules/webdriver"
53     "${WEBCORE_DIR}/Modules/websockets"
54     "${WEBCORE_DIR}/Modules/webvr"
55     "${WEBCORE_DIR}/accessibility"
56     "${WEBCORE_DIR}/animation"
57     "${WEBCORE_DIR}/bindings"
58     "${WEBCORE_DIR}/bindings/js"
59     "${WEBCORE_DIR}/bridge"
60     "${WEBCORE_DIR}/bridge/c"
61     "${WEBCORE_DIR}/bridge/jsc"
62     "${WEBCORE_DIR}/contentextensions"
63     "${WEBCORE_DIR}/crypto"
64     "${WEBCORE_DIR}/crypto/algorithms"
65     "${WEBCORE_DIR}/crypto/keys"
66     "${WEBCORE_DIR}/crypto/parameters"
67     "${WEBCORE_DIR}/css"
68     "${WEBCORE_DIR}/css/parser"
69     "${WEBCORE_DIR}/cssjit"
70     "${WEBCORE_DIR}/dom"
71     "${WEBCORE_DIR}/dom/default"
72     "${WEBCORE_DIR}/dom/messageports"
73     "${WEBCORE_DIR}/domjit"
74     "${WEBCORE_DIR}/editing"
75     "${WEBCORE_DIR}/fileapi"
76     "${WEBCORE_DIR}/history"
77     "${WEBCORE_DIR}/html"
78     "${WEBCORE_DIR}/html/canvas"
79     "${WEBCORE_DIR}/html/forms"
80     "${WEBCORE_DIR}/html/parser"
81     "${WEBCORE_DIR}/html/shadow"
82     "${WEBCORE_DIR}/html/track"
83     "${WEBCORE_DIR}/inspector"
84     "${WEBCORE_DIR}/inspector/agents"
85     "${WEBCORE_DIR}/inspector/agents/page"
86     "${WEBCORE_DIR}/inspector/agents/worker"
87     "${WEBCORE_DIR}/loader"
88     "${WEBCORE_DIR}/loader/appcache"
89     "${WEBCORE_DIR}/loader/archive"
90     "${WEBCORE_DIR}/loader/archive/mhtml"
91     "${WEBCORE_DIR}/loader/cache"
92     "${WEBCORE_DIR}/loader/icon"
93     "${WEBCORE_DIR}/mathml"
94     "${WEBCORE_DIR}/page"
95     "${WEBCORE_DIR}/page/animation"
96     "${WEBCORE_DIR}/page/csp"
97     "${WEBCORE_DIR}/page/scrolling"
98     "${WEBCORE_DIR}/platform"
99     "${WEBCORE_DIR}/platform/animation"
100     "${WEBCORE_DIR}/platform/audio"
101     "${WEBCORE_DIR}/platform/crypto"
102     "${WEBCORE_DIR}/platform/encryptedmedia"
103     "${WEBCORE_DIR}/platform/gamepad"
104     "${WEBCORE_DIR}/platform/graphics"
105     "${WEBCORE_DIR}/platform/graphics/cpu/arm"
106     "${WEBCORE_DIR}/platform/graphics/cpu/arm/filters"
107     "${WEBCORE_DIR}/platform/graphics/displaylists"
108     "${WEBCORE_DIR}/platform/graphics/filters"
109     "${WEBCORE_DIR}/platform/graphics/harfbuzz"
110     "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
111     "${WEBCORE_DIR}/platform/graphics/iso"
112     "${WEBCORE_DIR}/platform/graphics/opentype"
113     "${WEBCORE_DIR}/platform/graphics/transforms"
114     "${WEBCORE_DIR}/platform/mediastream"
115     "${WEBCORE_DIR}/platform/mediastream/libwebrtc"
116     "${WEBCORE_DIR}/platform/mock"
117     "${WEBCORE_DIR}/platform/mock/mediasource"
118     "${WEBCORE_DIR}/platform/network"
119     "${WEBCORE_DIR}/platform/sql"
120     "${WEBCORE_DIR}/platform/text"
121     "${WEBCORE_DIR}/platform/text/icu"
122     "${WEBCORE_DIR}/platform/vr"
123     "${WEBCORE_DIR}/plugins"
124     "${WEBCORE_DIR}/rendering"
125     "${WEBCORE_DIR}/rendering/line"
126     "${WEBCORE_DIR}/rendering/mathml"
127     "${WEBCORE_DIR}/rendering/shapes"
128     "${WEBCORE_DIR}/rendering/style"
129     "${WEBCORE_DIR}/rendering/svg"
130     "${WEBCORE_DIR}/rendering/updating"
131     "${WEBCORE_DIR}/replay"
132     "${WEBCORE_DIR}/storage"
133     "${WEBCORE_DIR}/style"
134     "${WEBCORE_DIR}/svg"
135     "${WEBCORE_DIR}/svg/animation"
136     "${WEBCORE_DIR}/svg/graphics"
137     "${WEBCORE_DIR}/svg/graphics/filters"
138     "${WEBCORE_DIR}/svg/properties"
139     "${WEBCORE_DIR}/websockets"
140     "${WEBCORE_DIR}/workers"
141     "${WEBCORE_DIR}/workers/service"
142     "${WEBCORE_DIR}/workers/service/context"
143     "${WEBCORE_DIR}/workers/service/server"
144     "${WEBCORE_DIR}/xml"
145     "${WEBCORE_DIR}/xml/parser"
146     "${DERIVED_SOURCES_WEBCORE_DIR}"
147 )
148
149 set(WebCore_SYSTEM_INCLUDE_DIRECTORIES
150     ${ICU_INCLUDE_DIRS}
151     ${LIBXML2_INCLUDE_DIR}
152     ${LIBXSLT_INCLUDE_DIR}
153     ${SQLITE_INCLUDE_DIR}
154     ${ZLIB_INCLUDE_DIRS}
155 )
156
157 set(WebCore_IDL_INCLUDES
158     css
159     dom
160     fileapi
161     html
162     inspector
163     page
164     plugins
165     storage
166     svg
167     workers
168     xml
169
170     Modules/airplay
171     Modules/cache
172     Modules/credentialmanagement
173     Modules/encryptedmedia/legacy
174     Modules/entriesapi
175     Modules/fetch
176     Modules/geolocation
177     Modules/indexeddb
178     Modules/mediacapabilities
179     Modules/mediarecorder
180     Modules/mediasession
181     Modules/mediastream
182     Modules/notifications
183     Modules/paymentrequest
184     Modules/quota
185     Modules/speech
186     Modules/streams
187     Modules/webaudio
188     Modules/webdatabase
189     Modules/websockets
190     Modules/webvr
191
192     bindings/js
193
194     html/canvas
195     html/shadow
196     html/track
197
198     loader/appcache
199 )
200
201 set(WebCore_NON_SVG_IDL_FILES
202     Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl
203
204     Modules/beacon/NavigatorBeacon.idl
205
206     Modules/cache/CacheQueryOptions.idl
207     Modules/cache/DOMCache.idl
208     Modules/cache/DOMCacheStorage.idl
209     Modules/cache/DOMWindowCaches.idl
210     Modules/cache/WorkerGlobalScopeCaches.idl
211
212     Modules/credentialmanagement/BasicCredential.idl
213     Modules/credentialmanagement/CredentialCreationOptions.idl
214     Modules/credentialmanagement/CredentialRequestOptions.idl
215     Modules/credentialmanagement/CredentialsContainer.idl
216     Modules/credentialmanagement/NavigatorCredentials.idl
217
218     Modules/entriesapi/DOMFileSystem.idl
219     Modules/entriesapi/ErrorCallback.idl
220     Modules/entriesapi/FileCallback.idl
221     Modules/entriesapi/FileSystemDirectoryEntry.idl
222     Modules/entriesapi/FileSystemDirectoryReader.idl
223     Modules/entriesapi/FileSystemEntriesCallback.idl
224     Modules/entriesapi/FileSystemEntry.idl
225     Modules/entriesapi/FileSystemEntryCallback.idl
226     Modules/entriesapi/FileSystemFileEntry.idl
227     Modules/entriesapi/HTMLInputElementEntriesAPI.idl
228
229     Modules/fetch/DOMWindowFetch.idl
230     Modules/fetch/FetchBody.idl
231     Modules/fetch/FetchHeaders.idl
232     Modules/fetch/FetchReferrerPolicy.idl
233     Modules/fetch/FetchRequest.idl
234     Modules/fetch/FetchRequestCache.idl
235     Modules/fetch/FetchRequestCredentials.idl
236     Modules/fetch/FetchRequestInit.idl
237     Modules/fetch/FetchRequestMode.idl
238     Modules/fetch/FetchRequestRedirect.idl
239     Modules/fetch/FetchResponse.idl
240     Modules/fetch/WorkerGlobalScopeFetch.idl
241
242     Modules/geolocation/Coordinates.idl
243     Modules/geolocation/Geolocation.idl
244     Modules/geolocation/Geoposition.idl
245     Modules/geolocation/NavigatorGeolocation.idl
246     Modules/geolocation/PositionCallback.idl
247     Modules/geolocation/PositionError.idl
248     Modules/geolocation/PositionErrorCallback.idl
249     Modules/geolocation/PositionOptions.idl
250
251     Modules/indexeddb/DOMWindowIndexedDatabase.idl
252     Modules/indexeddb/IDBCursor.idl
253     Modules/indexeddb/IDBCursorDirection.idl
254     Modules/indexeddb/IDBCursorWithValue.idl
255     Modules/indexeddb/IDBDatabase.idl
256     Modules/indexeddb/IDBFactory.idl
257     Modules/indexeddb/IDBIndex.idl
258     Modules/indexeddb/IDBKeyRange.idl
259     Modules/indexeddb/IDBObjectStore.idl
260     Modules/indexeddb/IDBOpenDBRequest.idl
261     Modules/indexeddb/IDBRequest.idl
262     Modules/indexeddb/IDBTransaction.idl
263     Modules/indexeddb/IDBTransactionMode.idl
264     Modules/indexeddb/IDBVersionChangeEvent.idl
265     Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl
266
267     Modules/mediacapabilities/AudioConfiguration.idl
268     Modules/mediacapabilities/MediaCapabilities.idl
269     Modules/mediacapabilities/MediaCapabilitiesInfo.idl
270     Modules/mediacapabilities/MediaConfiguration.idl
271     Modules/mediacapabilities/MediaDecodingConfiguration.idl
272     Modules/mediacapabilities/MediaDecodingType.idl
273     Modules/mediacapabilities/MediaEncodingConfiguration.idl
274     Modules/mediacapabilities/MediaEncodingType.idl
275     Modules/mediacapabilities/NavigatorMediaCapabilities.idl
276     Modules/mediacapabilities/ScreenColorGamut.idl
277     Modules/mediacapabilities/ScreenLuminance.idl
278     Modules/mediacapabilities/VideoConfiguration.idl
279
280     Modules/mediacontrols/MediaControlsHost.idl
281
282     Modules/mediarecorder/BlobEvent.idl
283     Modules/mediarecorder/MediaRecorder.idl
284     Modules/mediarecorder/MediaRecorderErrorEvent.idl
285
286     Modules/mediasession/HTMLMediaElementMediaSession.idl
287     Modules/mediasession/MediaRemoteControls.idl
288     Modules/mediasession/MediaSession.idl
289
290     Modules/mediasource/DOMURLMediaSource.idl
291     Modules/mediasource/MediaSource.idl
292     Modules/mediasource/SourceBuffer.idl
293     Modules/mediasource/SourceBufferList.idl
294     Modules/mediasource/VideoPlaybackQuality.idl
295
296     Modules/mediastream/CanvasCaptureMediaStreamTrack.idl
297     Modules/mediastream/DoubleRange.idl
298     Modules/mediastream/LongRange.idl
299     Modules/mediastream/MediaDeviceInfo.idl
300     Modules/mediastream/MediaDevices.idl
301     Modules/mediastream/MediaStream.idl
302     Modules/mediastream/MediaStreamTrack.idl
303     Modules/mediastream/MediaStreamTrackEvent.idl
304     Modules/mediastream/MediaTrackConstraints.idl
305     Modules/mediastream/MediaTrackSupportedConstraints.idl
306     Modules/mediastream/NavigatorMediaDevices.idl
307     Modules/mediastream/OverconstrainedError.idl
308     Modules/mediastream/OverconstrainedErrorEvent.idl
309     Modules/mediastream/RTCAnswerOptions.idl
310     Modules/mediastream/RTCConfiguration.idl
311     Modules/mediastream/RTCDTMFSender.idl
312     Modules/mediastream/RTCDTMFToneChangeEvent.idl
313     Modules/mediastream/RTCDataChannel.idl
314     Modules/mediastream/RTCDataChannelEvent.idl
315     Modules/mediastream/RTCDegradationPreference.idl
316     Modules/mediastream/RTCDtxStatus.idl
317     Modules/mediastream/RTCIceCandidate.idl
318     Modules/mediastream/RTCIceConnectionState.idl
319     Modules/mediastream/RTCIceGatheringState.idl
320     Modules/mediastream/RTCIceServer.idl
321     Modules/mediastream/RTCIceTransport.idl
322     Modules/mediastream/RTCIceTransportState.idl
323     Modules/mediastream/RTCOfferAnswerOptions.idl
324     Modules/mediastream/RTCOfferOptions.idl
325     Modules/mediastream/RTCPeerConnection.idl
326     Modules/mediastream/RTCPeerConnectionIceEvent.idl
327     Modules/mediastream/RTCPeerConnectionState.idl
328     Modules/mediastream/RTCPriorityType.idl
329     Modules/mediastream/RTCRtpCodecParameters.idl
330     Modules/mediastream/RTCRtpContributingSource.idl
331     Modules/mediastream/RTCRtpEncodingParameters.idl
332     Modules/mediastream/RTCRtpFecParameters.idl
333     Modules/mediastream/RTCRtpHeaderExtensionParameters.idl
334     Modules/mediastream/RTCRtpParameters.idl
335     Modules/mediastream/RTCRtpReceiver.idl
336     Modules/mediastream/RTCRtpRtxParameters.idl
337     Modules/mediastream/RTCRtpSendParameters.idl
338     Modules/mediastream/RTCRtpSender.idl
339     Modules/mediastream/RTCRtpSynchronizationSource.idl
340     Modules/mediastream/RTCRtpTransceiver.idl
341     Modules/mediastream/RTCRtpTransceiverDirection.idl
342     Modules/mediastream/RTCSessionDescription.idl
343     Modules/mediastream/RTCSignalingState.idl
344     Modules/mediastream/RTCStatsReport.idl
345     Modules/mediastream/RTCTrackEvent.idl
346
347     Modules/navigatorcontentutils/NavigatorContentUtils.idl
348
349     Modules/notifications/Notification.idl
350     Modules/notifications/NotificationPermission.idl
351     Modules/notifications/NotificationPermissionCallback.idl
352
353     Modules/paymentrequest/AddressErrors.idl
354     Modules/paymentrequest/MerchantValidationEvent.idl
355     Modules/paymentrequest/PayerErrorFields.idl
356     Modules/paymentrequest/PaymentAddress.idl
357     Modules/paymentrequest/PaymentComplete.idl
358     Modules/paymentrequest/PaymentCurrencyAmount.idl
359     Modules/paymentrequest/PaymentDetailsBase.idl
360     Modules/paymentrequest/PaymentDetailsInit.idl
361     Modules/paymentrequest/PaymentDetailsModifier.idl
362     Modules/paymentrequest/PaymentDetailsUpdate.idl
363     Modules/paymentrequest/PaymentItem.idl
364     Modules/paymentrequest/PaymentMethodChangeEvent.idl
365     Modules/paymentrequest/PaymentMethodData.idl
366     Modules/paymentrequest/PaymentOptions.idl
367     Modules/paymentrequest/PaymentRequest.idl
368     Modules/paymentrequest/PaymentRequestUpdateEvent.idl
369     Modules/paymentrequest/PaymentRequestUpdateEventInit.idl
370     Modules/paymentrequest/PaymentResponse.idl
371     Modules/paymentrequest/PaymentShippingOption.idl
372     Modules/paymentrequest/PaymentShippingType.idl
373     Modules/paymentrequest/PaymentValidationErrors.idl
374
375     Modules/speech/DOMWindowSpeechSynthesis.idl
376     Modules/speech/SpeechSynthesis.idl
377     Modules/speech/SpeechSynthesisEvent.idl
378     Modules/speech/SpeechSynthesisUtterance.idl
379     Modules/speech/SpeechSynthesisVoice.idl
380
381     Modules/streams/ByteLengthQueuingStrategy.idl
382     Modules/streams/CountQueuingStrategy.idl
383     Modules/streams/ReadableByteStreamController.idl
384     Modules/streams/ReadableStream.idl
385     Modules/streams/ReadableStreamBYOBReader.idl
386     Modules/streams/ReadableStreamBYOBRequest.idl
387     Modules/streams/ReadableStreamDefaultController.idl
388     Modules/streams/ReadableStreamDefaultReader.idl
389     Modules/streams/ReadableStreamSink.idl
390     Modules/streams/ReadableStreamSource.idl
391     Modules/streams/WritableStream.idl
392
393     Modules/webaudio/AnalyserNode.idl
394     Modules/webaudio/AudioBuffer.idl
395     Modules/webaudio/AudioBufferCallback.idl
396     Modules/webaudio/AudioBufferSourceNode.idl
397     Modules/webaudio/AudioContext.idl
398     Modules/webaudio/AudioDestinationNode.idl
399     Modules/webaudio/AudioListener.idl
400     Modules/webaudio/AudioNode.idl
401     Modules/webaudio/AudioParam.idl
402     Modules/webaudio/AudioProcessingEvent.idl
403     Modules/webaudio/BiquadFilterNode.idl
404     Modules/webaudio/ChannelMergerNode.idl
405     Modules/webaudio/ChannelSplitterNode.idl
406     Modules/webaudio/ConvolverNode.idl
407     Modules/webaudio/DelayNode.idl
408     Modules/webaudio/DynamicsCompressorNode.idl
409     Modules/webaudio/GainNode.idl
410     Modules/webaudio/MediaElementAudioSourceNode.idl
411     Modules/webaudio/MediaStreamAudioDestinationNode.idl
412     Modules/webaudio/MediaStreamAudioSourceNode.idl
413     Modules/webaudio/OfflineAudioCompletionEvent.idl
414     Modules/webaudio/OfflineAudioContext.idl
415     Modules/webaudio/OscillatorNode.idl
416     Modules/webaudio/PannerNode.idl
417     Modules/webaudio/PeriodicWave.idl
418     Modules/webaudio/ScriptProcessorNode.idl
419     Modules/webaudio/WaveShaperNode.idl
420
421     Modules/webauthn/AuthenticatorAssertionResponse.idl
422     Modules/webauthn/AuthenticatorAttestationResponse.idl
423     Modules/webauthn/AuthenticatorResponse.idl
424     Modules/webauthn/AuthenticatorTransport.idl
425     Modules/webauthn/PublicKeyCredential.idl
426     Modules/webauthn/PublicKeyCredentialCreationOptions.idl
427     Modules/webauthn/PublicKeyCredentialDescriptor.idl
428     Modules/webauthn/PublicKeyCredentialRequestOptions.idl
429     Modules/webauthn/PublicKeyCredentialType.idl
430
431     Modules/webdatabase/DOMWindowWebDatabase.idl
432     Modules/webdatabase/Database.idl
433     Modules/webdatabase/DatabaseCallback.idl
434     Modules/webdatabase/SQLError.idl
435     Modules/webdatabase/SQLResultSet.idl
436     Modules/webdatabase/SQLResultSetRowList.idl
437     Modules/webdatabase/SQLStatementCallback.idl
438     Modules/webdatabase/SQLStatementErrorCallback.idl
439     Modules/webdatabase/SQLTransaction.idl
440     Modules/webdatabase/SQLTransactionCallback.idl
441     Modules/webdatabase/SQLTransactionErrorCallback.idl
442
443     Modules/webdriver/NavigatorWebDriver.idl
444
445     Modules/websockets/CloseEvent.idl
446     Modules/websockets/WebSocket.idl
447
448     Modules/webvr/DOMWindowWebVR.idl
449     Modules/webvr/NavigatorWebVR.idl
450     Modules/webvr/VRDisplay.idl
451     Modules/webvr/VRDisplayCapabilities.idl
452     Modules/webvr/VRDisplayEvent.idl
453     Modules/webvr/VRDisplayEventReason.idl
454     Modules/webvr/VREye.idl
455     Modules/webvr/VREyeParameters.idl
456     Modules/webvr/VRFieldOfView.idl
457     Modules/webvr/VRFrameData.idl
458     Modules/webvr/VRLayerInit.idl
459     Modules/webvr/VRPose.idl
460     Modules/webvr/VRStageParameters.idl
461
462     accessibility/AccessibilityRole.idl
463     accessibility/AccessibleSetValueEvent.idl
464     accessibility/AriaAttributes.idl
465
466     animation/Animatable.idl
467     animation/AnimationEffectReadOnly.idl
468     animation/AnimationEffectTiming.idl
469     animation/AnimationEffectTimingProperties.idl
470     animation/AnimationEffectTimingReadOnly.idl
471     animation/AnimationPlaybackEvent.idl
472     animation/AnimationPlaybackEventInit.idl
473     animation/AnimationTimeline.idl
474     animation/CSSAnimation.idl
475     animation/CSSTransition.idl
476     animation/CompositeOperation.idl
477     animation/ComputedTimingProperties.idl
478     animation/DocumentTimeline.idl
479     animation/DocumentTimelineOptions.idl
480     animation/FillMode.idl
481     animation/IterationCompositeOperation.idl
482     animation/KeyframeAnimationOptions.idl
483     animation/KeyframeEffect.idl
484     animation/KeyframeEffectOptions.idl
485     animation/KeyframeEffectReadOnly.idl
486     animation/PlaybackDirection.idl
487     animation/WebAnimation.idl
488
489     crypto/CryptoAlgorithmParameters.idl
490     crypto/CryptoKey.idl
491     crypto/CryptoKeyPair.idl
492     crypto/CryptoKeyUsage.idl
493     crypto/JsonWebKey.idl
494     crypto/RsaOtherPrimesInfo.idl
495     crypto/SubtleCrypto.idl
496
497     crypto/keys/CryptoAesKeyAlgorithm.idl
498     crypto/keys/CryptoEcKeyAlgorithm.idl
499     crypto/keys/CryptoHmacKeyAlgorithm.idl
500     crypto/keys/CryptoKeyAlgorithm.idl
501     crypto/keys/CryptoRsaHashedKeyAlgorithm.idl
502     crypto/keys/CryptoRsaKeyAlgorithm.idl
503
504     crypto/parameters/AesCbcCfbParams.idl
505     crypto/parameters/AesCtrParams.idl
506     crypto/parameters/AesGcmParams.idl
507     crypto/parameters/AesKeyParams.idl
508     crypto/parameters/EcKeyParams.idl
509     crypto/parameters/EcdhKeyDeriveParams.idl
510     crypto/parameters/EcdsaParams.idl
511     crypto/parameters/HkdfParams.idl
512     crypto/parameters/HmacKeyParams.idl
513     crypto/parameters/Pbkdf2Params.idl
514     crypto/parameters/RsaHashedImportParams.idl
515     crypto/parameters/RsaHashedKeyGenParams.idl
516     crypto/parameters/RsaKeyGenParams.idl
517     crypto/parameters/RsaOaepParams.idl
518     crypto/parameters/RsaPssParams.idl
519
520     css/CSSFontFaceRule.idl
521     css/CSSImportRule.idl
522     css/CSSKeyframeRule.idl
523     css/CSSKeyframesRule.idl
524     css/CSSMediaRule.idl
525     css/CSSNamespaceRule.idl
526     css/CSSPageRule.idl
527     css/CSSRule.idl
528     css/CSSRuleList.idl
529     css/CSSStyleDeclaration.idl
530     css/CSSStyleRule.idl
531     css/CSSStyleSheet.idl
532     css/CSSSupportsRule.idl
533     css/CSSUnknownRule.idl
534     css/DOMCSSCustomPropertyDescriptor.idl
535     css/DOMCSSNamespace.idl
536     css/DOMCSSRegisterCustomProperty.idl
537     css/DOMMatrix.idl
538     css/DOMMatrix2DInit.idl
539     css/DOMMatrixInit.idl
540     css/DOMMatrixReadOnly.idl
541     css/DeprecatedCSSOMCounter.idl
542     css/DeprecatedCSSOMPrimitiveValue.idl
543     css/DeprecatedCSSOMRGBColor.idl
544     css/DeprecatedCSSOMRect.idl
545     css/DeprecatedCSSOMValue.idl
546     css/DeprecatedCSSOMValueList.idl
547     css/ElementCSSInlineStyle.idl
548     css/FontFace.idl
549     css/FontFaceSet.idl
550     css/MediaList.idl
551     css/MediaQueryList.idl
552     css/MediaQueryListListener.idl
553     css/StyleMedia.idl
554     css/StyleSheet.idl
555     css/StyleSheetList.idl
556     css/WebKitCSSMatrix.idl
557     css/WebKitCSSViewportRule.idl
558
559     dom/AbortController.idl
560     dom/AbortSignal.idl
561     dom/AnimationEvent.idl
562     dom/Attr.idl
563     dom/BeforeLoadEvent.idl
564     dom/BeforeUnloadEvent.idl
565     dom/CDATASection.idl
566     dom/CharacterData.idl
567     dom/ChildNode.idl
568     dom/ClipboardEvent.idl
569     dom/Comment.idl
570     dom/CompositionEvent.idl
571     dom/CustomElementRegistry.idl
572     dom/CustomEvent.idl
573     dom/DOMException.idl
574     dom/DOMImplementation.idl
575     dom/DOMPoint.idl
576     dom/DOMPointInit.idl
577     dom/DOMPointReadOnly.idl
578     dom/DOMQuad.idl
579     dom/DOMQuadInit.idl
580     dom/DOMRect.idl
581     dom/DOMRectInit.idl
582     dom/DOMRectList.idl
583     dom/DOMRectReadOnly.idl
584     dom/DOMStringList.idl
585     dom/DOMStringMap.idl
586     dom/DataTransfer.idl
587     dom/DataTransferItem.idl
588     dom/DataTransferItemList.idl
589     dom/DeviceMotionEvent.idl
590     dom/DeviceOrientationEvent.idl
591     dom/Document.idl
592     dom/DocumentAndElementEventHandlers.idl
593     dom/DocumentFragment.idl
594     dom/DocumentOrShadowRoot.idl
595     dom/DocumentTouch.idl
596     dom/DocumentType.idl
597     dom/Element.idl
598     dom/ErrorEvent.idl
599     dom/Event.idl
600     dom/EventInit.idl
601     dom/EventModifierInit.idl
602     dom/EventTarget.idl
603     dom/FocusEvent.idl
604     dom/GlobalEventHandlers.idl
605     dom/HashChangeEvent.idl
606     dom/InputEvent.idl
607     dom/KeyboardEvent.idl
608     dom/MessageChannel.idl
609     dom/MessageEvent.idl
610     dom/MessagePort.idl
611     dom/MouseEvent.idl
612     dom/MouseEventInit.idl
613     dom/MutationCallback.idl
614     dom/MutationEvent.idl
615     dom/MutationObserver.idl
616     dom/MutationRecord.idl
617     dom/NamedNodeMap.idl
618     dom/Node.idl
619     dom/NodeFilter.idl
620     dom/NodeIterator.idl
621     dom/NodeList.idl
622     dom/NonDocumentTypeChildNode.idl
623     dom/NonElementParentNode.idl
624     dom/OverflowEvent.idl
625     dom/PageTransitionEvent.idl
626     dom/ParentNode.idl
627     dom/PointerEvent.idl
628     dom/PopStateEvent.idl
629     dom/ProcessingInstruction.idl
630     dom/ProgressEvent.idl
631     dom/PromiseRejectionEvent.idl
632     dom/Range.idl
633     dom/RequestAnimationFrameCallback.idl
634     dom/SecurityPolicyViolationEvent.idl
635     dom/ShadowRoot.idl
636     dom/ShadowRootMode.idl
637     dom/Slotable.idl
638     dom/SpectreGadget.idl
639     dom/StaticRange.idl
640     dom/StringCallback.idl
641     dom/Text.idl
642     dom/TextDecoder.idl
643     dom/TextEncoder.idl
644     dom/TextEvent.idl
645     dom/Touch.idl
646     dom/TouchEvent.idl
647     dom/TouchList.idl
648     dom/TransitionEvent.idl
649     dom/TreeWalker.idl
650     dom/UIEvent.idl
651     dom/UIEventInit.idl
652     dom/VisibilityState.idl
653     dom/WebKitAnimationEvent.idl
654     dom/WebKitTransitionEvent.idl
655     dom/WheelEvent.idl
656     dom/XMLDocument.idl
657
658     fileapi/Blob.idl
659     fileapi/BlobCallback.idl
660     fileapi/BlobLineEndings.idl
661     fileapi/BlobPropertyBag.idl
662     fileapi/File.idl
663     fileapi/FileError.idl
664     fileapi/FileList.idl
665     fileapi/FileReader.idl
666     fileapi/FileReaderSync.idl
667
668     html/DOMFormData.idl
669     html/DOMTokenList.idl
670     html/DOMURL.idl
671     html/HTMLAllCollection.idl
672     html/HTMLAnchorElement.idl
673     html/HTMLAppletElement.idl
674     html/HTMLAreaElement.idl
675     html/HTMLAttachmentElement.idl
676     html/HTMLAudioElement.idl
677     html/HTMLBRElement.idl
678     html/HTMLBaseElement.idl
679     html/HTMLBodyElement.idl
680     html/HTMLButtonElement.idl
681     html/HTMLCanvasElement.idl
682     html/HTMLCollection.idl
683     html/HTMLDListElement.idl
684     html/HTMLDataElement.idl
685     html/HTMLDataListElement.idl
686     html/HTMLDetailsElement.idl
687     html/HTMLDirectoryElement.idl
688     html/HTMLDivElement.idl
689     html/HTMLDocument.idl
690     html/HTMLElement.idl
691     html/HTMLEmbedElement.idl
692     html/HTMLFieldSetElement.idl
693     html/HTMLFontElement.idl
694     html/HTMLFormControlsCollection.idl
695     html/HTMLFormElement.idl
696     html/HTMLFrameElement.idl
697     html/HTMLFrameSetElement.idl
698     html/HTMLHRElement.idl
699     html/HTMLHeadElement.idl
700     html/HTMLHeadingElement.idl
701     html/HTMLHtmlElement.idl
702     html/HTMLHyperlinkElementUtils.idl
703     html/HTMLIFrameElement.idl
704     html/HTMLImageElement.idl
705     html/HTMLInputElement.idl
706     html/HTMLKeygenElement.idl
707     html/HTMLLIElement.idl
708     html/HTMLLabelElement.idl
709     html/HTMLLegendElement.idl
710     html/HTMLLinkElement.idl
711     html/HTMLMapElement.idl
712     html/HTMLMarqueeElement.idl
713     html/HTMLMediaElement.idl
714     html/HTMLMenuElement.idl
715     html/HTMLMenuItemElement.idl
716     html/HTMLMetaElement.idl
717     html/HTMLMeterElement.idl
718     html/HTMLModElement.idl
719     html/HTMLOListElement.idl
720     html/HTMLObjectElement.idl
721     html/HTMLOptGroupElement.idl
722     html/HTMLOptionElement.idl
723     html/HTMLOptionsCollection.idl
724     html/HTMLOutputElement.idl
725     html/HTMLParagraphElement.idl
726     html/HTMLParamElement.idl
727     html/HTMLPictureElement.idl
728     html/HTMLPreElement.idl
729     html/HTMLProgressElement.idl
730     html/HTMLQuoteElement.idl
731     html/HTMLScriptElement.idl
732     html/HTMLSelectElement.idl
733     html/HTMLSlotElement.idl
734     html/HTMLSourceElement.idl
735     html/HTMLSpanElement.idl
736     html/HTMLStyleElement.idl
737     html/HTMLTableCaptionElement.idl
738     html/HTMLTableCellElement.idl
739     html/HTMLTableColElement.idl
740     html/HTMLTableElement.idl
741     html/HTMLTableRowElement.idl
742     html/HTMLTableSectionElement.idl
743     html/HTMLTemplateElement.idl
744     html/HTMLTextAreaElement.idl
745     html/HTMLTimeElement.idl
746     html/HTMLTitleElement.idl
747     html/HTMLTrackElement.idl
748     html/HTMLUListElement.idl
749     html/HTMLUnknownElement.idl
750     html/HTMLVideoElement.idl
751     html/ImageBitmap.idl
752     html/ImageBitmapOptions.idl
753     html/ImageData.idl
754     html/MediaController.idl
755     html/MediaError.idl
756     html/OffscreenCanvas.idl
757     html/RadioNodeList.idl
758     html/TextMetrics.idl
759     html/TimeRanges.idl
760     html/URLSearchParams.idl
761     html/ValidityState.idl
762     html/VoidCallback.idl
763
764     html/canvas/CanvasCompositing.idl
765     html/canvas/CanvasDirection.idl
766     html/canvas/CanvasDrawImage.idl
767     html/canvas/CanvasDrawPath.idl
768     html/canvas/CanvasFillRule.idl
769     html/canvas/CanvasFillStrokeStyles.idl
770     html/canvas/CanvasFilters.idl
771     html/canvas/CanvasGradient.idl
772     html/canvas/CanvasImageData.idl
773     html/canvas/CanvasImageSmoothing.idl
774     html/canvas/CanvasLineCap.idl
775     html/canvas/CanvasLineJoin.idl
776     html/canvas/CanvasPath.idl
777     html/canvas/CanvasPathDrawingStyles.idl
778     html/canvas/CanvasPattern.idl
779     html/canvas/CanvasRect.idl
780     html/canvas/CanvasRenderingContext2D.idl
781     html/canvas/CanvasShadowStyles.idl
782     html/canvas/CanvasState.idl
783     html/canvas/CanvasText.idl
784     html/canvas/CanvasTextAlign.idl
785     html/canvas/CanvasTextBaseline.idl
786     html/canvas/CanvasTextDrawingStyles.idl
787     html/canvas/CanvasTransform.idl
788     html/canvas/CanvasUserInterface.idl
789     html/canvas/ImageBitmapRenderingContext.idl
790     html/canvas/ImageBitmapRenderingContextSettings.idl
791     html/canvas/ImageSmoothingQuality.idl
792     html/canvas/OffscreenCanvasRenderingContext2D.idl
793     html/canvas/Path2D.idl
794     html/canvas/WebMetalBuffer.idl
795     html/canvas/WebMetalCommandBuffer.idl
796     html/canvas/WebMetalCommandQueue.idl
797     html/canvas/WebMetalComputeCommandEncoder.idl
798     html/canvas/WebMetalComputePipelineState.idl
799     html/canvas/WebMetalDepthStencilDescriptor.idl
800     html/canvas/WebMetalDepthStencilState.idl
801     html/canvas/WebMetalDrawable.idl
802     html/canvas/WebMetalFunction.idl
803     html/canvas/WebMetalLibrary.idl
804     html/canvas/WebMetalRenderCommandEncoder.idl
805     html/canvas/WebMetalRenderPassAttachmentDescriptor.idl
806     html/canvas/WebMetalRenderPassColorAttachmentDescriptor.idl
807     html/canvas/WebMetalRenderPassDepthAttachmentDescriptor.idl
808     html/canvas/WebMetalRenderPassDescriptor.idl
809     html/canvas/WebMetalRenderPipelineColorAttachmentDescriptor.idl
810     html/canvas/WebMetalRenderPipelineDescriptor.idl
811     html/canvas/WebMetalRenderPipelineState.idl
812     html/canvas/WebMetalRenderingContext.idl
813     html/canvas/WebMetalSize.idl
814     html/canvas/WebMetalTexture.idl
815     html/canvas/WebMetalTextureDescriptor.idl
816
817     inspector/CommandLineAPIHost.idl
818     inspector/InspectorFrontendHost.idl
819
820     loader/appcache/DOMApplicationCache.idl
821
822     page/BarProp.idl
823     page/Crypto.idl
824     page/DOMSelection.idl
825     page/DOMWindow.idl
826     page/EventSource.idl
827     page/GlobalCrypto.idl
828     page/GlobalPerformance.idl
829     page/History.idl
830     page/IntersectionObserver.idl
831     page/IntersectionObserverCallback.idl
832     page/IntersectionObserverEntry.idl
833     page/Location.idl
834     page/Navigator.idl
835     page/NavigatorID.idl
836     page/NavigatorLanguage.idl
837     page/NavigatorOnLine.idl
838     page/NavigatorServiceWorker.idl
839     page/NavigatorShare.idl
840     page/Performance.idl
841     page/PerformanceEntry.idl
842     page/PerformanceMark.idl
843     page/PerformanceMeasure.idl
844     page/PerformanceObserver.idl
845     page/PerformanceObserverCallback.idl
846     page/PerformanceObserverEntryList.idl
847     page/PerformanceNavigation.idl
848     page/PerformanceResourceTiming.idl
849     page/PerformanceServerTiming.idl
850     page/PerformanceTiming.idl
851     page/RemoteDOMWindow.idl
852     page/Screen.idl
853     page/ScrollIntoViewOptions.idl
854     page/ScrollLogicalPosition.idl
855     page/ScrollToOptions.idl
856     page/ShareData.idl
857     page/VisualViewport.idl
858     page/WebKitPoint.idl
859     page/WindowEventHandlers.idl
860     page/WindowOrWorkerGlobalScope.idl
861     page/WorkerNavigator.idl
862
863     plugins/DOMMimeType.idl
864     plugins/DOMMimeTypeArray.idl
865     plugins/DOMPlugin.idl
866     plugins/DOMPluginArray.idl
867
868     storage/Storage.idl
869     storage/StorageEvent.idl
870
871     workers/AbstractWorker.idl
872     workers/DedicatedWorkerGlobalScope.idl
873     workers/Worker.idl
874     workers/WorkerGlobalScope.idl
875     workers/WorkerLocation.idl
876     workers/WorkerType.idl
877
878     workers/service/ExtendableEvent.idl
879     workers/service/ExtendableEventInit.idl
880     workers/service/ExtendableMessageEvent.idl
881     workers/service/FetchEvent.idl
882     workers/service/ServiceWorker.idl
883     workers/service/ServiceWorkerClient.idl
884     workers/service/ServiceWorkerClientType.idl
885     workers/service/ServiceWorkerClients.idl
886     workers/service/ServiceWorkerContainer.idl
887     workers/service/ServiceWorkerGlobalScope.idl
888     workers/service/ServiceWorkerRegistration.idl
889     workers/service/ServiceWorkerUpdateViaCache.idl
890     workers/service/ServiceWorkerWindowClient.idl
891
892     xml/DOMParser.idl
893     xml/XMLHttpRequest.idl
894     xml/XMLHttpRequestEventTarget.idl
895     xml/XMLHttpRequestProgressEvent.idl
896     xml/XMLHttpRequestUpload.idl
897     xml/XMLSerializer.idl
898     xml/XPathEvaluator.idl
899     xml/XPathExpression.idl
900     xml/XPathNSResolver.idl
901     xml/XPathResult.idl
902     xml/XSLTProcessor.idl
903 )
904
905 set(WebCore_SVG_IDL_FILES
906     svg/SVGAElement.idl
907     svg/SVGAltGlyphDefElement.idl
908     svg/SVGAltGlyphElement.idl
909     svg/SVGAltGlyphItemElement.idl
910     svg/SVGAngle.idl
911     svg/SVGAnimateColorElement.idl
912     svg/SVGAnimateElement.idl
913     svg/SVGAnimateMotionElement.idl
914     svg/SVGAnimateTransformElement.idl
915     svg/SVGAnimatedAngle.idl
916     svg/SVGAnimatedBoolean.idl
917     svg/SVGAnimatedEnumeration.idl
918     svg/SVGAnimatedInteger.idl
919     svg/SVGAnimatedLength.idl
920     svg/SVGAnimatedLengthList.idl
921     svg/SVGAnimatedNumber.idl
922     svg/SVGAnimatedNumberList.idl
923     svg/SVGAnimatedPreserveAspectRatio.idl
924     svg/SVGAnimatedRect.idl
925     svg/SVGAnimatedString.idl
926     svg/SVGAnimatedTransformList.idl
927     svg/SVGAnimationElement.idl
928     svg/SVGCircleElement.idl
929     svg/SVGClipPathElement.idl
930     svg/SVGComponentTransferFunctionElement.idl
931     svg/SVGCursorElement.idl
932     svg/SVGDefsElement.idl
933     svg/SVGDescElement.idl
934     svg/SVGDocument.idl
935     svg/SVGElement.idl
936     svg/SVGEllipseElement.idl
937     svg/SVGExternalResourcesRequired.idl
938     svg/SVGFEBlendElement.idl
939     svg/SVGFEColorMatrixElement.idl
940     svg/SVGFEComponentTransferElement.idl
941     svg/SVGFECompositeElement.idl
942     svg/SVGFEConvolveMatrixElement.idl
943     svg/SVGFEDiffuseLightingElement.idl
944     svg/SVGFEDisplacementMapElement.idl
945     svg/SVGFEDistantLightElement.idl
946     svg/SVGFEDropShadowElement.idl
947     svg/SVGFEFloodElement.idl
948     svg/SVGFEFuncAElement.idl
949     svg/SVGFEFuncBElement.idl
950     svg/SVGFEFuncGElement.idl
951     svg/SVGFEFuncRElement.idl
952     svg/SVGFEGaussianBlurElement.idl
953     svg/SVGFEImageElement.idl
954     svg/SVGFEMergeElement.idl
955     svg/SVGFEMergeNodeElement.idl
956     svg/SVGFEMorphologyElement.idl
957     svg/SVGFEOffsetElement.idl
958     svg/SVGFEPointLightElement.idl
959     svg/SVGFESpecularLightingElement.idl
960     svg/SVGFESpotLightElement.idl
961     svg/SVGFETileElement.idl
962     svg/SVGFETurbulenceElement.idl
963     svg/SVGFilterElement.idl
964     svg/SVGFilterPrimitiveStandardAttributes.idl
965     svg/SVGFitToViewBox.idl
966     svg/SVGFontElement.idl
967     svg/SVGFontFaceElement.idl
968     svg/SVGFontFaceFormatElement.idl
969     svg/SVGFontFaceNameElement.idl
970     svg/SVGFontFaceSrcElement.idl
971     svg/SVGFontFaceUriElement.idl
972     svg/SVGForeignObjectElement.idl
973     svg/SVGGElement.idl
974     svg/SVGGeometryElement.idl
975     svg/SVGGlyphElement.idl
976     svg/SVGGlyphRefElement.idl
977     svg/SVGGradientElement.idl
978     svg/SVGGraphicsElement.idl
979     svg/SVGHKernElement.idl
980     svg/SVGImageElement.idl
981     svg/SVGLength.idl
982     svg/SVGLengthList.idl
983     svg/SVGLineElement.idl
984     svg/SVGLinearGradientElement.idl
985     svg/SVGMPathElement.idl
986     svg/SVGMarkerElement.idl
987     svg/SVGMaskElement.idl
988     svg/SVGMatrix.idl
989     svg/SVGMetadataElement.idl
990     svg/SVGMissingGlyphElement.idl
991     svg/SVGNumber.idl
992     svg/SVGNumberList.idl
993     svg/SVGPathElement.idl
994     svg/SVGPathSeg.idl
995     svg/SVGPathSegArcAbs.idl
996     svg/SVGPathSegArcRel.idl
997     svg/SVGPathSegClosePath.idl
998     svg/SVGPathSegCurvetoCubicAbs.idl
999     svg/SVGPathSegCurvetoCubicRel.idl
1000     svg/SVGPathSegCurvetoCubicSmoothAbs.idl
1001     svg/SVGPathSegCurvetoCubicSmoothRel.idl
1002     svg/SVGPathSegCurvetoQuadraticAbs.idl
1003     svg/SVGPathSegCurvetoQuadraticRel.idl
1004     svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl
1005     svg/SVGPathSegCurvetoQuadraticSmoothRel.idl
1006     svg/SVGPathSegLinetoAbs.idl
1007     svg/SVGPathSegLinetoHorizontalAbs.idl
1008     svg/SVGPathSegLinetoHorizontalRel.idl
1009     svg/SVGPathSegLinetoRel.idl
1010     svg/SVGPathSegLinetoVerticalAbs.idl
1011     svg/SVGPathSegLinetoVerticalRel.idl
1012     svg/SVGPathSegList.idl
1013     svg/SVGPathSegMovetoAbs.idl
1014     svg/SVGPathSegMovetoRel.idl
1015     svg/SVGPatternElement.idl
1016     svg/SVGPoint.idl
1017     svg/SVGPointList.idl
1018     svg/SVGPolygonElement.idl
1019     svg/SVGPolylineElement.idl
1020     svg/SVGPreserveAspectRatio.idl
1021     svg/SVGRadialGradientElement.idl
1022     svg/SVGRect.idl
1023     svg/SVGRectElement.idl
1024     svg/SVGRenderingIntent.idl
1025     svg/SVGSVGElement.idl
1026     svg/SVGScriptElement.idl
1027     svg/SVGSetElement.idl
1028     svg/SVGStopElement.idl
1029     svg/SVGStringList.idl
1030     svg/SVGStyleElement.idl
1031     svg/SVGSwitchElement.idl
1032     svg/SVGSymbolElement.idl
1033     svg/SVGTRefElement.idl
1034     svg/SVGTSpanElement.idl
1035     svg/SVGTests.idl
1036     svg/SVGTextContentElement.idl
1037     svg/SVGTextElement.idl
1038     svg/SVGTextPathElement.idl
1039     svg/SVGTextPositioningElement.idl
1040     svg/SVGTitleElement.idl
1041     svg/SVGTransform.idl
1042     svg/SVGTransformList.idl
1043     svg/SVGURIReference.idl
1044     svg/SVGUnitTypes.idl
1045     svg/SVGUseElement.idl
1046     svg/SVGVKernElement.idl
1047     svg/SVGViewElement.idl
1048     svg/SVGViewSpec.idl
1049     svg/SVGZoomAndPan.idl
1050     svg/SVGZoomEvent.idl
1051 )
1052
1053 if (WIN32 AND INTERNAL_BUILD)
1054     set(JavaScriptCore_SCRIPTS_DIR "${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore/Scripts")
1055     set(ANGLE_FORWARDING_HEADERS_DIR "${CMAKE_BINARY_DIR}/../include/private/ANGLE")
1056 else ()
1057     set(JavaScriptCore_SCRIPTS_DIR "${FORWARDING_HEADERS_DIR}/JavaScriptCore/Scripts")
1058     set(ANGLE_FORWARDING_HEADERS_DIR "${FORWARDING_HEADERS_DIR}/ANGLE")
1059 endif ()
1060
1061 if (ENABLE_GAMEPAD)
1062     list(APPEND WebCore_INCLUDE_DIRECTORIES
1063         "${WEBCORE_DIR}/Modules/gamepad"
1064     )
1065
1066     list(APPEND WebCore_IDL_INCLUDES
1067         Modules/gamepad
1068     )
1069
1070     list(APPEND WebCore_NON_SVG_IDL_FILES
1071         Modules/gamepad/Gamepad.idl
1072         Modules/gamepad/GamepadButton.idl
1073         Modules/gamepad/GamepadEvent.idl
1074         Modules/gamepad/NavigatorGamepad.idl
1075
1076         Modules/webvr/GamepadWebVR.idl
1077     )
1078
1079     list(APPEND WebCore_SOURCES
1080         Modules/gamepad/Gamepad.cpp
1081         Modules/gamepad/GamepadButton.cpp
1082         Modules/gamepad/GamepadEvent.cpp
1083         Modules/gamepad/GamepadManager.cpp
1084         Modules/gamepad/NavigatorGamepad.cpp
1085
1086         platform/gamepad/EmptyGamepadProvider.cpp
1087         platform/gamepad/GamepadProvider.cpp
1088     )
1089 endif ()
1090
1091 set(WebCore_IDL_FILES
1092     ${WebCore_NON_SVG_IDL_FILES}
1093     ${WebCore_SVG_IDL_FILES}
1094 )
1095
1096 set(WebCore_CSS_PROPERTY_NAMES
1097     ${WEBCORE_DIR}/css/CSSProperties.json
1098 )
1099
1100 set(WebCore_CSS_VALUE_KEYWORDS
1101     ${WEBCORE_DIR}/css/CSSValueKeywords.in
1102 )
1103
1104 set(WebCore_USER_AGENT_STYLE_SHEETS
1105     ${WEBCORE_DIR}/css/fullscreen.css
1106     ${WEBCORE_DIR}/css/html.css
1107     ${WEBCORE_DIR}/css/mathml.css
1108     ${WEBCORE_DIR}/css/mediaControls.css
1109     ${WEBCORE_DIR}/css/plugIns.css
1110     ${WEBCORE_DIR}/css/quirks.css
1111     ${WEBCORE_DIR}/css/svg.css
1112     ${WEBCORE_DIR}/html/shadow/meterElementShadow.css
1113 )
1114
1115 set(WebCore_PLUG_INS_RESOURCES
1116     ${WEBCORE_DIR}/Resources/plugIns.js
1117 )
1118
1119 set(WebCore_LIBRARIES
1120     ${ICU_LIBRARIES}
1121     ${LIBXML2_LIBRARIES}
1122     ${LIBXSLT_LIBRARIES}
1123     ${SQLITE_LIBRARIES}
1124     ${ZLIB_LIBRARIES}
1125     PAL${DEBUG_SUFFIX}
1126 )
1127
1128 if (ENABLE_LEGACY_ENCRYPTED_MEDIA)
1129     list(APPEND WebCore_SOURCES
1130         Modules/encryptedmedia/legacy/LegacyCDM.cpp
1131         Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp
1132         Modules/encryptedmedia/legacy/LegacyCDMPrivateMediaPlayer.cpp
1133         Modules/encryptedmedia/legacy/LegacyCDMSessionClearKey.cpp
1134
1135         Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp
1136         Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp
1137         Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp
1138         Modules/encryptedmedia/legacy/WebKitMediaKeys.cpp
1139     )
1140     list(APPEND WebCoreTestSupport_SOURCES
1141         testing/LegacyMockCDM.cpp
1142     )
1143     list(APPEND WebCore_IDL_FILES
1144         Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.idl
1145         Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.idl
1146         Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl
1147         Modules/encryptedmedia/legacy/WebKitMediaKeys.idl
1148
1149         html/WebKitMediaKeyError.idl
1150     )
1151 endif ()
1152
1153 if (ENABLE_ENCRYPTED_MEDIA)
1154     list(APPEND WebCore_SOURCES
1155         Modules/encryptedmedia/CDM.cpp
1156         Modules/encryptedmedia/InitDataRegistry.cpp
1157         Modules/encryptedmedia/MediaKeyMessageEvent.cpp
1158         Modules/encryptedmedia/MediaKeySession.cpp
1159         Modules/encryptedmedia/MediaKeyStatusMap.cpp
1160         Modules/encryptedmedia/MediaKeySystemAccess.cpp
1161         Modules/encryptedmedia/MediaKeys.cpp
1162         Modules/encryptedmedia/NavigatorEME.cpp
1163
1164         html/MediaEncryptedEvent.cpp
1165     )
1166     list(APPEND WebCore_IDL_FILES
1167         Modules/encryptedmedia/MediaKeyMessageEvent.idl
1168         Modules/encryptedmedia/MediaKeySession.idl
1169         Modules/encryptedmedia/MediaKeySessionType.idl
1170         Modules/encryptedmedia/MediaKeyStatusMap.idl
1171         Modules/encryptedmedia/MediaKeySystemAccess.idl
1172         Modules/encryptedmedia/MediaKeySystemConfiguration.idl
1173         Modules/encryptedmedia/MediaKeySystemMediaCapability.idl
1174         Modules/encryptedmedia/MediaKeys.idl
1175         Modules/encryptedmedia/MediaKeysRequirement.idl
1176         Modules/encryptedmedia/NavigatorEME.idl
1177
1178         html/MediaEncryptedEvent.idl
1179     )
1180 endif ()
1181
1182 list(APPEND WebCore_CSS_VALUE_KEYWORDS
1183     ${WEBCORE_DIR}/css/SVGCSSValueKeywords.in
1184 )
1185
1186 if (ENABLE_WEBGL)
1187     list(APPEND WebCore_SOURCES
1188         html/canvas/ANGLEInstancedArrays.cpp
1189         html/canvas/EXTBlendMinMax.cpp
1190         html/canvas/EXTFragDepth.cpp
1191         html/canvas/EXTShaderTextureLOD.cpp
1192         html/canvas/EXTTextureFilterAnisotropic.cpp
1193         html/canvas/EXTsRGB.cpp
1194         html/canvas/OESElementIndexUint.cpp
1195         html/canvas/OESStandardDerivatives.cpp
1196         html/canvas/OESTextureFloat.cpp
1197         html/canvas/OESTextureFloatLinear.cpp
1198         html/canvas/OESTextureHalfFloat.cpp
1199         html/canvas/OESTextureHalfFloatLinear.cpp
1200         html/canvas/OESVertexArrayObject.cpp
1201         html/canvas/WebGL2RenderingContext.cpp
1202         html/canvas/WebGLBuffer.cpp
1203         html/canvas/WebGLCompressedTextureASTC.cpp
1204         html/canvas/WebGLCompressedTextureATC.cpp
1205         html/canvas/WebGLCompressedTexturePVRTC.cpp
1206         html/canvas/WebGLCompressedTextureS3TC.cpp
1207         html/canvas/WebGLContextEvent.cpp
1208         html/canvas/WebGLContextGroup.cpp
1209         html/canvas/WebGLContextObject.cpp
1210         html/canvas/WebGLDebugRendererInfo.cpp
1211         html/canvas/WebGLDebugShaders.cpp
1212         html/canvas/WebGLDepthTexture.cpp
1213         html/canvas/WebGLDrawBuffers.cpp
1214         html/canvas/WebGLExtension.cpp
1215         html/canvas/WebGLFramebuffer.cpp
1216         html/canvas/WebGLLoseContext.cpp
1217         html/canvas/WebGLObject.cpp
1218         html/canvas/WebGLProgram.cpp
1219         html/canvas/WebGLQuery.cpp
1220         html/canvas/WebGLRenderbuffer.cpp
1221         html/canvas/WebGLRenderingContext.cpp
1222         html/canvas/WebGLRenderingContextBase.cpp
1223         html/canvas/WebGLSampler.cpp
1224         html/canvas/WebGLShader.cpp
1225         html/canvas/WebGLShaderPrecisionFormat.cpp
1226         html/canvas/WebGLSharedObject.cpp
1227         html/canvas/WebGLSync.cpp
1228         html/canvas/WebGLTexture.cpp
1229         html/canvas/WebGLTransformFeedback.cpp
1230         html/canvas/WebGLUniformLocation.cpp
1231         html/canvas/WebGLVertexArrayObject.cpp
1232         html/canvas/WebGLVertexArrayObjectBase.cpp
1233         html/canvas/WebGLVertexArrayObjectOES.cpp
1234     )
1235     list(APPEND WebCore_IDL_FILES
1236         html/canvas/ANGLEInstancedArrays.idl
1237         html/canvas/EXTBlendMinMax.idl
1238         html/canvas/EXTFragDepth.idl
1239         html/canvas/EXTShaderTextureLOD.idl
1240         html/canvas/EXTTextureFilterAnisotropic.idl
1241         html/canvas/EXTsRGB.idl
1242         html/canvas/OESElementIndexUint.idl
1243         html/canvas/OESStandardDerivatives.idl
1244         html/canvas/OESTextureFloat.idl
1245         html/canvas/OESTextureFloatLinear.idl
1246         html/canvas/OESTextureHalfFloat.idl
1247         html/canvas/OESTextureHalfFloatLinear.idl
1248         html/canvas/OESVertexArrayObject.idl
1249         html/canvas/WebGL2RenderingContext.idl
1250         html/canvas/WebGLActiveInfo.idl
1251         html/canvas/WebGLBuffer.idl
1252         html/canvas/WebGLCompressedTextureASTC.idl
1253         html/canvas/WebGLCompressedTextureATC.idl
1254         html/canvas/WebGLCompressedTexturePVRTC.idl
1255         html/canvas/WebGLCompressedTextureS3TC.idl
1256         html/canvas/WebGLContextAttributes.idl
1257         html/canvas/WebGLContextEvent.idl
1258         html/canvas/WebGLDebugRendererInfo.idl
1259         html/canvas/WebGLDebugShaders.idl
1260         html/canvas/WebGLDepthTexture.idl
1261         html/canvas/WebGLDrawBuffers.idl
1262         html/canvas/WebGLFramebuffer.idl
1263         html/canvas/WebGLLoseContext.idl
1264         html/canvas/WebGLProgram.idl
1265         html/canvas/WebGLQuery.idl
1266         html/canvas/WebGLRenderbuffer.idl
1267         html/canvas/WebGLRenderingContext.idl
1268         html/canvas/WebGLRenderingContextBase.idl
1269         html/canvas/WebGLSampler.idl
1270         html/canvas/WebGLShader.idl
1271         html/canvas/WebGLShaderPrecisionFormat.idl
1272         html/canvas/WebGLSync.idl
1273         html/canvas/WebGLTexture.idl
1274         html/canvas/WebGLTransformFeedback.idl
1275         html/canvas/WebGLUniformLocation.idl
1276         html/canvas/WebGLVertexArrayObject.idl
1277         html/canvas/WebGLVertexArrayObjectOES.idl
1278     )
1279 endif ()
1280
1281 if (ENABLE_VIDEO_TRACK)
1282     list(APPEND WebCore_IDL_FILES
1283         html/track/AudioTrack.idl
1284         html/track/AudioTrackList.idl
1285         html/track/DataCue.idl
1286         html/track/TextTrack.idl
1287         html/track/TextTrackCue.idl
1288         html/track/TextTrackCueList.idl
1289         html/track/TextTrackList.idl
1290         html/track/TrackEvent.idl
1291         html/track/VTTCue.idl
1292         html/track/VTTRegion.idl
1293         html/track/VTTRegionList.idl
1294         html/track/VideoTrack.idl
1295         html/track/VideoTrackList.idl
1296     )
1297
1298     if (ENABLE_MEDIA_SOURCE)
1299         list(APPEND WebCore_IDL_FILES
1300             Modules/mediasource/AudioTrackMediaSource.idl
1301             Modules/mediasource/TextTrackMediaSource.idl
1302             Modules/mediasource/VideoTrackMediaSource.idl
1303         )
1304     endif ()
1305
1306     list(APPEND WebCore_SOURCES
1307         html/track/AudioTrack.cpp
1308         html/track/AudioTrackList.cpp
1309         html/track/BufferedLineReader.cpp
1310         html/track/DataCue.cpp
1311         html/track/InbandDataTextTrack.cpp
1312         html/track/InbandGenericTextTrack.cpp
1313         html/track/InbandTextTrack.cpp
1314         html/track/InbandWebVTTTextTrack.cpp
1315         html/track/LoadableTextTrack.cpp
1316         html/track/TextTrack.cpp
1317         html/track/TextTrackCue.cpp
1318         html/track/TextTrackCueGeneric.cpp
1319         html/track/TextTrackCueList.cpp
1320         html/track/TextTrackList.cpp
1321         html/track/TrackBase.cpp
1322         html/track/TrackEvent.cpp
1323         html/track/TrackListBase.cpp
1324         html/track/VTTCue.cpp
1325         html/track/VTTRegion.cpp
1326         html/track/VTTRegionList.cpp
1327         html/track/VTTScanner.cpp
1328         html/track/VideoTrack.cpp
1329         html/track/VideoTrackList.cpp
1330         html/track/WebVTTElement.cpp
1331         html/track/WebVTTParser.cpp
1332         html/track/WebVTTTokenizer.cpp
1333
1334         loader/cache/CachedTextTrack.cpp
1335
1336         platform/graphics/TextTrackRepresentation.cpp
1337         platform/graphics/TrackPrivateBase.cpp
1338     )
1339 endif ()
1340
1341 if (ENABLE_QUOTA)
1342     list(APPEND WebCore_SOURCES
1343         Modules/quota/DOMWindowQuota.cpp
1344         Modules/quota/NavigatorStorageQuota.cpp
1345         Modules/quota/StorageErrorCallback.cpp
1346         Modules/quota/StorageInfo.cpp
1347         Modules/quota/StorageQuota.cpp
1348         Modules/quota/WorkerNavigatorStorageQuota.cpp
1349     )
1350
1351     list(APPEND WebCore_IDL_FILES
1352         Modules/quota/DOMWindowQuota.idl
1353         Modules/quota/NavigatorStorageQuota.idl
1354         Modules/quota/StorageErrorCallback.idl
1355         Modules/quota/StorageInfo.idl
1356         Modules/quota/StorageQuota.idl
1357         Modules/quota/StorageQuotaCallback.idl
1358         Modules/quota/StorageUsageCallback.idl
1359         Modules/quota/WorkerNavigatorStorageQuota.idl
1360     )
1361 endif ()
1362
1363 if (ENABLE_GRAPHICS_CONTEXT_3D)
1364     # For platforms that want to use system-provided OpenGL (ES) / EGL headers,
1365     # these include directories, libraries or definitions need to be
1366     # added before the ANGLE directories.
1367     if (USE_LIBEPOXY)
1368         list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1369             ${LIBEPOXY_INCLUDE_DIRS}
1370         )
1371         list(APPEND WebCore_LIBRARIES
1372             ${LIBEPOXY_LIBRARIES}
1373         )
1374         add_definitions(${LIBEPOXY_DEFINITIONS})
1375     else ()
1376         if (USE_OPENGL)
1377             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1378                 ${OPENGL_INCLUDE_DIRS}
1379             )
1380             list(APPEND WebCore_LIBRARIES
1381                 ${OPENGL_LIBRARIES}
1382             )
1383             add_definitions(${OPENGL_DEFINITIONS})
1384         elseif (USE_OPENGL_ES)
1385             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1386                 ${OPENGLES2_INCLUDE_DIRS}
1387             )
1388             list(APPEND WebCore_LIBRARIES
1389                 ${OPENGLES2_LIBRARIES}
1390             )
1391             add_definitions(${OPENGLES2_DEFINITIONS})
1392         endif ()
1393
1394         if (USE_EGL)
1395             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1396                 ${EGL_INCLUDE_DIRS}
1397             )
1398             list(APPEND WebCore_LIBRARIES
1399                 ${EGL_LIBRARIES}
1400             )
1401             add_definitions(${EGL_DEFINITIONS})
1402         endif ()
1403     endif ()
1404
1405     list(APPEND WebCore_INCLUDE_DIRECTORIES
1406         "${ANGLE_FORWARDING_HEADERS_DIR}"
1407         "${WEBCORE_DIR}/platform/graphics/gpu"
1408     )
1409
1410     list(APPEND ANGLESupport_SOURCES
1411         ${THIRDPARTY_DIR}/ANGLE/src/common/angleutils.cpp
1412         ${THIRDPARTY_DIR}/ANGLE/src/common/debug.cpp
1413         ${THIRDPARTY_DIR}/ANGLE/src/common/event_tracer.cpp
1414         ${THIRDPARTY_DIR}/ANGLE/src/common/Float16ToFloat32.cpp
1415         ${THIRDPARTY_DIR}/ANGLE/src/common/mathutil.cpp
1416         ${THIRDPARTY_DIR}/ANGLE/src/common/MemoryBuffer.cpp
1417         ${THIRDPARTY_DIR}/ANGLE/src/common/string_utils.cpp
1418         ${THIRDPARTY_DIR}/ANGLE/src/common/third_party/smhasher/src/PMurHash.cpp
1419         ${THIRDPARTY_DIR}/ANGLE/src/common/tls.cpp
1420         ${THIRDPARTY_DIR}/ANGLE/src/common/uniform_type_info_autogen.cpp
1421         ${THIRDPARTY_DIR}/ANGLE/src/common/utilities.cpp
1422
1423         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/DiagnosticsBase.cpp
1424         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/DirectiveHandlerBase.cpp
1425         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/DirectiveParser.cpp
1426         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/ExpressionParser.cpp
1427         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/Input.cpp
1428         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/Lexer.cpp
1429         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/Macro.cpp
1430         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/MacroExpander.cpp
1431         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/Preprocessor.cpp
1432         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/Token.cpp
1433         ${THIRDPARTY_DIR}/ANGLE/src/compiler/preprocessor/Tokenizer.cpp
1434
1435         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ASTMetadataHLSL.cpp
1436         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/AddAndTrueToLoopCondition.cpp
1437         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/AddDefaultReturnStatements.cpp
1438         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ArrayReturnValueToOutParameter.cpp
1439         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/BreakVariableAliasingInInnerLoops.cpp
1440         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/BuiltInFunctionEmulator.cpp
1441         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/BuiltInFunctionEmulatorGLSL.cpp
1442         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp
1443         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/Cache.cpp
1444         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/CallDAG.cpp
1445         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ClampPointSize.cpp
1446         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/CodeGen.cpp
1447         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/CollectVariables.cpp
1448         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/Compiler.cpp
1449         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ConstantUnion.cpp
1450         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/DeclareAndInitBuiltinsForInstancedMultiview.cpp
1451         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/DeferGlobalInitializers.cpp
1452         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/Diagnostics.cpp
1453         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/DirectiveHandler.cpp
1454         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/EmulateGLFragColorBroadcast.cpp
1455         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/EmulatePrecision.cpp
1456         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ExpandIntegerPowExpressions.cpp
1457         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ExtensionBehavior.cpp
1458         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ExtensionGLSL.cpp
1459         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/FindMain.cpp
1460         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/FindSymbolNode.cpp
1461         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/FlagStd140Structs.cpp
1462         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/HashNames.cpp
1463         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ImageFunctionHLSL.cpp
1464         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/InfoSink.cpp
1465         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/Initialize.cpp
1466         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/InitializeDll.cpp
1467         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/InitializeVariables.cpp
1468         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/IntermNode.cpp
1469         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/IntermNodePatternMatcher.cpp
1470         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/IntermNode_util.cpp
1471         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/IntermTraverse.cpp
1472         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/IsASTDepthBelowLimit.cpp
1473         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/Operator.cpp
1474         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/OutputESSL.cpp
1475         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/OutputGLSL.cpp
1476         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/OutputGLSLBase.cpp
1477         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/OutputHLSL.cpp
1478         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/OutputTree.cpp
1479         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/OutputVulkanGLSL.cpp
1480         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ParseContext.cpp
1481         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/PoolAlloc.cpp
1482         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/PruneNoOps.cpp
1483         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/QualifierTypes.cpp
1484         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RecordConstantPrecision.cpp
1485         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RegenerateStructNames.cpp
1486         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemoveArrayLengthMethod.cpp
1487         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemoveDynamicIndexing.cpp
1488         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemoveEmptySwitchStatements.cpp
1489         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemoveInvariantDeclaration.cpp
1490         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemoveNoOpCasesFromEndOfSwitchStatements.cpp
1491         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemovePow.cpp
1492         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemoveSwitchFallThrough.cpp
1493         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RemoveUnreferencedVariables.cpp
1494         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RewriteDoWhile.cpp
1495         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RewriteElseBlocks.cpp
1496         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RewriteTexelFetchOffset.cpp
1497         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RewriteUnaryMinusOperatorFloat.cpp
1498         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RewriteUnaryMinusOperatorInt.cpp
1499         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/RunAtTheEndOfShader.cpp
1500         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp
1501         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SearchSymbol.cpp
1502         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SeparateArrayInitialization.cpp
1503         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SeparateDeclarations.cpp
1504         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SeparateExpressionsReturningArrays.cpp
1505         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ShaderLang.cpp
1506         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ShaderVars.cpp
1507         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SimplifyLoopConditions.cpp
1508         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SplitSequenceOperator.cpp
1509         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/StructureHLSL.cpp
1510         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SymbolTable.cpp
1511         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/SymbolUniqueId.cpp
1512         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/TextureFunctionHLSL.cpp
1513         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/TranslatorESSL.cpp
1514         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/TranslatorGLSL.cpp
1515         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/TranslatorHLSL.cpp
1516         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/TranslatorVulkan.cpp
1517         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/Types.cpp
1518         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/UnfoldShortCircuitAST.cpp
1519         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/UnfoldShortCircuitToIf.cpp
1520         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/UniformHLSL.cpp
1521         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/UseInterfaceBlockFields.cpp
1522         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/UtilsHLSL.cpp
1523         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ValidateGlobalInitializer.cpp
1524         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ValidateLimitations.cpp
1525         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ValidateMaxParameters.cpp
1526         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ValidateOutputs.cpp
1527         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ValidateSwitch.cpp
1528         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/ValidateVaryingLocations.cpp
1529         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/VariablePacker.cpp
1530         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/VectorizeVectorScalarArithmetic.cpp
1531         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/VersionGLSL.cpp
1532         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/WrapSwitchStatementsInBlocks.cpp
1533         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/blocklayout.cpp
1534         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/blocklayoutHLSL.cpp
1535         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/emulated_builtin_functions_hlsl_autogen.cpp
1536         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/glslang_lex.cpp
1537         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/glslang_tab.cpp
1538         ${THIRDPARTY_DIR}/ANGLE/src/compiler/translator/util.cpp
1539
1540         ${THIRDPARTY_DIR}/ANGLE/src/third_party/compiler/ArrayBoundsClamper.cpp
1541
1542         ${THIRDPARTY_DIR}/ANGLE/src/libANGLE/Platform.cpp
1543     )
1544
1545     list(APPEND WebCore_SOURCES
1546         platform/graphics/ANGLEWebKitBridge.cpp
1547         platform/graphics/FormatConverter.cpp
1548         platform/graphics/GraphicsContext3D.cpp
1549     )
1550 endif ()
1551
1552 if (ENABLE_USER_MESSAGE_HANDLERS)
1553     list(APPEND WebCore_IDL_FILES
1554         page/UserMessageHandler.idl
1555         page/UserMessageHandlersNamespace.idl
1556         page/WebKitNamespace.idl
1557     )
1558     list(APPEND WebCore_SOURCES
1559         page/UserMessageHandler.cpp
1560         page/UserMessageHandlerDescriptor.cpp
1561         page/UserMessageHandlersNamespace.cpp
1562         page/WebKitNamespace.cpp
1563     )
1564 endif ()
1565
1566 if (USE_OPENVR)
1567   list(APPEND WebCore_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/openvr/headers")
1568   list(APPEND WebCore_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/vr/openvr")
1569   list(APPEND WebCore_LIBRARIES openvr_api)
1570 endif ()
1571
1572 if (USE_WOFF2)
1573   list(APPEND WebCore_INCLUDE_DIRECTORIES "${WOFF2DEC_INCLUDE_DIRS}")
1574   list(APPEND WebCore_LIBRARIES "${WOFF2DEC_LIBRARIES}")
1575 endif ()
1576
1577 if (USE_XDGMIME)
1578     list(APPEND WebCore_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/xdgmime/src")
1579     list(APPEND WebCore_LIBRARIES xdgmime)
1580 endif ()
1581
1582 if (USE_LIBWEBRTC)
1583   list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/libwebrtc/Source/"
1584       "${THIRDPARTY_DIR}/libwebrtc/Source/webrtc"
1585       "${THIRDPARTY_DIR}/libwebrtc/Source/third_party/abseil-cpp")
1586   list(APPEND WebCore_LIBRARIES webrtc)
1587   list(APPEND WebCore_SOURCES
1588       Modules/mediastream/libwebrtc/LibWebRTCStatsCollector.cpp
1589       Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp
1590       Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
1591       Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp
1592       Modules/mediastream/libwebrtc/LibWebRTCRtpReceiverBackend.cpp
1593       Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp
1594       Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp
1595       Modules/mediastream/libwebrtc/LibWebRTCUtils.cpp
1596       )
1597 endif ()
1598
1599 set(WebCoreTestSupport_INCLUDE_DIRECTORIES
1600     "${WEBCORE_DIR}/platform/mock"
1601     "${WEBCORE_DIR}/testing"
1602     "${WEBCORE_DIR}/testing/js"
1603     "${DERIVED_SOURCES_WEBCORE_DIR}"
1604 )
1605
1606 set(WebCoreTestSupport_IDL_INCLUDES
1607     testing
1608 )
1609
1610 set(WebCoreTestSupport_IDL_FILES
1611     testing/GCObservation.idl
1612     testing/InternalSettings.idl
1613     testing/Internals.idl
1614     testing/MallocStatistics.idl
1615     testing/MemoryInfo.idl
1616     testing/MockCDMFactory.idl
1617     testing/MockContentFilterSettings.idl
1618     testing/MockPageOverlay.idl
1619     testing/ServiceWorkerInternals.idl
1620     testing/TypeConversions.idl
1621 )
1622
1623 list(APPEND WebCoreTestSupport_SOURCES
1624     platform/mock/PlatformSpeechSynthesizerMock.cpp
1625
1626     platform/mock/mediasource/MockBox.cpp
1627     platform/mock/mediasource/MockMediaPlayerMediaSource.cpp
1628     platform/mock/mediasource/MockMediaSourcePrivate.cpp
1629     platform/mock/mediasource/MockSourceBufferPrivate.cpp
1630
1631     testing/GCObservation.cpp
1632     testing/InternalSettings.cpp
1633     testing/Internals.cpp
1634     testing/MockCDMFactory.cpp
1635     testing/MockGamepad.cpp
1636     testing/MockGamepadProvider.cpp
1637     testing/MockLibWebRTCPeerConnection.cpp
1638     testing/MockPageOverlay.cpp
1639     testing/MockPageOverlayClient.cpp
1640     testing/ServiceWorkerInternals.cpp
1641     testing/js/WebCoreTestSupport.cpp
1642 )
1643
1644 set(WebCoreTestSupport_LIBRARIES
1645     PRIVATE JavaScriptCore${DEBUG_SUFFIX}
1646 )
1647
1648 # Modules that the bindings generator scripts may use
1649 set(SCRIPTS_RESOLVE_SUPPLEMENTAL
1650     ${WEBCORE_DIR}/bindings/scripts/IDLParser.pm
1651 )
1652 set(SCRIPTS_BINDINGS
1653     ${WEBCORE_DIR}/bindings/scripts/CodeGenerator.pm
1654     ${WEBCORE_DIR}/bindings/scripts/CodeGeneratorJS.pm
1655     ${WEBCORE_DIR}/bindings/scripts/IDLParser.pm
1656     ${WEBCORE_DIR}/bindings/scripts/InFilesParser.pm
1657     ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1658 )
1659
1660 set(MAKE_NAMES_DEPENDENCIES
1661     ${WEBCORE_DIR}/bindings/scripts/Hasher.pm
1662     ${WEBCORE_DIR}/bindings/scripts/StaticString.pm
1663 )
1664 set(SUPPLEMENTAL_DEPENDENCY_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/supplemental_dependency.tmp)
1665 set(WINDOW_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/DOMWindowConstructors.idl)
1666 set(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/WorkerGlobalScopeConstructors.idl)
1667 set(DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/DedicatedWorkerGlobalScopeConstructors.idl)
1668 set(SERVICEWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${DERIVED_SOURCES_WEBCORE_DIR}/ServiceWorkerGlobalScopeConstructors.idl)
1669
1670 WEBKIT_FRAMEWORK_DECLARE(WebCore)
1671 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
1672
1673 # Generate InspectorOverlayPage.h
1674 add_custom_command(
1675     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorOverlayPage.h ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorOverlayPage.combined.html
1676     MAIN_DEPENDENCY inspector/InspectorOverlayPage.html
1677     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/inline-and-minify-stylesheets-and-scripts.py
1678     DEPENDS inspector/InspectorOverlayPage.css inspector/InspectorOverlayPage.js
1679     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/inline-and-minify-stylesheets-and-scripts.py ${WEBCORE_DIR}/inspector/InspectorOverlayPage.html ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorOverlayPage.combined.html
1680     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl InspectorOverlayPage_html ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorOverlayPage.combined.html ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorOverlayPage.h
1681     VERBATIM)
1682 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorOverlayPage.h)
1683
1684
1685 # Generate CommandLineAPIModuleSource.h
1686 add_custom_command(
1687     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/CommandLineAPIModuleSource.h ${DERIVED_SOURCES_WEBCORE_DIR}/CommandLineAPIModuleSource.min.js
1688     MAIN_DEPENDENCY inspector/CommandLineAPIModuleSource.js
1689     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
1690     COMMAND ${CMAKE_COMMAND} -E echo "//# sourceURL=__InjectedScript_CommandLineAPIModuleSource.js" > ${DERIVED_SOURCES_WEBCORE_DIR}/CommandLineAPIModuleSource.min.js
1691     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBCORE_DIR}/inspector/CommandLineAPIModuleSource.js >> ${DERIVED_SOURCES_WEBCORE_DIR}/CommandLineAPIModuleSource.min.js
1692     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl CommandLineAPIModuleSource_js ${DERIVED_SOURCES_WEBCORE_DIR}/CommandLineAPIModuleSource.min.js ${DERIVED_SOURCES_WEBCORE_DIR}/CommandLineAPIModuleSource.h
1693     VERBATIM)
1694 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/CommandLineAPIModuleSource.h)
1695
1696
1697 MAKE_HASH_TOOLS(${WEBCORE_DIR}/platform/ColorData)
1698 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/ColorData.cpp)
1699
1700
1701 # Generate DOMJITAbstractHeapRepository.h
1702 add_custom_command(
1703     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/DOMJITAbstractHeapRepository.h
1704     MAIN_DEPENDENCY domjit/DOMJITAbstractHeapRepository.yaml
1705     DEPENDS ${WEBCORE_DIR}/domjit/generate-abstract-heap.rb
1706     COMMAND ${RUBY_EXECUTABLE} ${WEBCORE_DIR}/domjit/generate-abstract-heap.rb ${WEBCORE_DIR}/domjit/DOMJITAbstractHeapRepository.yaml ${DERIVED_SOURCES_WEBCORE_DIR}/DOMJITAbstractHeapRepository.h
1707     VERBATIM)
1708 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/DOMJITAbstractHeapRepository.h)
1709
1710 # Generate XMLViewerCSS.h
1711 add_custom_command(
1712     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewerCSS.h ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewer.min.css
1713     MAIN_DEPENDENCY xml/XMLViewer.css
1714     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/cssmin.py
1715     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/cssmin.py < ${WEBCORE_DIR}/xml/XMLViewer.css > ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewer.min.css
1716     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl XMLViewer_css ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewer.min.css ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewerCSS.h
1717     VERBATIM)
1718 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewerCSS.h)
1719
1720 # Generate XMLViewerJS.h
1721 add_custom_command(
1722     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewerJS.h ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewer.min.js
1723     MAIN_DEPENDENCY xml/XMLViewer.js
1724     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
1725     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBCORE_DIR}/xml/XMLViewer.js > ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewer.min.js
1726     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl XMLViewer_js ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewer.min.js ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewerJS.h
1727     VERBATIM)
1728 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/XMLViewerJS.h)
1729
1730 # Generate HTML entity table
1731 add_custom_command(
1732     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/HTMLEntityTable.cpp
1733     MAIN_DEPENDENCY ${WEBCORE_DIR}/html/parser/HTMLEntityNames.in
1734     DEPENDS ${WEBCORE_DIR}/html/parser/create-html-entity-table
1735     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/html/parser/create-html-entity-table -o ${DERIVED_SOURCES_WEBCORE_DIR}/HTMLEntityTable.cpp ${WEBCORE_DIR}/html/parser/HTMLEntityNames.in
1736     VERBATIM)
1737 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/HTMLEntityTable.cpp)
1738
1739 # Generate HTTP header names
1740 add_custom_command(
1741     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/HTTPHeaderNames.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/HTTPHeaderNames.gperf ${DERIVED_SOURCES_WEBCORE_DIR}/HTTPHeaderNames.h
1742     MAIN_DEPENDENCY ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in
1743     DEPENDS ${WEBCORE_DIR}/platform/network/create-http-header-name-table
1744     WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR}
1745     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/platform/network/create-http-header-name-table ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in "${GPERF_EXECUTABLE}"
1746     VERBATIM)
1747 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/HTTPHeaderNames.cpp)
1748
1749 # Generate CSS property names
1750 add_custom_command(
1751     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/CSSProperties.json ${DERIVED_SOURCES_WEBCORE_DIR}/CSSPropertyNames.h ${DERIVED_SOURCES_WEBCORE_DIR}/CSSPropertyNames.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/CSSPropertyNames.gperf ${DERIVED_SOURCES_WEBCORE_DIR}/StyleBuilder.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/StylePropertyShorthandFunctions.h ${DERIVED_SOURCES_WEBCORE_DIR}/StylePropertyShorthandFunctions.cpp
1752     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makeprop.pl
1753     DEPENDS ${WebCore_CSS_PROPERTY_NAMES}
1754     WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR}
1755     COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_PROPERTY_NAMES} > ${DERIVED_SOURCES_WEBCORE_DIR}/CSSProperties.json
1756     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/makeprop.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --gperf-executable "${GPERF_EXECUTABLE}"
1757     VERBATIM)
1758 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/CSSPropertyNames.cpp)
1759 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/StyleBuilder.cpp)
1760 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/StylePropertyShorthandFunctions.cpp)
1761 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp CSSValueKeywords.h)
1762
1763 # Generate CSS value keywords
1764 add_custom_command(
1765     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.in ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.h ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.gperf
1766     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makevalues.pl
1767     DEPENDS ${WebCore_CSS_VALUE_KEYWORDS}
1768     WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR}
1769     COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_VALUE_KEYWORDS} > ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.in
1770     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/makevalues.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --gperf-executable "${GPERF_EXECUTABLE}"
1771     VERBATIM)
1772 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/CSSValueKeywords.cpp)
1773 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp CSSValueKeywords.h)
1774 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSPrimitiveValueMappings.h CSSValueKeywords.h)
1775
1776 # Generate CSS Selector pseudo type name to value maps.
1777 add_custom_command(
1778     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoClassAndCompatibilityElementMap.gperf ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoClassAndCompatibilityElementMap.cpp
1779     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in
1780     DEPENDS ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py
1781     WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR}
1782     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
1783     VERBATIM)
1784 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoClassAndCompatibilityElementMap.cpp)
1785 add_custom_command(
1786     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoElementTypeMap.gperf ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoElementTypeMap.cpp
1787     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in
1788     DEPENDS ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py
1789     WORKING_DIRECTORY ${DERIVED_SOURCES_WEBCORE_DIR}
1790     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
1791     VERBATIM)
1792 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/SelectorPseudoElementTypeMap.cpp)
1793
1794 # Generate user agent styles
1795 add_custom_command(
1796     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentStyleSheetsData.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentStyleSheets.h
1797     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/make-css-file-arrays.pl
1798     DEPENDS ${WebCore_USER_AGENT_STYLE_SHEETS} ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1799     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/make-css-file-arrays.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentStyleSheets.h ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentStyleSheetsData.cpp ${WebCore_USER_AGENT_STYLE_SHEETS}
1800     VERBATIM)
1801 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentStyleSheetsData.cpp)
1802 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/StyleResolver.cpp UserAgentStyleSheetsData.cpp UserAgentStyleSheets.h)
1803
1804 if (WebCore_USER_AGENT_SCRIPTS)
1805     # Necessary variables:
1806     # WebCore_USER_AGENT_SCRIPTS containing the JavaScript sources list
1807     # WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES containing the source file that will load the scripts to add the proper
1808     #   dependency and having them built at the right moment
1809
1810     MAKE_JS_FILE_ARRAYS(
1811         ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentScriptsData.cpp
1812         ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentScripts.h
1813         WebCore
1814         WebCore_USER_AGENT_SCRIPTS
1815         WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES
1816     )
1817     list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/UserAgentScriptsData.cpp)
1818 endif ()
1819
1820 # Generate plug-in resources
1821 add_custom_command(
1822     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/PlugInsResourcesData.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/PlugInsResources.h
1823     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/make-css-file-arrays.pl
1824     DEPENDS ${WebCore_PLUG_INS_RESOURCES} ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1825     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/make-css-file-arrays.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" ${DERIVED_SOURCES_WEBCORE_DIR}/PlugInsResources.h ${DERIVED_SOURCES_WEBCORE_DIR}/PlugInsResourcesData.cpp ${WebCore_PLUG_INS_RESOURCES}
1826     VERBATIM)
1827 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/PlugInsResourcesData.cpp)
1828 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/StyleResolver.cpp PlugInsResourcesData.cpp PlugInsResources.h)
1829
1830 set(FEATURE_DEFINES_JAVASCRIPT "LANGUAGE_JAVASCRIPT ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
1831 list(APPEND WebCoreTestSupport_IDL_FILES ${DERIVED_SOURCES_WEBCORE_DIR}/InternalSettingsGenerated.idl)
1832
1833 GENERATE_BINDINGS(WebCoreBindings
1834     OUTPUT_SOURCE WebCore_SOURCES
1835     INPUT_FILES ${WebCore_IDL_FILES}
1836     BASE_DIR ${WEBCORE_DIR}
1837     IDL_INCLUDES ${WebCore_IDL_INCLUDES} ${DERIVED_SOURCES_WEBCORE_DIR}
1838     FEATURES ${FEATURE_DEFINES_JAVASCRIPT}
1839     DESTINATION ${DERIVED_SOURCES_WEBCORE_DIR}
1840     GENERATOR JS
1841     SUPPLEMENTAL_DEPFILE ${SUPPLEMENTAL_DEPENDENCY_FILE}
1842     PP_EXTRA_OUTPUT
1843         ${WINDOW_CONSTRUCTORS_FILE} ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE} ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1844     PP_EXTRA_ARGS
1845         --windowConstructorsFile ${WINDOW_CONSTRUCTORS_FILE}
1846         --workerGlobalScopeConstructorsFile ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1847         --dedicatedWorkerGlobalScopeConstructorsFile ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1848         --serviceWorkerGlobalScopeConstructorsFile ${SERVICEWORKERGLOBALSCOPE_CONSTRUCTORS_FILE})
1849
1850 GENERATE_BINDINGS(WebCoreTestSupportBindings
1851     OUTPUT_SOURCE WebCoreTestSupport_SOURCES
1852     INPUT_FILES ${WebCoreTestSupport_IDL_FILES}
1853     BASE_DIR ${WEBCORE_DIR}
1854     IDL_INCLUDES ${WebCore_IDL_INCLUDES} ${DERIVED_SOURCES_WEBCORE_DIR} ${WebCoreTestSupport_IDL_INCLUDES}
1855     FEATURES ${FEATURE_DEFINES_JAVASCRIPT}
1856     DESTINATION ${DERIVED_SOURCES_WEBCORE_DIR}
1857     GENERATOR JS)
1858
1859 # WebCoreTestSupportBindings needs InternalSettingsGenerated.idl
1860 add_dependencies(WebCoreTestSupportBindings WebCore)
1861
1862 # WebCore JS Builtins
1863
1864 set(WebCore_BUILTINS_SOURCES
1865     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnection.js
1866     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnectionInternals.js
1867     ${WEBCORE_DIR}/Modules/streams/ByteLengthQueuingStrategy.js
1868     ${WEBCORE_DIR}/Modules/streams/CountQueuingStrategy.js
1869     ${WEBCORE_DIR}/Modules/streams/ReadableByteStreamController.js
1870     ${WEBCORE_DIR}/Modules/streams/ReadableByteStreamInternals.js
1871     ${WEBCORE_DIR}/Modules/streams/ReadableStream.js
1872     ${WEBCORE_DIR}/Modules/streams/ReadableStreamBYOBReader.js
1873     ${WEBCORE_DIR}/Modules/streams/ReadableStreamBYOBRequest.js
1874     ${WEBCORE_DIR}/Modules/streams/ReadableStreamDefaultController.js
1875     ${WEBCORE_DIR}/Modules/streams/ReadableStreamInternals.js
1876     ${WEBCORE_DIR}/Modules/streams/ReadableStreamDefaultReader.js
1877     ${WEBCORE_DIR}/Modules/streams/StreamInternals.js
1878     ${WEBCORE_DIR}/Modules/streams/WritableStream.js
1879     ${WEBCORE_DIR}/Modules/streams/WritableStreamInternals.js
1880     ${WEBCORE_DIR}/bindings/js/JSDOMBindingInternals.js
1881 )
1882
1883 set(BUILTINS_GENERATOR_SCRIPTS
1884     ${JavaScriptCore_SCRIPTS_DIR}/wkbuiltins.py
1885     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generator.py
1886     ${JavaScriptCore_SCRIPTS_DIR}/builtins_model.py
1887     ${JavaScriptCore_SCRIPTS_DIR}/builtins_templates.py
1888     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_header.py
1889     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_implementation.py
1890     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_header.py
1891     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_implementation.py
1892     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_header.py
1893     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_implementation.py
1894     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_header.py
1895     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_implementation.py
1896     ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py
1897     ${JavaScriptCore_SCRIPTS_DIR}/lazywriter.py
1898 )
1899
1900 foreach (_builtinSource ${WebCore_BUILTINS_SOURCES})
1901     get_filename_component(_objectName ${_builtinSource} NAME_WE)
1902     add_custom_command(
1903         OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/${_objectName}Builtins.cpp
1904                ${DERIVED_SOURCES_WEBCORE_DIR}/${_objectName}Builtins.h
1905         MAIN_DEPENDENCY ${_builtinSource}
1906         DEPENDS ${BUILTINS_GENERATOR_SCRIPTS}
1907         COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py --framework WebCore --output-directory ${DERIVED_SOURCES_WEBCORE_DIR} ${_builtinSource}
1908         VERBATIM)
1909     list(APPEND WebCore_DERIVED_BUILTIN_HEADERS ${DERIVED_SOURCES_WEBCORE_DIR}/${_objectName}Builtins.h)
1910 endforeach ()
1911
1912 add_custom_command(
1913     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltins.cpp
1914            ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltinInternals.cpp
1915            ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltins.h
1916            ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltinInternals.h
1917     MAIN_DEPENDENCY ${WebCore_BUILTINS_SOURCES}
1918     DEPENDS ${BUILTINS_GENERATOR_SCRIPTS} ${WebCore_DERIVED_BUILTIN_HEADERS}
1919     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py --wrappers-only --framework WebCore --output-directory ${DERIVED_SOURCES_WEBCORE_DIR} ${WebCore_BUILTINS_SOURCES}
1920     VERBATIM)
1921 list(APPEND WebCore_SOURCES
1922     ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltins.cpp
1923     ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltinInternals.cpp
1924     ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltins.h
1925     ${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreJSBuiltinInternals.h)
1926
1927 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/html/HTMLTreeBuilder.cpp MathMLNames.cpp)
1928
1929
1930 GENERATE_DOM_NAMES(HTML ${WEBCORE_DIR}/html/HTMLAttributeNames.in ${WEBCORE_DIR}/html/HTMLTagNames.in "")
1931 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/HTMLNames.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/HTMLElementFactory.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/JSHTMLElementWrapperFactory.cpp)
1932
1933
1934 GENERATE_EVENT_FACTORY(${WEBCORE_DIR}/dom/EventNames.in Event)
1935 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/EventInterfaces.h)
1936 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/EventFactory.cpp)
1937
1938
1939 GENERATE_EVENT_FACTORY(${WEBCORE_DIR}/dom/EventTargetFactory.in EventTarget)
1940 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/EventTargetInterfaces.h)
1941 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/EventTargetFactory.cpp)
1942
1943
1944 GENERATE_SETTINGS_MACROS(${WEBCORE_DIR}/page/Settings.yaml Settings.h)
1945 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/Settings.h)
1946 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/Settings.cpp)
1947 list(APPEND WebCoreTestSupport_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/InternalSettingsGenerated.cpp)
1948
1949
1950 GENERATE_FONT_NAMES(${WEBCORE_DIR}/css/WebKitFontFamilyNames.in)
1951 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/WebKitFontFamilyNames.cpp)
1952
1953
1954 GENERATE_DOM_NAMES(MathML ${WEBCORE_DIR}/mathml/mathattrs.in ${WEBCORE_DIR}/mathml/mathtags.in "")
1955 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/MathMLNames.cpp)
1956 if (ENABLE_MATHML)
1957     list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/MathMLElementFactory.cpp)
1958 endif ()
1959
1960 # SVG extra defines need to map to a numerical value for correct preprocessing of svgtags.in.
1961 set(SVG_EXTRA_DEFINES "")
1962 if (ENABLE_SVG_FONTS)
1963     list(APPEND SVG_EXTRA_DEFINES "ENABLE_SVG_FONTS=1")
1964 endif ()
1965
1966 GENERATE_DOM_NAMES(SVG ${WEBCORE_DIR}/svg/svgattrs.in ${WEBCORE_DIR}/svg/svgtags.in "${SVG_EXTRA_DEFINES}")
1967 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/SVGNames.cpp)
1968
1969 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/SVGElementFactory.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/JSSVGElementWrapperFactory.cpp)
1970
1971 GENERATE_DOM_NAMES(XLink ${WEBCORE_DIR}/svg/xlinkattrs.in)
1972 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/XLinkNames.cpp)
1973
1974
1975 GENERATE_DOM_NAMES(XMLNS ${WEBCORE_DIR}/xml/xmlnsattrs.in)
1976 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/XMLNSNames.cpp)
1977
1978
1979 GENERATE_DOM_NAMES(XML ${WEBCORE_DIR}/xml/xmlattrs.in)
1980 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/XMLNames.cpp)
1981
1982 WEBKIT_WRAP_SOURCELIST(${WebCore_IDL_FILES})
1983 WEBKIT_COMPUTE_SOURCES(WebCore)
1984 WEBKIT_WRAP_SOURCELIST(${WebCore_SOURCES})
1985 WEBKIT_WRAP_SOURCELIST(${WebCoreTestSupport_IDL_FILES} ${WebCoreTestSupport_SOURCES})
1986
1987 if (MSVC)
1988     WEBKIT_ADD_PRECOMPILED_HEADER("WebCorePrefix.h" "WebCorePrefix.cpp" WebCore_SOURCES)
1989 endif ()
1990
1991
1992 WEBKIT_FRAMEWORK(WebCore)
1993
1994 add_dependencies(WebCore WebCoreBindings)
1995
1996 if (APPLE)
1997     set_target_properties(WebCore PROPERTIES LINK_FLAGS "-sub_library libobjc -umbrella WebKit -allowable_client WebCoreTestSupport -allowable_client WebKit2 -allowable_client WebKitLegacy")
1998 endif ()
1999
2000 # The -ftree-sra optimization (implicit with -O2) causes crashes when
2001 # allocating large chunks of memory using bmalloc on Intel 32bit.
2002 # See https://bugs.webkit.org/show_bug.cgi?id=146440
2003 string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR)
2004 if (CMAKE_COMPILER_IS_GNUCXX AND "${LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR}" MATCHES "(i[3-6]86|x86)$")
2005     WEBKIT_ADD_TARGET_CXX_FLAGS(WebCore -fno-tree-sra)
2006 endif ()
2007
2008 # Include paths of WebCore doesn't propagate to targets using WebKit
2009 # because WebCore is linked to WebKit as a PRIVATE library. Forwarding
2010 # headers generated by generate-forwarding-headers.pl needs include
2011 # paths of WebCore.
2012 add_library(WebCoreHeaderInterface INTERFACE)
2013 target_include_directories(WebCoreHeaderInterface INTERFACE ${WebCore_INCLUDE_DIRECTORIES})
2014 target_include_directories(WebCoreHeaderInterface SYSTEM INTERFACE ${WebCore_SYSTEM_INCLUDE_DIRECTORIES})
2015 target_link_libraries(WebCoreHeaderInterface INTERFACE ${WebCore_LIBRARIES})
2016
2017 if (MSVC)
2018     WEBKIT_ADD_PRECOMPILED_HEADER("WebCoreTestSupportPrefix.h" "testing/js/WebCoreTestSupportPrefix.cpp" WebCoreTestSupport_SOURCES)
2019 endif ()
2020
2021 add_library(WebCoreTestSupport ${WebCoreTestSupport_LIBRARY_TYPE} ${WebCoreTestSupport_SOURCES})
2022 add_dependencies(WebCoreTestSupport WebCore WebCoreTestSupportBindings)
2023 target_include_directories(WebCoreTestSupport PUBLIC ${WebCoreTestSupport_INCLUDE_DIRECTORIES} ${WebCore_INCLUDE_DIRECTORIES})
2024 target_include_directories(WebCoreTestSupport SYSTEM PUBLIC ${WebCore_SYSTEM_INCLUDE_DIRECTORIES})
2025 target_link_libraries(WebCoreTestSupport ${WebCoreTestSupport_LIBRARIES})
2026
2027 if (WebCoreTestSupport_OUTPUT_NAME)
2028     set_target_properties(WebCoreTestSupport PROPERTIES OUTPUT_NAME ${WebCoreTestSupport_OUTPUT_NAME})
2029     if (MSVC)
2030         add_compile_options(/GF- /WX-)
2031     endif ()
2032 endif ()
2033
2034 if (ENABLE_GRAPHICS_CONTEXT_3D AND NOT WIN32)
2035     add_library(ANGLESupport STATIC ${ANGLESupport_SOURCES})
2036
2037     # Enable the ESSL and GLSL translators.
2038     set_property(TARGET ANGLESupport
2039         PROPERTY COMPILE_DEFINITIONS
2040         ANGLE_ENABLE_ESSL
2041         ANGLE_ENABLE_GLSL
2042         ${ANGLE_PLATFORM_DEFINITIONS})
2043
2044     target_include_directories(ANGLESupport PRIVATE
2045         "${THIRDPARTY_DIR}/ANGLE"
2046         "${THIRDPARTY_DIR}/ANGLE/include"
2047         "${THIRDPARTY_DIR}/ANGLE/include/KHR"
2048         "${THIRDPARTY_DIR}/ANGLE/src"
2049         "${THIRDPARTY_DIR}/ANGLE/src/common/third_party/base"
2050     )
2051     target_link_libraries(WebCore ANGLESupport)
2052
2053     if (COMPILER_IS_GCC_OR_CLANG)
2054         WEBKIT_ADD_TARGET_CXX_FLAGS(ANGLESupport -Wno-implicit-fallthrough
2055                                                  -Wno-inconsistent-missing-override
2056                                                  -Wno-null-conversion
2057                                                  -Wno-suggest-attribute=format
2058                                                  -Wno-unused-function
2059                                                  -Wno-unused-parameter)
2060     endif ()
2061 endif ()
2062
2063
2064 if (${WebCore_LIBRARY_TYPE} MATCHES "SHARED")
2065     set_target_properties(WebCore PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
2066     install(TARGETS WebCore DESTINATION "${LIB_INSTALL_DIR}")
2067 endif ()
2068
2069 if (MSVC)
2070     set_target_properties(WebCore PROPERTIES
2071         COMPILE_PDB_NAME ${WebCore_OUTPUT_NAME}
2072     )
2073 endif ()