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