f3368454be7321be6a6dbf82a11e48fb59723b49
[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/WebGLCompressedTexturePVRTC.cpp
1318         html/canvas/WebGLCompressedTextureS3TC.cpp
1319         html/canvas/WebGLContextEvent.cpp
1320         html/canvas/WebGLContextGroup.cpp
1321         html/canvas/WebGLContextObject.cpp
1322         html/canvas/WebGLDebugRendererInfo.cpp
1323         html/canvas/WebGLDebugShaders.cpp
1324         html/canvas/WebGLDepthTexture.cpp
1325         html/canvas/WebGLDrawBuffers.cpp
1326         html/canvas/WebGLExtension.cpp
1327         html/canvas/WebGLFramebuffer.cpp
1328         html/canvas/WebGLLoseContext.cpp
1329         html/canvas/WebGLObject.cpp
1330         html/canvas/WebGLProgram.cpp
1331         html/canvas/WebGLQuery.cpp
1332         html/canvas/WebGLRenderbuffer.cpp
1333         html/canvas/WebGLRenderingContext.cpp
1334         html/canvas/WebGLRenderingContextBase.cpp
1335         html/canvas/WebGLSampler.cpp
1336         html/canvas/WebGLShader.cpp
1337         html/canvas/WebGLShaderPrecisionFormat.cpp
1338         html/canvas/WebGLSharedObject.cpp
1339         html/canvas/WebGLSync.cpp
1340         html/canvas/WebGLTexture.cpp
1341         html/canvas/WebGLTransformFeedback.cpp
1342         html/canvas/WebGLUniformLocation.cpp
1343         html/canvas/WebGLVertexArrayObject.cpp
1344         html/canvas/WebGLVertexArrayObjectBase.cpp
1345         html/canvas/WebGLVertexArrayObjectOES.cpp
1346     )
1347     list(APPEND WebCore_IDL_FILES
1348         html/canvas/ANGLEInstancedArrays.idl
1349         html/canvas/EXTBlendMinMax.idl
1350         html/canvas/EXTFragDepth.idl
1351         html/canvas/EXTShaderTextureLOD.idl
1352         html/canvas/EXTTextureFilterAnisotropic.idl
1353         html/canvas/EXTsRGB.idl
1354         html/canvas/OESElementIndexUint.idl
1355         html/canvas/OESStandardDerivatives.idl
1356         html/canvas/OESTextureFloat.idl
1357         html/canvas/OESTextureFloatLinear.idl
1358         html/canvas/OESTextureHalfFloat.idl
1359         html/canvas/OESTextureHalfFloatLinear.idl
1360         html/canvas/OESVertexArrayObject.idl
1361         html/canvas/WebGL2RenderingContext.idl
1362         html/canvas/WebGLActiveInfo.idl
1363         html/canvas/WebGLBuffer.idl
1364         html/canvas/WebGLCompressedTextureASTC.idl
1365         html/canvas/WebGLCompressedTextureATC.idl
1366         html/canvas/WebGLCompressedTexturePVRTC.idl
1367         html/canvas/WebGLCompressedTextureS3TC.idl
1368         html/canvas/WebGLContextAttributes.idl
1369         html/canvas/WebGLContextEvent.idl
1370         html/canvas/WebGLDebugRendererInfo.idl
1371         html/canvas/WebGLDebugShaders.idl
1372         html/canvas/WebGLDepthTexture.idl
1373         html/canvas/WebGLDrawBuffers.idl
1374         html/canvas/WebGLFramebuffer.idl
1375         html/canvas/WebGLLoseContext.idl
1376         html/canvas/WebGLProgram.idl
1377         html/canvas/WebGLQuery.idl
1378         html/canvas/WebGLRenderbuffer.idl
1379         html/canvas/WebGLRenderingContext.idl
1380         html/canvas/WebGLRenderingContextBase.idl
1381         html/canvas/WebGLSampler.idl
1382         html/canvas/WebGLShader.idl
1383         html/canvas/WebGLShaderPrecisionFormat.idl
1384         html/canvas/WebGLSync.idl
1385         html/canvas/WebGLTexture.idl
1386         html/canvas/WebGLTransformFeedback.idl
1387         html/canvas/WebGLUniformLocation.idl
1388         html/canvas/WebGLVertexArrayObject.idl
1389         html/canvas/WebGLVertexArrayObjectOES.idl
1390     )
1391 endif ()
1392
1393 if (ENABLE_VIDEO_TRACK)
1394     list(APPEND WebCore_IDL_FILES
1395         html/track/AudioTrack.idl
1396         html/track/AudioTrackList.idl
1397         html/track/DataCue.idl
1398         html/track/TextTrack.idl
1399         html/track/TextTrackCue.idl
1400         html/track/TextTrackCueGeneric.idl
1401         html/track/TextTrackCueList.idl
1402         html/track/TextTrackList.idl
1403         html/track/TrackEvent.idl
1404         html/track/VTTCue.idl
1405         html/track/VTTRegion.idl
1406         html/track/VTTRegionList.idl
1407         html/track/VideoTrack.idl
1408         html/track/VideoTrackList.idl
1409     )
1410
1411     if (ENABLE_MEDIA_SOURCE)
1412         list(APPEND WebCore_IDL_FILES
1413             Modules/mediasource/AudioTrackMediaSource.idl
1414             Modules/mediasource/TextTrackMediaSource.idl
1415             Modules/mediasource/VideoTrackMediaSource.idl
1416         )
1417     endif ()
1418
1419     list(APPEND WebCore_SOURCES
1420         html/track/AudioTrack.cpp
1421         html/track/AudioTrackList.cpp
1422         html/track/BufferedLineReader.cpp
1423         html/track/DataCue.cpp
1424         html/track/InbandDataTextTrack.cpp
1425         html/track/InbandGenericTextTrack.cpp
1426         html/track/InbandTextTrack.cpp
1427         html/track/InbandWebVTTTextTrack.cpp
1428         html/track/LoadableTextTrack.cpp
1429         html/track/TextTrack.cpp
1430         html/track/TextTrackCue.cpp
1431         html/track/TextTrackCueGeneric.cpp
1432         html/track/TextTrackCueList.cpp
1433         html/track/TextTrackList.cpp
1434         html/track/TrackBase.cpp
1435         html/track/TrackEvent.cpp
1436         html/track/TrackListBase.cpp
1437         html/track/VTTCue.cpp
1438         html/track/VTTRegion.cpp
1439         html/track/VTTRegionList.cpp
1440         html/track/VTTScanner.cpp
1441         html/track/VideoTrack.cpp
1442         html/track/VideoTrackList.cpp
1443         html/track/WebVTTElement.cpp
1444         html/track/WebVTTParser.cpp
1445         html/track/WebVTTTokenizer.cpp
1446
1447         loader/cache/CachedTextTrack.cpp
1448
1449         platform/graphics/TextTrackRepresentation.cpp
1450         platform/graphics/TrackPrivateBase.cpp
1451     )
1452 endif ()
1453
1454 if (ENABLE_QUOTA)
1455     list(APPEND WebCore_SOURCES
1456         Modules/quota/DOMWindowQuota.cpp
1457         Modules/quota/NavigatorStorageQuota.cpp
1458         Modules/quota/StorageErrorCallback.cpp
1459         Modules/quota/StorageInfo.cpp
1460         Modules/quota/StorageQuota.cpp
1461         Modules/quota/WorkerNavigatorStorageQuota.cpp
1462     )
1463
1464     list(APPEND WebCore_IDL_FILES
1465         Modules/quota/DOMWindowQuota.idl
1466         Modules/quota/NavigatorStorageQuota.idl
1467         Modules/quota/StorageErrorCallback.idl
1468         Modules/quota/StorageInfo.idl
1469         Modules/quota/StorageQuota.idl
1470         Modules/quota/StorageQuotaCallback.idl
1471         Modules/quota/StorageUsageCallback.idl
1472         Modules/quota/WorkerNavigatorStorageQuota.idl
1473     )
1474 endif ()
1475
1476 if (ENABLE_GRAPHICS_CONTEXT_3D)
1477     list(APPEND WebCore_SOURCES
1478         platform/graphics/ANGLEWebKitBridge.cpp
1479         platform/graphics/FormatConverter.cpp
1480         platform/graphics/GraphicsContext3D.cpp
1481     )
1482
1483     list(APPEND WebCore_LIBRARIES ANGLEFramework)
1484     list(APPEND WebCoreTestSupport_LIBRARIES ANGLEFramework)
1485
1486     # For platforms that want to use system-provided OpenGL (ES) / EGL headers,
1487     # these include directories, libraries or definitions need to be
1488     # added before the ANGLE directories.
1489     if (USE_LIBEPOXY)
1490         list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1491             ${LIBEPOXY_INCLUDE_DIRS}
1492         )
1493         list(APPEND WebCore_LIBRARIES
1494             ${LIBEPOXY_LIBRARIES}
1495         )
1496         add_definitions(${LIBEPOXY_DEFINITIONS})
1497     else ()
1498         if (USE_OPENGL)
1499             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1500                 ${OPENGL_INCLUDE_DIRS}
1501             )
1502             list(APPEND WebCore_LIBRARIES
1503                 ${OPENGL_LIBRARIES}
1504             )
1505             add_definitions(${OPENGL_DEFINITIONS})
1506         elseif (USE_OPENGL_ES)
1507             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1508                 ${OPENGLES2_INCLUDE_DIRS}
1509             )
1510             list(APPEND WebCore_LIBRARIES
1511                 ${OPENGLES2_LIBRARIES}
1512             )
1513             add_definitions(${OPENGLES2_DEFINITIONS})
1514         endif ()
1515
1516         if (USE_EGL)
1517             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1518                 ${EGL_INCLUDE_DIRS}
1519             )
1520             list(APPEND WebCore_LIBRARIES
1521                 ${EGL_LIBRARIES}
1522             )
1523             add_definitions(${EGL_DEFINITIONS})
1524         endif ()
1525     endif ()
1526
1527     list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
1528         "${WEBCORE_DIR}/platform/graphics/gpu"
1529     )
1530 endif ()
1531
1532 if (ENABLE_USER_MESSAGE_HANDLERS)
1533     list(APPEND WebCore_IDL_FILES
1534         page/UserMessageHandler.idl
1535         page/UserMessageHandlersNamespace.idl
1536         page/WebKitNamespace.idl
1537     )
1538     list(APPEND WebCore_SOURCES
1539         page/UserMessageHandler.cpp
1540         page/UserMessageHandlerDescriptor.cpp
1541         page/UserMessageHandlersNamespace.cpp
1542         page/WebKitNamespace.cpp
1543     )
1544 endif ()
1545
1546 if (USE_OPENVR)
1547   list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/openvr/headers")
1548   list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/vr/openvr")
1549   list(APPEND WebCore_LIBRARIES openvr_api)
1550 endif ()
1551
1552 if (USE_WOFF2)
1553   list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${WOFF2DEC_INCLUDE_DIRS}")
1554   list(APPEND WebCore_LIBRARIES "${WOFF2DEC_LIBRARIES}")
1555 endif ()
1556
1557 if (USE_XDGMIME)
1558     list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/xdgmime/src")
1559     list(APPEND WebCore_LIBRARIES xdgmime)
1560 endif ()
1561
1562 if (USE_LIBWEBRTC)
1563     list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/libwebrtc/Source/"
1564         "${THIRDPARTY_DIR}/libwebrtc/Source/webrtc"
1565         "${THIRDPARTY_DIR}/libwebrtc/Source/third_party/abseil-cpp")
1566     list(APPEND WebCore_LIBRARIES webrtc)
1567     list(APPEND WebCore_SOURCES
1568         Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp
1569         Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
1570         Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp
1571         Modules/mediastream/libwebrtc/LibWebRTCRtpReceiverBackend.cpp
1572         Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp
1573         Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp
1574         Modules/mediastream/libwebrtc/LibWebRTCStatsCollector.cpp
1575         Modules/mediastream/libwebrtc/LibWebRTCUtils.cpp
1576     )
1577 endif ()
1578
1579 if (HAVE_OS_DARK_MODE_SUPPORT)
1580     set(FEATURE_DEFINES_WITH_SPACE_SEPARATOR "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR} HAVE_OS_DARK_MODE_SUPPORT")
1581 endif ()
1582
1583 set(WebCoreTestSupport_PRIVATE_INCLUDE_DIRECTORIES
1584     "${WEBCORE_DIR}/platform/mock"
1585     "${WEBCORE_DIR}/testing"
1586     "${WEBCORE_DIR}/testing/js"
1587     "${WebCore_DERIVED_SOURCES_DIR}"
1588 )
1589
1590 set(WebCoreTestSupport_IDL_INCLUDES
1591     testing
1592 )
1593
1594 set(WebCoreTestSupport_IDL_FILES
1595     testing/GCObservation.idl
1596     testing/InternalSettings.idl
1597     testing/Internals.idl
1598     testing/MallocStatistics.idl
1599     testing/MemoryInfo.idl
1600     testing/MockCDMFactory.idl
1601     testing/MockContentFilterSettings.idl
1602     testing/MockPageOverlay.idl
1603     testing/ServiceWorkerInternals.idl
1604     testing/TypeConversions.idl
1605 )
1606
1607 list(APPEND WebCoreTestSupport_SOURCES
1608     platform/mock/PlatformSpeechSynthesizerMock.cpp
1609
1610     platform/mock/mediasource/MockBox.cpp
1611     platform/mock/mediasource/MockMediaPlayerMediaSource.cpp
1612     platform/mock/mediasource/MockMediaSourcePrivate.cpp
1613     platform/mock/mediasource/MockSourceBufferPrivate.cpp
1614
1615     testing/GCObservation.cpp
1616     testing/InternalSettings.cpp
1617     testing/Internals.cpp
1618     testing/MockCDMFactory.cpp
1619     testing/MockGamepad.cpp
1620     testing/MockGamepadProvider.cpp
1621     testing/MockLibWebRTCPeerConnection.cpp
1622     testing/MockPageOverlay.cpp
1623     testing/MockPageOverlayClient.cpp
1624     testing/ServiceWorkerInternals.cpp
1625     testing/js/WebCoreTestSupport.cpp
1626 )
1627
1628 # Modules that the bindings generator scripts may use
1629 set(SCRIPTS_RESOLVE_SUPPLEMENTAL
1630     ${WEBCORE_DIR}/bindings/scripts/IDLParser.pm
1631 )
1632 set(SCRIPTS_BINDINGS
1633     ${WEBCORE_DIR}/bindings/scripts/CodeGenerator.pm
1634     ${WEBCORE_DIR}/bindings/scripts/CodeGeneratorJS.pm
1635     ${WEBCORE_DIR}/bindings/scripts/IDLParser.pm
1636     ${WEBCORE_DIR}/bindings/scripts/InFilesParser.pm
1637     ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1638 )
1639
1640 set(MAKE_NAMES_DEPENDENCIES
1641     ${WEBCORE_DIR}/bindings/scripts/Hasher.pm
1642     ${WEBCORE_DIR}/bindings/scripts/StaticString.pm
1643 )
1644 set(SUPPLEMENTAL_DEPENDENCY_FILE ${WebCore_DERIVED_SOURCES_DIR}/supplemental_dependency.tmp)
1645 set(WINDOW_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/DOMWindowConstructors.idl)
1646 set(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/WorkerGlobalScopeConstructors.idl)
1647 set(DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/DedicatedWorkerGlobalScopeConstructors.idl)
1648 set(SERVICEWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/ServiceWorkerGlobalScopeConstructors.idl)
1649 set(WORKLETGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/WorkletGlobalScopeConstructors.idl)
1650 set(PAINTWORKLETGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/PaintWorkletGlobalScopeConstructors.idl)
1651
1652 WEBKIT_FRAMEWORK_DECLARE(WebCore)
1653 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
1654
1655 WEBKIT_MAKE_FORWARDING_HEADERS(WebCore
1656     TARGET_NAME WebCorePrivateFrameworkHeaders
1657     DESTINATION ${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}/WebCore
1658     FILES ${WebCore_PRIVATE_FRAMEWORK_HEADERS}
1659     FLATTENED
1660 )
1661
1662 # Generate CommandLineAPIModuleSource.h
1663 add_custom_command(
1664     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.h ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js
1665     MAIN_DEPENDENCY inspector/CommandLineAPIModuleSource.js
1666     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
1667     COMMAND ${CMAKE_COMMAND} -E echo "//# sourceURL=__InjectedScript_CommandLineAPIModuleSource.js" > ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js
1668     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBCORE_DIR}/inspector/CommandLineAPIModuleSource.js >> ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js
1669     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl CommandLineAPIModuleSource_js ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.h
1670     VERBATIM)
1671 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.h)
1672
1673
1674 MAKE_HASH_TOOLS(${WEBCORE_DIR}/platform/ColorData)
1675 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/ColorData.cpp)
1676
1677
1678 # Generate DOMJITAbstractHeapRepository.h
1679 add_custom_command(
1680     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/DOMJITAbstractHeapRepository.h
1681     MAIN_DEPENDENCY domjit/DOMJITAbstractHeapRepository.yaml
1682     DEPENDS ${WEBCORE_DIR}/domjit/generate-abstract-heap.rb
1683     COMMAND ${RUBY_EXECUTABLE} ${WEBCORE_DIR}/domjit/generate-abstract-heap.rb ${WEBCORE_DIR}/domjit/DOMJITAbstractHeapRepository.yaml ${WebCore_DERIVED_SOURCES_DIR}/DOMJITAbstractHeapRepository.h
1684     VERBATIM)
1685 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/DOMJITAbstractHeapRepository.h)
1686
1687 # Generate XMLViewerCSS.h
1688 add_custom_command(
1689     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerCSS.h ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.css
1690     MAIN_DEPENDENCY xml/XMLViewer.css
1691     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/cssmin.py
1692     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/cssmin.py < ${WEBCORE_DIR}/xml/XMLViewer.css > ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.css
1693     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl XMLViewer_css ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.css ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerCSS.h
1694     VERBATIM)
1695 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerCSS.h)
1696
1697 # Generate XMLViewerJS.h
1698 add_custom_command(
1699     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerJS.h ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.js
1700     MAIN_DEPENDENCY xml/XMLViewer.js
1701     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
1702     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBCORE_DIR}/xml/XMLViewer.js > ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.js
1703     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl XMLViewer_js ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.js ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerJS.h
1704     VERBATIM)
1705 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerJS.h)
1706
1707 # Generate HTML entity table
1708 add_custom_command(
1709     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/HTMLEntityTable.cpp
1710     MAIN_DEPENDENCY ${WEBCORE_DIR}/html/parser/HTMLEntityNames.in
1711     DEPENDS ${WEBCORE_DIR}/html/parser/create-html-entity-table
1712     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/html/parser/create-html-entity-table -o ${WebCore_DERIVED_SOURCES_DIR}/HTMLEntityTable.cpp ${WEBCORE_DIR}/html/parser/HTMLEntityNames.in
1713     VERBATIM)
1714 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/HTMLEntityTable.cpp)
1715
1716 # Generate HTTP header names
1717 add_custom_command(
1718     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.cpp ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.gperf ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.h
1719     MAIN_DEPENDENCY ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in
1720     DEPENDS ${WEBCORE_DIR}/platform/network/create-http-header-name-table
1721     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1722     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/platform/network/create-http-header-name-table ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in "${GPERF_EXECUTABLE}"
1723     VERBATIM)
1724 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.cpp)
1725
1726 # Generate CSS property names
1727 add_custom_command(
1728     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
1729     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makeprop.pl
1730     DEPENDS ${WebCore_CSS_PROPERTY_NAMES}
1731     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1732     COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_PROPERTY_NAMES} > ${WebCore_DERIVED_SOURCES_DIR}/CSSProperties.json
1733     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/makeprop.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --gperf-executable "${GPERF_EXECUTABLE}"
1734     VERBATIM)
1735 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/CSSPropertyNames.cpp)
1736 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/StyleBuilderGenerated.cpp)
1737 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/StylePropertyShorthandFunctions.cpp)
1738 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp CSSValueKeywords.h)
1739
1740 # Generate CSS value keywords
1741 add_custom_command(
1742     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
1743     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makevalues.pl
1744     DEPENDS ${WebCore_CSS_VALUE_KEYWORDS}
1745     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1746     COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_VALUE_KEYWORDS} > ${WebCore_DERIVED_SOURCES_DIR}/CSSValueKeywords.in
1747     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}"
1748     VERBATIM)
1749 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/CSSValueKeywords.cpp)
1750 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp CSSValueKeywords.h)
1751 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSPrimitiveValueMappings.h CSSValueKeywords.h)
1752
1753 # Generate CSS Selector pseudo type name to value maps.
1754 add_custom_command(
1755     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoClassAndCompatibilityElementMap.gperf ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoClassAndCompatibilityElementMap.cpp
1756     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in
1757     DEPENDS ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py
1758     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1759     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
1760     VERBATIM)
1761 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoClassAndCompatibilityElementMap.cpp)
1762 add_custom_command(
1763     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoElementTypeMap.gperf ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoElementTypeMap.cpp
1764     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in
1765     DEPENDS ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py
1766     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1767     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
1768     VERBATIM)
1769 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoElementTypeMap.cpp)
1770
1771 # Generate user agent styles
1772 add_custom_command(
1773     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp ${WebCore_DERIVED_SOURCES_DIR}/UserAgentStyleSheets.h
1774     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/make-css-file-arrays.pl
1775     DEPENDS ${WebCore_USER_AGENT_STYLE_SHEETS} ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1776     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}
1777     VERBATIM)
1778 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp)
1779 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/StyleResolver.cpp UserAgentStyleSheetsData.cpp UserAgentStyleSheets.h)
1780
1781 if (WebCore_USER_AGENT_SCRIPTS)
1782     # Necessary variables:
1783     # WebCore_USER_AGENT_SCRIPTS containing the JavaScript sources list
1784     # WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES containing the source file that will load the scripts to add the proper
1785     #   dependency and having them built at the right moment
1786
1787     MAKE_JS_FILE_ARRAYS(
1788         ${WebCore_DERIVED_SOURCES_DIR}/UserAgentScriptsData.cpp
1789         ${WebCore_DERIVED_SOURCES_DIR}/UserAgentScripts.h
1790         WebCore
1791         WebCore_USER_AGENT_SCRIPTS
1792         WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES
1793     )
1794     list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/UserAgentScriptsData.cpp)
1795 endif ()
1796
1797 # Generate plug-in resources
1798 add_custom_command(
1799     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResourcesData.cpp ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResources.h
1800     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/make-css-file-arrays.pl
1801     DEPENDS ${WebCore_PLUG_INS_RESOURCES} ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1802     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}
1803     VERBATIM)
1804 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResourcesData.cpp)
1805 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/StyleResolver.cpp PlugInsResourcesData.cpp PlugInsResources.h)
1806
1807 set(FEATURE_DEFINES_JAVASCRIPT "LANGUAGE_JAVASCRIPT ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
1808 list(APPEND WebCoreTestSupport_IDL_FILES ${WebCore_DERIVED_SOURCES_DIR}/InternalSettingsGenerated.idl)
1809
1810 GENERATE_BINDINGS(WebCoreBindings
1811     OUTPUT_SOURCE WebCore_SOURCES
1812     INPUT_FILES ${WebCore_IDL_FILES}
1813     BASE_DIR ${WEBCORE_DIR}
1814     IDL_INCLUDES ${WebCore_IDL_INCLUDES} ${WebCore_DERIVED_SOURCES_DIR}
1815     FEATURES ${FEATURE_DEFINES_JAVASCRIPT}
1816     DESTINATION ${WebCore_DERIVED_SOURCES_DIR}
1817     GENERATOR JS
1818     SUPPLEMENTAL_DEPFILE ${SUPPLEMENTAL_DEPENDENCY_FILE}
1819     PP_EXTRA_OUTPUT
1820         ${WINDOW_CONSTRUCTORS_FILE} ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE} ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1821     PP_EXTRA_ARGS
1822         --windowConstructorsFile ${WINDOW_CONSTRUCTORS_FILE}
1823         --workerGlobalScopeConstructorsFile ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1824         --dedicatedWorkerGlobalScopeConstructorsFile ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1825         --serviceWorkerGlobalScopeConstructorsFile ${SERVICEWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1826         --workletGlobalScopeConstructorsFile ${WORKLETGLOBALSCOPE_CONSTRUCTORS_FILE}
1827         --paintWorkletGlobalScopeConstructorsFile ${PAINTWORKLETGLOBALSCOPE_CONSTRUCTORS_FILE})
1828
1829 GENERATE_BINDINGS(WebCoreTestSupportBindings
1830     OUTPUT_SOURCE WebCoreTestSupport_SOURCES
1831     INPUT_FILES ${WebCoreTestSupport_IDL_FILES}
1832     BASE_DIR ${WEBCORE_DIR}
1833     IDL_INCLUDES ${WebCore_IDL_INCLUDES} ${WebCore_DERIVED_SOURCES_DIR} ${WebCoreTestSupport_IDL_INCLUDES}
1834     FEATURES ${FEATURE_DEFINES_JAVASCRIPT}
1835     DESTINATION ${WebCore_DERIVED_SOURCES_DIR}
1836     GENERATOR JS)
1837
1838 # WebCoreTestSupportBindings needs InternalSettingsGenerated.idl
1839 add_dependencies(WebCoreTestSupportBindings WebCore)
1840
1841 # WebCore JS Builtins
1842
1843 set(WebCore_BUILTINS_SOURCES
1844     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnection.js
1845     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnectionInternals.js
1846     ${WEBCORE_DIR}/Modules/streams/ByteLengthQueuingStrategy.js
1847     ${WEBCORE_DIR}/Modules/streams/CountQueuingStrategy.js
1848     ${WEBCORE_DIR}/Modules/streams/ReadableByteStreamController.js
1849     ${WEBCORE_DIR}/Modules/streams/ReadableByteStreamInternals.js
1850     ${WEBCORE_DIR}/Modules/streams/ReadableStream.js
1851     ${WEBCORE_DIR}/Modules/streams/ReadableStreamBYOBReader.js
1852     ${WEBCORE_DIR}/Modules/streams/ReadableStreamBYOBRequest.js
1853     ${WEBCORE_DIR}/Modules/streams/ReadableStreamDefaultController.js
1854     ${WEBCORE_DIR}/Modules/streams/ReadableStreamInternals.js
1855     ${WEBCORE_DIR}/Modules/streams/ReadableStreamDefaultReader.js
1856     ${WEBCORE_DIR}/Modules/streams/StreamInternals.js
1857     ${WEBCORE_DIR}/Modules/streams/WritableStream.js
1858     ${WEBCORE_DIR}/Modules/streams/WritableStreamInternals.js
1859     ${WEBCORE_DIR}/bindings/js/JSDOMBindingInternals.js
1860 )
1861
1862 set(BUILTINS_GENERATOR_SCRIPTS
1863     ${JavaScriptCore_SCRIPTS_DIR}/wkbuiltins.py
1864     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generator.py
1865     ${JavaScriptCore_SCRIPTS_DIR}/builtins_model.py
1866     ${JavaScriptCore_SCRIPTS_DIR}/builtins_templates.py
1867     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_header.py
1868     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_implementation.py
1869     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_header.py
1870     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_implementation.py
1871     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_header.py
1872     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_implementation.py
1873     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_header.py
1874     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_implementation.py
1875     ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py
1876     ${JavaScriptCore_SCRIPTS_DIR}/lazywriter.py
1877 )
1878
1879 foreach (_builtinSource ${WebCore_BUILTINS_SOURCES})
1880     get_filename_component(_objectName ${_builtinSource} NAME_WE)
1881     add_custom_command(
1882         OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/${_objectName}Builtins.cpp
1883                ${WebCore_DERIVED_SOURCES_DIR}/${_objectName}Builtins.h
1884         MAIN_DEPENDENCY ${_builtinSource}
1885         DEPENDS ${BUILTINS_GENERATOR_SCRIPTS}
1886         COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py --framework WebCore --output-directory ${WebCore_DERIVED_SOURCES_DIR} ${_builtinSource}
1887         VERBATIM)
1888     list(APPEND WebCore_DERIVED_BUILTIN_HEADERS ${WebCore_DERIVED_SOURCES_DIR}/${_objectName}Builtins.h)
1889 endforeach ()
1890
1891 add_custom_command(
1892     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.cpp
1893            ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.cpp
1894            ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.h
1895            ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.h
1896     MAIN_DEPENDENCY ${WebCore_BUILTINS_SOURCES}
1897     DEPENDS ${BUILTINS_GENERATOR_SCRIPTS} ${WebCore_DERIVED_BUILTIN_HEADERS}
1898     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py --wrappers-only --framework WebCore --output-directory ${WebCore_DERIVED_SOURCES_DIR} ${WebCore_BUILTINS_SOURCES}
1899     VERBATIM)
1900 list(APPEND WebCore_SOURCES
1901     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.cpp
1902     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.cpp
1903     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.h
1904     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.h)
1905
1906 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/html/HTMLTreeBuilder.cpp MathMLNames.cpp)
1907
1908
1909 GENERATE_DOM_NAMES(HTML ${WEBCORE_DIR}/html/HTMLAttributeNames.in ${WEBCORE_DIR}/html/HTMLTagNames.in "")
1910 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/HTMLNames.cpp ${WebCore_DERIVED_SOURCES_DIR}/HTMLElementFactory.cpp ${WebCore_DERIVED_SOURCES_DIR}/JSHTMLElementWrapperFactory.cpp)
1911
1912
1913 GENERATE_EVENT_FACTORY(${WEBCORE_DIR}/dom/EventNames.in Event)
1914 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventInterfaces.h)
1915 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventFactory.cpp)
1916
1917
1918 GENERATE_EVENT_FACTORY(${WEBCORE_DIR}/dom/EventTargetFactory.in EventTarget)
1919 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventTargetInterfaces.h)
1920 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventTargetFactory.cpp)
1921
1922
1923 GENERATE_SETTINGS_MACROS(${WEBCORE_DIR}/page/Settings.yaml Settings.h)
1924 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/Settings.h)
1925 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/Settings.cpp)
1926 list(APPEND WebCoreTestSupport_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/InternalSettingsGenerated.cpp)
1927
1928 GENERATE_FONT_NAMES(${WEBCORE_DIR}/css/WebKitFontFamilyNames.in)
1929 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/WebKitFontFamilyNames.cpp)
1930
1931
1932 GENERATE_DOM_NAMES(MathML ${WEBCORE_DIR}/mathml/mathattrs.in ${WEBCORE_DIR}/mathml/mathtags.in "")
1933 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/MathMLNames.cpp)
1934 if (ENABLE_MATHML)
1935     list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/MathMLElementFactory.cpp)
1936 endif ()
1937
1938 # SVG extra defines need to map to a numerical value for correct preprocessing of svgtags.in.
1939 set(SVG_EXTRA_DEFINES "")
1940 if (ENABLE_SVG_FONTS)
1941     list(APPEND SVG_EXTRA_DEFINES "ENABLE_SVG_FONTS=1")
1942 endif ()
1943
1944 GENERATE_DOM_NAMES(SVG ${WEBCORE_DIR}/svg/svgattrs.in ${WEBCORE_DIR}/svg/svgtags.in "${SVG_EXTRA_DEFINES}")
1945 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SVGNames.cpp)
1946
1947 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SVGElementFactory.cpp ${WebCore_DERIVED_SOURCES_DIR}/JSSVGElementWrapperFactory.cpp)
1948
1949 GENERATE_DOM_NAMES(XLink ${WEBCORE_DIR}/svg/xlinkattrs.in)
1950 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XLinkNames.cpp)
1951
1952
1953 GENERATE_DOM_NAMES(XMLNS ${WEBCORE_DIR}/xml/xmlnsattrs.in)
1954 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLNSNames.cpp)
1955
1956 GENERATE_DOM_NAMES(XML ${WEBCORE_DIR}/xml/xmlattrs.in)
1957 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLNames.cpp)
1958
1959 WEBKIT_WRAP_SOURCELIST(${WebCore_IDL_FILES})
1960 WEBKIT_COMPUTE_SOURCES(WebCore)
1961 WEBKIT_WRAP_SOURCELIST(${WebCore_SOURCES})
1962 WEBKIT_WRAP_SOURCELIST(${WebCoreTestSupport_IDL_FILES} ${WebCoreTestSupport_SOURCES})
1963
1964 if (MSVC)
1965     WEBKIT_ADD_PRECOMPILED_HEADER("WebCorePrefix.h" "WebCorePrefix.cpp" WebCore_SOURCES)
1966 endif ()
1967
1968 WEBKIT_FRAMEWORK(WebCore)
1969
1970 add_dependencies(WebCore WebCoreBindings)
1971 add_dependencies(WebCorePrivateFrameworkHeaders WebCoreBindings)
1972
1973 if (APPLE)
1974     set_target_properties(WebCore PROPERTIES LINK_FLAGS "-sub_library libobjc -umbrella WebKit -allowable_client WebCoreTestSupport -allowable_client WebKit2 -allowable_client WebKitLegacy")
1975 endif ()
1976
1977 # The -ftree-sra optimization (implicit with -O2) causes crashes when
1978 # allocating large chunks of memory using bmalloc on Intel 32bit.
1979 # See https://bugs.webkit.org/show_bug.cgi?id=146440
1980 string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR)
1981 if (CMAKE_COMPILER_IS_GNUCXX AND "${LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR}" MATCHES "(i[3-6]86|x86)$")
1982     WEBKIT_ADD_TARGET_CXX_FLAGS(WebCore -fno-tree-sra)
1983 endif ()
1984
1985 # Include paths of WebCore doesn't propagate to targets using WebKit
1986 # because WebCore is linked to WebKit as a PRIVATE library. Forwarding
1987 # headers generated by generate-forwarding-headers.pl needs include
1988 # paths of WebCore.
1989 add_library(WebCoreHeaderInterface INTERFACE)
1990 target_include_directories(WebCoreHeaderInterface INTERFACE ${WebCore_INCLUDE_DIRECTORIES})
1991 target_include_directories(WebCoreHeaderInterface SYSTEM INTERFACE ${WebCore_SYSTEM_INCLUDE_DIRECTORIES})
1992 target_link_libraries(WebCoreHeaderInterface INTERFACE ${WebCore_LIBRARIES})
1993
1994 if (MSVC)
1995     WEBKIT_ADD_PRECOMPILED_HEADER("WebCoreTestSupportPrefix.h" "testing/js/WebCoreTestSupportPrefix.cpp" WebCoreTestSupport_SOURCES)
1996 endif ()
1997
1998 add_library(WebCoreTestSupport ${WebCoreTestSupport_LIBRARY_TYPE} ${WebCoreTestSupport_SOURCES})
1999 add_dependencies(WebCoreTestSupport WebCore WebCoreTestSupportBindings)
2000 target_include_directories(WebCoreTestSupport PUBLIC ${WebCoreTestSupport_INCLUDE_DIRECTORIES} ${WebCore_INCLUDE_DIRECTORIES})
2001 target_include_directories(WebCoreTestSupport PRIVATE ${WebCoreTestSupport_PRIVATE_INCLUDE_DIRECTORIES} ${WebCore_PRIVATE_INCLUDE_DIRECTORIES})
2002 target_include_directories(WebCoreTestSupport SYSTEM PUBLIC ${WebCoreTestSupport_SYSTEM_INCLUDE_DIRECTORIES} ${WebCore_SYSTEM_INCLUDE_DIRECTORIES})
2003 target_link_libraries(WebCoreTestSupport PRIVATE ${WebCoreTestSupport_LIBRARIES})
2004
2005 if (WebCoreTestSupport_OUTPUT_NAME)
2006     set_target_properties(WebCoreTestSupport PROPERTIES OUTPUT_NAME ${WebCoreTestSupport_OUTPUT_NAME})
2007     if (MSVC)
2008         add_compile_options(/WX-)
2009     endif ()
2010 endif ()
2011
2012 if (${WebCore_LIBRARY_TYPE} MATCHES "SHARED")
2013     set_target_properties(WebCore PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
2014     install(TARGETS WebCore DESTINATION "${LIB_INSTALL_DIR}")
2015 endif ()
2016
2017 if (MSVC)
2018     set_target_properties(WebCore PROPERTIES
2019         COMPILE_PDB_NAME ${WebCore_OUTPUT_NAME}
2020     )
2021 endif ()