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