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