Web Inspector: Debugger: pause on assertion failures breakpoint doesn't work when...
[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/Coordinates.idl
265     Modules/geolocation/Geolocation.idl
266     Modules/geolocation/Geoposition.idl
267     Modules/geolocation/NavigatorGeolocation.idl
268     Modules/geolocation/PositionCallback.idl
269     Modules/geolocation/PositionError.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/GPUColorWriteBits.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/GPUShaderStageBit.idl
491     Modules/webgpu/GPUStoreOp.idl
492     Modules/webgpu/GPUTextureDescriptor.idl
493     Modules/webgpu/GPUTextureFormat.idl
494     Modules/webgpu/GPUTextureUsage.idl
495     Modules/webgpu/GPUValidationError.idl
496     Modules/webgpu/GPUVertexAttributeDescriptor.idl
497     Modules/webgpu/GPUVertexBufferDescriptor.idl
498     Modules/webgpu/GPUVertexInputDescriptor.idl
499     Modules/webgpu/NavigatorGPU.idl
500     Modules/webgpu/WebGPU.idl
501     Modules/webgpu/WebGPUAdapter.idl
502     Modules/webgpu/WebGPUBindGroup.idl
503     Modules/webgpu/WebGPUBindGroupBinding.idl
504     Modules/webgpu/WebGPUBindGroupDescriptor.idl
505     Modules/webgpu/WebGPUBindGroupLayout.idl
506     Modules/webgpu/WebGPUBuffer.idl
507     Modules/webgpu/WebGPUBufferBinding.idl
508     Modules/webgpu/WebGPUCommandBuffer.idl
509     Modules/webgpu/WebGPUCommandEncoder.idl
510     Modules/webgpu/WebGPUComputePassEncoder.idl
511     Modules/webgpu/WebGPUComputePipeline.idl
512     Modules/webgpu/WebGPUComputePipelineDescriptor.idl
513     Modules/webgpu/WebGPUDevice.idl
514     Modules/webgpu/WebGPUDeviceErrorScopes.idl
515     Modules/webgpu/WebGPUPipelineDescriptorBase.idl
516     Modules/webgpu/WebGPUPipelineLayout.idl
517     Modules/webgpu/WebGPUPipelineLayoutDescriptor.idl
518     Modules/webgpu/WebGPUPipelineStageDescriptor.idl
519     Modules/webgpu/WebGPUProgrammablePassEncoder.idl
520     Modules/webgpu/WebGPUQueue.idl
521     Modules/webgpu/WebGPURenderPassDescriptor.idl
522     Modules/webgpu/WebGPURenderPassEncoder.idl
523     Modules/webgpu/WebGPURenderPipeline.idl
524     Modules/webgpu/WebGPURenderPipelineDescriptor.idl
525     Modules/webgpu/WebGPUSampler.idl
526     Modules/webgpu/WebGPUShaderModule.idl
527     Modules/webgpu/WebGPUShaderModuleDescriptor.idl
528     Modules/webgpu/WebGPUSwapChain.idl
529     Modules/webgpu/WebGPUTexture.idl
530     Modules/webgpu/WebGPUTextureView.idl
531     Modules/webgpu/WorkerNavigatorGPU.idl
532
533     Modules/websockets/CloseEvent.idl
534     Modules/websockets/WebSocket.idl
535
536     Modules/webvr/DOMWindowWebVR.idl
537     Modules/webvr/NavigatorWebVR.idl
538     Modules/webvr/VRDisplay.idl
539     Modules/webvr/VRDisplayCapabilities.idl
540     Modules/webvr/VRDisplayEvent.idl
541     Modules/webvr/VRDisplayEventReason.idl
542     Modules/webvr/VREye.idl
543     Modules/webvr/VREyeParameters.idl
544     Modules/webvr/VRFieldOfView.idl
545     Modules/webvr/VRFrameData.idl
546     Modules/webvr/VRLayerInit.idl
547     Modules/webvr/VRPose.idl
548     Modules/webvr/VRStageParameters.idl
549
550     accessibility/AccessibilityRole.idl
551     accessibility/AriaAttributes.idl
552
553     animation/Animatable.idl
554     animation/AnimationEffect.idl
555     animation/EffectTiming.idl
556     animation/AnimationPlaybackEvent.idl
557     animation/AnimationPlaybackEventInit.idl
558     animation/AnimationTimeline.idl
559     animation/CSSAnimation.idl
560     animation/CSSTransition.idl
561     animation/CompositeOperation.idl
562     animation/CompositeOperationOrAuto.idl
563     animation/ComputedEffectTiming.idl
564     animation/DocumentTimeline.idl
565     animation/DocumentTimelineOptions.idl
566     animation/FillMode.idl
567     animation/IterationCompositeOperation.idl
568     animation/KeyframeAnimationOptions.idl
569     animation/KeyframeEffect.idl
570     animation/KeyframeEffectOptions.idl
571     animation/OptionalEffectTiming.idl
572     animation/PlaybackDirection.idl
573     animation/WebAnimation.idl
574
575     crypto/CryptoAlgorithmParameters.idl
576     crypto/CryptoKey.idl
577     crypto/CryptoKeyPair.idl
578     crypto/CryptoKeyUsage.idl
579     crypto/JsonWebKey.idl
580     crypto/RsaOtherPrimesInfo.idl
581     crypto/SubtleCrypto.idl
582
583     crypto/keys/CryptoAesKeyAlgorithm.idl
584     crypto/keys/CryptoEcKeyAlgorithm.idl
585     crypto/keys/CryptoHmacKeyAlgorithm.idl
586     crypto/keys/CryptoKeyAlgorithm.idl
587     crypto/keys/CryptoRsaHashedKeyAlgorithm.idl
588     crypto/keys/CryptoRsaKeyAlgorithm.idl
589
590     crypto/parameters/AesCbcCfbParams.idl
591     crypto/parameters/AesCtrParams.idl
592     crypto/parameters/AesGcmParams.idl
593     crypto/parameters/AesKeyParams.idl
594     crypto/parameters/EcKeyParams.idl
595     crypto/parameters/EcdhKeyDeriveParams.idl
596     crypto/parameters/EcdsaParams.idl
597     crypto/parameters/HkdfParams.idl
598     crypto/parameters/HmacKeyParams.idl
599     crypto/parameters/Pbkdf2Params.idl
600     crypto/parameters/RsaHashedImportParams.idl
601     crypto/parameters/RsaHashedKeyGenParams.idl
602     crypto/parameters/RsaKeyGenParams.idl
603     crypto/parameters/RsaOaepParams.idl
604     crypto/parameters/RsaPssParams.idl
605
606     css/CSSFontFaceRule.idl
607     css/CSSImportRule.idl
608     css/CSSKeyframeRule.idl
609     css/CSSKeyframesRule.idl
610     css/CSSMediaRule.idl
611     css/CSSNamespaceRule.idl
612     css/CSSPaintCallback.idl
613     css/CSSPaintSize.idl
614     css/CSSPageRule.idl
615     css/CSSRule.idl
616     css/CSSRuleList.idl
617     css/CSSStyleDeclaration.idl
618     css/CSSStyleRule.idl
619     css/CSSStyleSheet.idl
620     css/CSSSupportsRule.idl
621     css/CSSUnknownRule.idl
622     css/DOMCSSCustomPropertyDescriptor.idl
623     css/DOMCSSNamespace.idl
624     css/DOMCSSPaintWorklet.idl
625     css/DOMCSSRegisterCustomProperty.idl
626     css/DOMMatrix.idl
627     css/DOMMatrix2DInit.idl
628     css/DOMMatrixInit.idl
629     css/DOMMatrixReadOnly.idl
630     css/DeprecatedCSSOMCounter.idl
631     css/DeprecatedCSSOMPrimitiveValue.idl
632     css/DeprecatedCSSOMRGBColor.idl
633     css/DeprecatedCSSOMRect.idl
634     css/DeprecatedCSSOMValue.idl
635     css/DeprecatedCSSOMValueList.idl
636     css/ElementCSSInlineStyle.idl
637     css/FontFace.idl
638     css/FontFaceSet.idl
639     css/MediaList.idl
640     css/MediaQueryList.idl
641     css/MediaQueryListListener.idl
642     css/StyleMedia.idl
643     css/StyleSheet.idl
644     css/StyleSheetList.idl
645
646     css/typedom/StylePropertyMap.idl
647     css/typedom/StylePropertyMapReadOnly.idl
648     css/typedom/TypedOMCSSImageValue.idl
649     css/typedom/TypedOMCSSNumericValue.idl
650     css/typedom/TypedOMCSSStyleValue.idl
651     css/typedom/TypedOMCSSUnitValue.idl
652     css/typedom/TypedOMCSSUnparsedValue.idl
653
654     css/WebKitCSSMatrix.idl
655     css/WebKitCSSViewportRule.idl
656
657     dom/AbortController.idl
658     dom/AbortSignal.idl
659     dom/AnimationEvent.idl
660     dom/Attr.idl
661     dom/BeforeLoadEvent.idl
662     dom/BeforeUnloadEvent.idl
663     dom/CDATASection.idl
664     dom/CharacterData.idl
665     dom/ChildNode.idl
666     dom/ClipboardEvent.idl
667     dom/Comment.idl
668     dom/CompositionEvent.idl
669     dom/CustomElementRegistry.idl
670     dom/CustomEvent.idl
671     dom/DOMException.idl
672     dom/DOMImplementation.idl
673     dom/DOMPoint.idl
674     dom/DOMPointInit.idl
675     dom/DOMPointReadOnly.idl
676     dom/DOMQuad.idl
677     dom/DOMQuadInit.idl
678     dom/DOMRect.idl
679     dom/DOMRectInit.idl
680     dom/DOMRectList.idl
681     dom/DOMRectReadOnly.idl
682     dom/DOMStringList.idl
683     dom/DOMStringMap.idl
684     dom/DataTransfer.idl
685     dom/DataTransferItem.idl
686     dom/DataTransferItemList.idl
687     dom/DeviceMotionEvent.idl
688     dom/DeviceOrientationEvent.idl
689     dom/DeviceOrientationOrMotionEvent.idl
690     dom/DeviceOrientationOrMotionPermissionState.idl
691     dom/Document.idl
692     dom/DocumentAndElementEventHandlers.idl
693     dom/DocumentFragment.idl
694     dom/DocumentFullscreen.idl
695     dom/DocumentOrShadowRoot.idl
696     dom/DocumentTouch.idl
697     dom/DocumentType.idl
698     dom/Element.idl
699     dom/ErrorEvent.idl
700     dom/Event.idl
701     dom/EventInit.idl
702     dom/EventModifierInit.idl
703     dom/EventTarget.idl
704     dom/FocusEvent.idl
705     dom/GlobalEventHandlers.idl
706     dom/HashChangeEvent.idl
707     dom/InputEvent.idl
708     dom/KeyboardEvent.idl
709     dom/MessageChannel.idl
710     dom/MessageEvent.idl
711     dom/MessagePort.idl
712     dom/MouseEvent.idl
713     dom/MouseEventInit.idl
714     dom/MutationCallback.idl
715     dom/MutationEvent.idl
716     dom/MutationObserver.idl
717     dom/MutationRecord.idl
718     dom/NamedNodeMap.idl
719     dom/NavigatorMaxTouchPoints.idl
720     dom/Node.idl
721     dom/NodeFilter.idl
722     dom/NodeIterator.idl
723     dom/NodeList.idl
724     dom/NonDocumentTypeChildNode.idl
725     dom/NonElementParentNode.idl
726     dom/OverflowEvent.idl
727     dom/PageTransitionEvent.idl
728     dom/ParentNode.idl
729     dom/PointerEvent.idl
730     dom/PopStateEvent.idl
731     dom/ProcessingInstruction.idl
732     dom/ProgressEvent.idl
733     dom/PromiseRejectionEvent.idl
734     dom/Range.idl
735     dom/RequestAnimationFrameCallback.idl
736     dom/SecurityPolicyViolationEvent.idl
737     dom/ShadowRoot.idl
738     dom/ShadowRootMode.idl
739     dom/Slotable.idl
740     dom/SpectreGadget.idl
741     dom/StaticRange.idl
742     dom/StringCallback.idl
743     dom/Text.idl
744     dom/TextDecoder.idl
745     dom/TextEncoder.idl
746     dom/TextEvent.idl
747     dom/Touch.idl
748     dom/TouchEvent.idl
749     dom/TouchList.idl
750     dom/TransitionEvent.idl
751     dom/TreeWalker.idl
752     dom/UIEvent.idl
753     dom/UIEventInit.idl
754     dom/VisibilityState.idl
755     dom/WebKitAnimationEvent.idl
756     dom/WebKitTransitionEvent.idl
757     dom/WheelEvent.idl
758     dom/XMLDocument.idl
759
760     fileapi/Blob.idl
761     fileapi/BlobCallback.idl
762     fileapi/BlobLineEndings.idl
763     fileapi/BlobPropertyBag.idl
764     fileapi/File.idl
765     fileapi/FileError.idl
766     fileapi/FileList.idl
767     fileapi/FileReader.idl
768     fileapi/FileReaderSync.idl
769
770     html/DOMFormData.idl
771     html/DOMTokenList.idl
772     html/DOMURL.idl
773     html/HTMLAllCollection.idl
774     html/HTMLAnchorElement.idl
775     html/HTMLAppletElement.idl
776     html/HTMLAreaElement.idl
777     html/HTMLAttachmentElement.idl
778     html/HTMLAudioElement.idl
779     html/HTMLBRElement.idl
780     html/HTMLBaseElement.idl
781     html/HTMLBodyElement.idl
782     html/HTMLButtonElement.idl
783     html/HTMLCanvasElement.idl
784     html/HTMLCollection.idl
785     html/HTMLDListElement.idl
786     html/HTMLDataElement.idl
787     html/HTMLDataListElement.idl
788     html/HTMLDetailsElement.idl
789     html/HTMLDialogElement.idl
790     html/HTMLDirectoryElement.idl
791     html/HTMLDivElement.idl
792     html/HTMLDocument.idl
793     html/HTMLElement.idl
794     html/HTMLEmbedElement.idl
795     html/HTMLFieldSetElement.idl
796     html/HTMLFontElement.idl
797     html/HTMLFormControlsCollection.idl
798     html/HTMLFormElement.idl
799     html/HTMLFrameElement.idl
800     html/HTMLFrameSetElement.idl
801     html/HTMLHRElement.idl
802     html/HTMLHeadElement.idl
803     html/HTMLHeadingElement.idl
804     html/HTMLHtmlElement.idl
805     html/HTMLHyperlinkElementUtils.idl
806     html/HTMLIFrameElement.idl
807     html/HTMLImageElement.idl
808     html/HTMLInputElement.idl
809     html/HTMLKeygenElement.idl
810     html/HTMLLIElement.idl
811     html/HTMLLabelElement.idl
812     html/HTMLLegendElement.idl
813     html/HTMLLinkElement.idl
814     html/HTMLMapElement.idl
815     html/HTMLMarqueeElement.idl
816     html/HTMLMediaElement.idl
817     html/HTMLMenuElement.idl
818     html/HTMLMenuItemElement.idl
819     html/HTMLMetaElement.idl
820     html/HTMLMeterElement.idl
821     html/HTMLModElement.idl
822     html/HTMLOListElement.idl
823     html/HTMLObjectElement.idl
824     html/HTMLOptGroupElement.idl
825     html/HTMLOptionElement.idl
826     html/HTMLOptionsCollection.idl
827     html/HTMLOutputElement.idl
828     html/HTMLParagraphElement.idl
829     html/HTMLParamElement.idl
830     html/HTMLPictureElement.idl
831     html/HTMLPreElement.idl
832     html/HTMLProgressElement.idl
833     html/HTMLQuoteElement.idl
834     html/HTMLScriptElement.idl
835     html/HTMLSelectElement.idl
836     html/HTMLSlotElement.idl
837     html/HTMLSourceElement.idl
838     html/HTMLSpanElement.idl
839     html/HTMLStyleElement.idl
840     html/HTMLTableCaptionElement.idl
841     html/HTMLTableCellElement.idl
842     html/HTMLTableColElement.idl
843     html/HTMLTableElement.idl
844     html/HTMLTableRowElement.idl
845     html/HTMLTableSectionElement.idl
846     html/HTMLTemplateElement.idl
847     html/HTMLTextAreaElement.idl
848     html/HTMLTimeElement.idl
849     html/HTMLTitleElement.idl
850     html/HTMLTrackElement.idl
851     html/HTMLUListElement.idl
852     html/HTMLUnknownElement.idl
853     html/HTMLVideoElement.idl
854     html/ImageBitmap.idl
855     html/ImageBitmapOptions.idl
856     html/ImageData.idl
857     html/MediaController.idl
858     html/MediaError.idl
859     html/OffscreenCanvas.idl
860     html/RadioNodeList.idl
861     html/TextMetrics.idl
862     html/TimeRanges.idl
863     html/URLSearchParams.idl
864     html/ValidityState.idl
865     html/VoidCallback.idl
866
867     html/canvas/CanvasCompositing.idl
868     html/canvas/CanvasDirection.idl
869     html/canvas/CanvasDrawImage.idl
870     html/canvas/CanvasDrawPath.idl
871     html/canvas/CanvasFillRule.idl
872     html/canvas/CanvasFillStrokeStyles.idl
873     html/canvas/CanvasFilters.idl
874     html/canvas/CanvasGradient.idl
875     html/canvas/CanvasImageData.idl
876     html/canvas/CanvasImageSmoothing.idl
877     html/canvas/CanvasLineCap.idl
878     html/canvas/CanvasLineJoin.idl
879     html/canvas/CanvasPath.idl
880     html/canvas/CanvasPathDrawingStyles.idl
881     html/canvas/CanvasPattern.idl
882     html/canvas/CanvasRect.idl
883     html/canvas/CanvasRenderingContext2D.idl
884     html/canvas/CanvasShadowStyles.idl
885     html/canvas/CanvasState.idl
886     html/canvas/CanvasText.idl
887     html/canvas/CanvasTextAlign.idl
888     html/canvas/CanvasTextBaseline.idl
889     html/canvas/CanvasTextDrawingStyles.idl
890     html/canvas/CanvasTransform.idl
891     html/canvas/CanvasUserInterface.idl
892     html/canvas/ImageBitmapRenderingContext.idl
893     html/canvas/ImageBitmapRenderingContextSettings.idl
894     html/canvas/ImageSmoothingQuality.idl
895     html/canvas/OffscreenCanvasRenderingContext2D.idl
896     html/canvas/PaintRenderingContext2D.idl
897     html/canvas/Path2D.idl
898
899     inspector/CommandLineAPIHost.idl
900     inspector/InspectorAuditAccessibilityObject.idl
901     inspector/InspectorAuditDOMObject.idl
902     inspector/InspectorAuditResourcesObject.idl
903     inspector/InspectorFrontendHost.idl
904
905     loader/appcache/DOMApplicationCache.idl
906
907     page/BarProp.idl
908     page/Crypto.idl
909     page/DOMSelection.idl
910     page/DOMWindow.idl
911     page/EventSource.idl
912     page/GlobalCrypto.idl
913     page/GlobalPerformance.idl
914     page/History.idl
915     page/IntersectionObserver.idl
916     page/IntersectionObserverCallback.idl
917     page/IntersectionObserverEntry.idl
918     page/Location.idl
919     page/Navigator.idl
920     page/NavigatorID.idl
921     page/NavigatorLanguage.idl
922     page/NavigatorOnLine.idl
923     page/NavigatorServiceWorker.idl
924     page/NavigatorShare.idl
925     page/Performance.idl
926     page/PerformanceEntry.idl
927     page/PerformanceMark.idl
928     page/PerformanceMeasure.idl
929     page/PerformanceObserver.idl
930     page/PerformanceObserverCallback.idl
931     page/PerformanceObserverEntryList.idl
932     page/PerformanceNavigation.idl
933     page/PerformanceResourceTiming.idl
934     page/PerformanceServerTiming.idl
935     page/PerformanceTiming.idl
936     page/RemoteDOMWindow.idl
937     page/ResizeObserver.idl
938     page/ResizeObserverCallback.idl
939     page/ResizeObserverEntry.idl
940     page/Screen.idl
941     page/ScrollIntoViewOptions.idl
942     page/ScrollLogicalPosition.idl
943     page/ScrollToOptions.idl
944     page/ShareData.idl
945     page/UndoItem.idl
946     page/UndoManager.idl
947     page/VisualViewport.idl
948     page/WebKitPoint.idl
949     page/WindowEventHandlers.idl
950     page/WindowOrWorkerGlobalScope.idl
951     page/WorkerNavigator.idl
952
953     plugins/DOMMimeType.idl
954     plugins/DOMMimeTypeArray.idl
955     plugins/DOMPlugin.idl
956     plugins/DOMPluginArray.idl
957
958     storage/Storage.idl
959     storage/StorageEvent.idl
960
961     workers/AbstractWorker.idl
962     workers/DedicatedWorkerGlobalScope.idl
963     workers/Worker.idl
964     workers/WorkerGlobalScope.idl
965     workers/WorkerLocation.idl
966     workers/WorkerType.idl
967
968     workers/service/ExtendableEvent.idl
969     workers/service/ExtendableEventInit.idl
970     workers/service/ExtendableMessageEvent.idl
971     workers/service/FetchEvent.idl
972     workers/service/ServiceWorker.idl
973     workers/service/ServiceWorkerClient.idl
974     workers/service/ServiceWorkerClientType.idl
975     workers/service/ServiceWorkerClients.idl
976     workers/service/ServiceWorkerContainer.idl
977     workers/service/ServiceWorkerGlobalScope.idl
978     workers/service/ServiceWorkerRegistration.idl
979     workers/service/ServiceWorkerUpdateViaCache.idl
980     workers/service/ServiceWorkerWindowClient.idl
981
982     worklets/PaintWorkletGlobalScope.idl
983     worklets/Worklet.idl
984     worklets/WorkletGlobalScope.idl
985
986     xml/DOMParser.idl
987     xml/XMLHttpRequest.idl
988     xml/XMLHttpRequestEventTarget.idl
989     xml/XMLHttpRequestProgressEvent.idl
990     xml/XMLHttpRequestUpload.idl
991     xml/XMLSerializer.idl
992     xml/XPathEvaluator.idl
993     xml/XPathExpression.idl
994     xml/XPathNSResolver.idl
995     xml/XPathResult.idl
996     xml/XSLTProcessor.idl
997 )
998
999 set(WebCore_SVG_IDL_FILES
1000     svg/SVGAElement.idl
1001     svg/SVGAltGlyphDefElement.idl
1002     svg/SVGAltGlyphElement.idl
1003     svg/SVGAltGlyphItemElement.idl
1004     svg/SVGAngle.idl
1005     svg/SVGAnimateColorElement.idl
1006     svg/SVGAnimateElement.idl
1007     svg/SVGAnimateMotionElement.idl
1008     svg/SVGAnimateTransformElement.idl
1009     svg/SVGAnimatedAngle.idl
1010     svg/SVGAnimatedBoolean.idl
1011     svg/SVGAnimatedEnumeration.idl
1012     svg/SVGAnimatedInteger.idl
1013     svg/SVGAnimatedLength.idl
1014     svg/SVGAnimatedLengthList.idl
1015     svg/SVGAnimatedNumber.idl
1016     svg/SVGAnimatedNumberList.idl
1017     svg/SVGAnimatedPreserveAspectRatio.idl
1018     svg/SVGAnimatedRect.idl
1019     svg/SVGAnimatedString.idl
1020     svg/SVGAnimatedTransformList.idl
1021     svg/SVGAnimationElement.idl
1022     svg/SVGCircleElement.idl
1023     svg/SVGClipPathElement.idl
1024     svg/SVGComponentTransferFunctionElement.idl
1025     svg/SVGCursorElement.idl
1026     svg/SVGDefsElement.idl
1027     svg/SVGDescElement.idl
1028     svg/SVGDocument.idl
1029     svg/SVGElement.idl
1030     svg/SVGEllipseElement.idl
1031     svg/SVGExternalResourcesRequired.idl
1032     svg/SVGFEBlendElement.idl
1033     svg/SVGFEColorMatrixElement.idl
1034     svg/SVGFEComponentTransferElement.idl
1035     svg/SVGFECompositeElement.idl
1036     svg/SVGFEConvolveMatrixElement.idl
1037     svg/SVGFEDiffuseLightingElement.idl
1038     svg/SVGFEDisplacementMapElement.idl
1039     svg/SVGFEDistantLightElement.idl
1040     svg/SVGFEDropShadowElement.idl
1041     svg/SVGFEFloodElement.idl
1042     svg/SVGFEFuncAElement.idl
1043     svg/SVGFEFuncBElement.idl
1044     svg/SVGFEFuncGElement.idl
1045     svg/SVGFEFuncRElement.idl
1046     svg/SVGFEGaussianBlurElement.idl
1047     svg/SVGFEImageElement.idl
1048     svg/SVGFEMergeElement.idl
1049     svg/SVGFEMergeNodeElement.idl
1050     svg/SVGFEMorphologyElement.idl
1051     svg/SVGFEOffsetElement.idl
1052     svg/SVGFEPointLightElement.idl
1053     svg/SVGFESpecularLightingElement.idl
1054     svg/SVGFESpotLightElement.idl
1055     svg/SVGFETileElement.idl
1056     svg/SVGFETurbulenceElement.idl
1057     svg/SVGFilterElement.idl
1058     svg/SVGFilterPrimitiveStandardAttributes.idl
1059     svg/SVGFitToViewBox.idl
1060     svg/SVGFontElement.idl
1061     svg/SVGFontFaceElement.idl
1062     svg/SVGFontFaceFormatElement.idl
1063     svg/SVGFontFaceNameElement.idl
1064     svg/SVGFontFaceSrcElement.idl
1065     svg/SVGFontFaceUriElement.idl
1066     svg/SVGForeignObjectElement.idl
1067     svg/SVGGElement.idl
1068     svg/SVGGeometryElement.idl
1069     svg/SVGGlyphElement.idl
1070     svg/SVGGlyphRefElement.idl
1071     svg/SVGGradientElement.idl
1072     svg/SVGGraphicsElement.idl
1073     svg/SVGHKernElement.idl
1074     svg/SVGImageElement.idl
1075     svg/SVGLength.idl
1076     svg/SVGLengthList.idl
1077     svg/SVGLineElement.idl
1078     svg/SVGLinearGradientElement.idl
1079     svg/SVGMPathElement.idl
1080     svg/SVGMarkerElement.idl
1081     svg/SVGMaskElement.idl
1082     svg/SVGMatrix.idl
1083     svg/SVGMetadataElement.idl
1084     svg/SVGMissingGlyphElement.idl
1085     svg/SVGNumber.idl
1086     svg/SVGNumberList.idl
1087     svg/SVGPathElement.idl
1088     svg/SVGPathSeg.idl
1089     svg/SVGPathSegArcAbs.idl
1090     svg/SVGPathSegArcRel.idl
1091     svg/SVGPathSegClosePath.idl
1092     svg/SVGPathSegCurvetoCubicAbs.idl
1093     svg/SVGPathSegCurvetoCubicRel.idl
1094     svg/SVGPathSegCurvetoCubicSmoothAbs.idl
1095     svg/SVGPathSegCurvetoCubicSmoothRel.idl
1096     svg/SVGPathSegCurvetoQuadraticAbs.idl
1097     svg/SVGPathSegCurvetoQuadraticRel.idl
1098     svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl
1099     svg/SVGPathSegCurvetoQuadraticSmoothRel.idl
1100     svg/SVGPathSegLinetoAbs.idl
1101     svg/SVGPathSegLinetoHorizontalAbs.idl
1102     svg/SVGPathSegLinetoHorizontalRel.idl
1103     svg/SVGPathSegLinetoRel.idl
1104     svg/SVGPathSegLinetoVerticalAbs.idl
1105     svg/SVGPathSegLinetoVerticalRel.idl
1106     svg/SVGPathSegList.idl
1107     svg/SVGPathSegMovetoAbs.idl
1108     svg/SVGPathSegMovetoRel.idl
1109     svg/SVGPatternElement.idl
1110     svg/SVGPoint.idl
1111     svg/SVGPointList.idl
1112     svg/SVGPolygonElement.idl
1113     svg/SVGPolylineElement.idl
1114     svg/SVGPreserveAspectRatio.idl
1115     svg/SVGRadialGradientElement.idl
1116     svg/SVGRect.idl
1117     svg/SVGRectElement.idl
1118     svg/SVGRenderingIntent.idl
1119     svg/SVGSVGElement.idl
1120     svg/SVGScriptElement.idl
1121     svg/SVGSetElement.idl
1122     svg/SVGStopElement.idl
1123     svg/SVGStringList.idl
1124     svg/SVGStyleElement.idl
1125     svg/SVGSwitchElement.idl
1126     svg/SVGSymbolElement.idl
1127     svg/SVGTRefElement.idl
1128     svg/SVGTSpanElement.idl
1129     svg/SVGTests.idl
1130     svg/SVGTextContentElement.idl
1131     svg/SVGTextElement.idl
1132     svg/SVGTextPathElement.idl
1133     svg/SVGTextPositioningElement.idl
1134     svg/SVGTitleElement.idl
1135     svg/SVGTransform.idl
1136     svg/SVGTransformList.idl
1137     svg/SVGURIReference.idl
1138     svg/SVGUnitTypes.idl
1139     svg/SVGUseElement.idl
1140     svg/SVGVKernElement.idl
1141     svg/SVGViewElement.idl
1142     svg/SVGViewSpec.idl
1143     svg/SVGZoomAndPan.idl
1144     svg/SVGZoomEvent.idl
1145 )
1146
1147 if (ENABLE_GAMEPAD)
1148     list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
1149         "${WEBCORE_DIR}/Modules/gamepad"
1150     )
1151
1152     list(APPEND WebCore_IDL_INCLUDES
1153         Modules/gamepad
1154     )
1155
1156     list(APPEND WebCore_NON_SVG_IDL_FILES
1157         Modules/gamepad/Gamepad.idl
1158         Modules/gamepad/GamepadButton.idl
1159         Modules/gamepad/GamepadEvent.idl
1160         Modules/gamepad/NavigatorGamepad.idl
1161
1162         Modules/webvr/GamepadWebVR.idl
1163     )
1164
1165     list(APPEND WebCore_SOURCES
1166         Modules/gamepad/Gamepad.cpp
1167         Modules/gamepad/GamepadButton.cpp
1168         Modules/gamepad/GamepadEvent.cpp
1169         Modules/gamepad/GamepadManager.cpp
1170         Modules/gamepad/NavigatorGamepad.cpp
1171
1172         platform/gamepad/EmptyGamepadProvider.cpp
1173         platform/gamepad/GamepadProvider.cpp
1174     )
1175 endif ()
1176
1177 set(WebCore_IDL_FILES
1178     ${WebCore_NON_SVG_IDL_FILES}
1179     ${WebCore_SVG_IDL_FILES}
1180 )
1181
1182 set(WebCore_CSS_PROPERTY_NAMES
1183     ${WEBCORE_DIR}/css/CSSProperties.json
1184 )
1185
1186 set(WebCore_CSS_VALUE_KEYWORDS
1187     ${WEBCORE_DIR}/css/CSSValueKeywords.in
1188 )
1189
1190 set(WebCore_USER_AGENT_STYLE_SHEETS
1191     ${WEBCORE_DIR}/css/fullscreen.css
1192     ${WEBCORE_DIR}/css/html.css
1193     ${WEBCORE_DIR}/css/mathml.css
1194     ${WEBCORE_DIR}/css/mediaControls.css
1195     ${WEBCORE_DIR}/css/plugIns.css
1196     ${WEBCORE_DIR}/css/quirks.css
1197     ${WEBCORE_DIR}/css/svg.css
1198     ${WEBCORE_DIR}/html/shadow/meterElementShadow.css
1199 )
1200
1201 set(WebCore_PLUG_INS_RESOURCES
1202     ${WEBCORE_DIR}/Resources/plugIns.js
1203 )
1204
1205 set(WebCore_LIBRARIES
1206     ${LIBXML2_LIBRARIES}
1207     ${LIBXSLT_LIBRARIES}
1208     ${SQLITE_LIBRARIES}
1209     ${ZLIB_LIBRARIES}
1210     PAL${DEBUG_SUFFIX}
1211 )
1212
1213 set(WebCoreTestSupport_LIBRARIES
1214     WebKit::JavaScriptCore
1215 )
1216
1217 if (ENABLE_LEGACY_ENCRYPTED_MEDIA)
1218     list(APPEND WebCore_SOURCES
1219         Modules/encryptedmedia/legacy/LegacyCDM.cpp
1220         Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp
1221         Modules/encryptedmedia/legacy/LegacyCDMPrivateMediaPlayer.cpp
1222         Modules/encryptedmedia/legacy/LegacyCDMSessionClearKey.cpp
1223
1224         Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp
1225         Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp
1226         Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp
1227         Modules/encryptedmedia/legacy/WebKitMediaKeys.cpp
1228     )
1229     list(APPEND WebCoreTestSupport_SOURCES
1230         testing/LegacyMockCDM.cpp
1231     )
1232     list(APPEND WebCore_IDL_FILES
1233         Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.idl
1234         Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.idl
1235         Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl
1236         Modules/encryptedmedia/legacy/WebKitMediaKeys.idl
1237
1238         html/WebKitMediaKeyError.idl
1239     )
1240 endif ()
1241
1242 if (ENABLE_ENCRYPTED_MEDIA)
1243     list(APPEND WebCore_SOURCES
1244         Modules/encryptedmedia/CDM.cpp
1245         Modules/encryptedmedia/InitDataRegistry.cpp
1246         Modules/encryptedmedia/MediaKeyMessageEvent.cpp
1247         Modules/encryptedmedia/MediaKeySession.cpp
1248         Modules/encryptedmedia/MediaKeyStatusMap.cpp
1249         Modules/encryptedmedia/MediaKeySystemAccess.cpp
1250         Modules/encryptedmedia/MediaKeys.cpp
1251         Modules/encryptedmedia/NavigatorEME.cpp
1252
1253         html/MediaEncryptedEvent.cpp
1254     )
1255     list(APPEND WebCore_IDL_FILES
1256         Modules/encryptedmedia/MediaKeyEncryptionScheme.idl
1257         Modules/encryptedmedia/MediaKeyMessageEvent.idl
1258         Modules/encryptedmedia/MediaKeySession.idl
1259         Modules/encryptedmedia/MediaKeySessionType.idl
1260         Modules/encryptedmedia/MediaKeyStatusMap.idl
1261         Modules/encryptedmedia/MediaKeySystemAccess.idl
1262         Modules/encryptedmedia/MediaKeySystemConfiguration.idl
1263         Modules/encryptedmedia/MediaKeySystemMediaCapability.idl
1264         Modules/encryptedmedia/MediaKeys.idl
1265         Modules/encryptedmedia/MediaKeysRequirement.idl
1266         Modules/encryptedmedia/NavigatorEME.idl
1267
1268         html/MediaEncryptedEvent.idl
1269     )
1270 endif ()
1271
1272 list(APPEND WebCore_CSS_VALUE_KEYWORDS
1273     ${WEBCORE_DIR}/css/SVGCSSValueKeywords.in
1274 )
1275
1276 if (ENABLE_WEBGL)
1277     list(APPEND WebCore_SOURCES
1278         html/canvas/ANGLEInstancedArrays.cpp
1279         html/canvas/EXTBlendMinMax.cpp
1280         html/canvas/EXTFragDepth.cpp
1281         html/canvas/EXTShaderTextureLOD.cpp
1282         html/canvas/EXTTextureFilterAnisotropic.cpp
1283         html/canvas/EXTsRGB.cpp
1284         html/canvas/OESElementIndexUint.cpp
1285         html/canvas/OESStandardDerivatives.cpp
1286         html/canvas/OESTextureFloat.cpp
1287         html/canvas/OESTextureFloatLinear.cpp
1288         html/canvas/OESTextureHalfFloat.cpp
1289         html/canvas/OESTextureHalfFloatLinear.cpp
1290         html/canvas/OESVertexArrayObject.cpp
1291         html/canvas/WebGL2RenderingContext.cpp
1292         html/canvas/WebGLBuffer.cpp
1293         html/canvas/WebGLCompressedTextureASTC.cpp
1294         html/canvas/WebGLCompressedTextureATC.cpp
1295         html/canvas/WebGLCompressedTexturePVRTC.cpp
1296         html/canvas/WebGLCompressedTextureS3TC.cpp
1297         html/canvas/WebGLContextEvent.cpp
1298         html/canvas/WebGLContextGroup.cpp
1299         html/canvas/WebGLContextObject.cpp
1300         html/canvas/WebGLDebugRendererInfo.cpp
1301         html/canvas/WebGLDebugShaders.cpp
1302         html/canvas/WebGLDepthTexture.cpp
1303         html/canvas/WebGLDrawBuffers.cpp
1304         html/canvas/WebGLExtension.cpp
1305         html/canvas/WebGLFramebuffer.cpp
1306         html/canvas/WebGLLoseContext.cpp
1307         html/canvas/WebGLObject.cpp
1308         html/canvas/WebGLProgram.cpp
1309         html/canvas/WebGLQuery.cpp
1310         html/canvas/WebGLRenderbuffer.cpp
1311         html/canvas/WebGLRenderingContext.cpp
1312         html/canvas/WebGLRenderingContextBase.cpp
1313         html/canvas/WebGLSampler.cpp
1314         html/canvas/WebGLShader.cpp
1315         html/canvas/WebGLShaderPrecisionFormat.cpp
1316         html/canvas/WebGLSharedObject.cpp
1317         html/canvas/WebGLSync.cpp
1318         html/canvas/WebGLTexture.cpp
1319         html/canvas/WebGLTransformFeedback.cpp
1320         html/canvas/WebGLUniformLocation.cpp
1321         html/canvas/WebGLVertexArrayObject.cpp
1322         html/canvas/WebGLVertexArrayObjectBase.cpp
1323         html/canvas/WebGLVertexArrayObjectOES.cpp
1324     )
1325     list(APPEND WebCore_IDL_FILES
1326         html/canvas/ANGLEInstancedArrays.idl
1327         html/canvas/EXTBlendMinMax.idl
1328         html/canvas/EXTFragDepth.idl
1329         html/canvas/EXTShaderTextureLOD.idl
1330         html/canvas/EXTTextureFilterAnisotropic.idl
1331         html/canvas/EXTsRGB.idl
1332         html/canvas/OESElementIndexUint.idl
1333         html/canvas/OESStandardDerivatives.idl
1334         html/canvas/OESTextureFloat.idl
1335         html/canvas/OESTextureFloatLinear.idl
1336         html/canvas/OESTextureHalfFloat.idl
1337         html/canvas/OESTextureHalfFloatLinear.idl
1338         html/canvas/OESVertexArrayObject.idl
1339         html/canvas/WebGL2RenderingContext.idl
1340         html/canvas/WebGLActiveInfo.idl
1341         html/canvas/WebGLBuffer.idl
1342         html/canvas/WebGLCompressedTextureASTC.idl
1343         html/canvas/WebGLCompressedTextureATC.idl
1344         html/canvas/WebGLCompressedTexturePVRTC.idl
1345         html/canvas/WebGLCompressedTextureS3TC.idl
1346         html/canvas/WebGLContextAttributes.idl
1347         html/canvas/WebGLContextEvent.idl
1348         html/canvas/WebGLDebugRendererInfo.idl
1349         html/canvas/WebGLDebugShaders.idl
1350         html/canvas/WebGLDepthTexture.idl
1351         html/canvas/WebGLDrawBuffers.idl
1352         html/canvas/WebGLFramebuffer.idl
1353         html/canvas/WebGLLoseContext.idl
1354         html/canvas/WebGLProgram.idl
1355         html/canvas/WebGLQuery.idl
1356         html/canvas/WebGLRenderbuffer.idl
1357         html/canvas/WebGLRenderingContext.idl
1358         html/canvas/WebGLRenderingContextBase.idl
1359         html/canvas/WebGLSampler.idl
1360         html/canvas/WebGLShader.idl
1361         html/canvas/WebGLShaderPrecisionFormat.idl
1362         html/canvas/WebGLSync.idl
1363         html/canvas/WebGLTexture.idl
1364         html/canvas/WebGLTransformFeedback.idl
1365         html/canvas/WebGLUniformLocation.idl
1366         html/canvas/WebGLVertexArrayObject.idl
1367         html/canvas/WebGLVertexArrayObjectOES.idl
1368     )
1369 endif ()
1370
1371 if (ENABLE_VIDEO_TRACK)
1372     list(APPEND WebCore_IDL_FILES
1373         html/track/AudioTrack.idl
1374         html/track/AudioTrackList.idl
1375         html/track/DataCue.idl
1376         html/track/TextTrack.idl
1377         html/track/TextTrackCue.idl
1378         html/track/TextTrackCueGeneric.idl
1379         html/track/TextTrackCueList.idl
1380         html/track/TextTrackList.idl
1381         html/track/TrackEvent.idl
1382         html/track/VTTCue.idl
1383         html/track/VTTRegion.idl
1384         html/track/VTTRegionList.idl
1385         html/track/VideoTrack.idl
1386         html/track/VideoTrackList.idl
1387     )
1388
1389     if (ENABLE_MEDIA_SOURCE)
1390         list(APPEND WebCore_IDL_FILES
1391             Modules/mediasource/AudioTrackMediaSource.idl
1392             Modules/mediasource/TextTrackMediaSource.idl
1393             Modules/mediasource/VideoTrackMediaSource.idl
1394         )
1395     endif ()
1396
1397     list(APPEND WebCore_SOURCES
1398         html/track/AudioTrack.cpp
1399         html/track/AudioTrackList.cpp
1400         html/track/BufferedLineReader.cpp
1401         html/track/DataCue.cpp
1402         html/track/InbandDataTextTrack.cpp
1403         html/track/InbandGenericTextTrack.cpp
1404         html/track/InbandTextTrack.cpp
1405         html/track/InbandWebVTTTextTrack.cpp
1406         html/track/LoadableTextTrack.cpp
1407         html/track/TextTrack.cpp
1408         html/track/TextTrackCue.cpp
1409         html/track/TextTrackCueGeneric.cpp
1410         html/track/TextTrackCueList.cpp
1411         html/track/TextTrackList.cpp
1412         html/track/TrackBase.cpp
1413         html/track/TrackEvent.cpp
1414         html/track/TrackListBase.cpp
1415         html/track/VTTCue.cpp
1416         html/track/VTTRegion.cpp
1417         html/track/VTTRegionList.cpp
1418         html/track/VTTScanner.cpp
1419         html/track/VideoTrack.cpp
1420         html/track/VideoTrackList.cpp
1421         html/track/WebVTTElement.cpp
1422         html/track/WebVTTParser.cpp
1423         html/track/WebVTTTokenizer.cpp
1424
1425         loader/cache/CachedTextTrack.cpp
1426
1427         platform/graphics/TextTrackRepresentation.cpp
1428         platform/graphics/TrackPrivateBase.cpp
1429     )
1430 endif ()
1431
1432 if (ENABLE_QUOTA)
1433     list(APPEND WebCore_SOURCES
1434         Modules/quota/DOMWindowQuota.cpp
1435         Modules/quota/NavigatorStorageQuota.cpp
1436         Modules/quota/StorageErrorCallback.cpp
1437         Modules/quota/StorageInfo.cpp
1438         Modules/quota/StorageQuota.cpp
1439         Modules/quota/WorkerNavigatorStorageQuota.cpp
1440     )
1441
1442     list(APPEND WebCore_IDL_FILES
1443         Modules/quota/DOMWindowQuota.idl
1444         Modules/quota/NavigatorStorageQuota.idl
1445         Modules/quota/StorageErrorCallback.idl
1446         Modules/quota/StorageInfo.idl
1447         Modules/quota/StorageQuota.idl
1448         Modules/quota/StorageQuotaCallback.idl
1449         Modules/quota/StorageUsageCallback.idl
1450         Modules/quota/WorkerNavigatorStorageQuota.idl
1451     )
1452 endif ()
1453
1454 if (ENABLE_GRAPHICS_CONTEXT_3D)
1455     list(APPEND WebCore_SOURCES
1456         platform/graphics/ANGLEWebKitBridge.cpp
1457         platform/graphics/FormatConverter.cpp
1458         platform/graphics/GraphicsContext3D.cpp
1459     )
1460
1461     list(APPEND WebCore_LIBRARIES ANGLEFramework)
1462     list(APPEND WebCoreTestSupport_LIBRARIES ANGLEFramework)
1463
1464     # For platforms that want to use system-provided OpenGL (ES) / EGL headers,
1465     # these include directories, libraries or definitions need to be
1466     # added before the ANGLE directories.
1467     if (USE_LIBEPOXY)
1468         list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1469             ${LIBEPOXY_INCLUDE_DIRS}
1470         )
1471         list(APPEND WebCore_LIBRARIES
1472             ${LIBEPOXY_LIBRARIES}
1473         )
1474         add_definitions(${LIBEPOXY_DEFINITIONS})
1475     else ()
1476         if (USE_OPENGL)
1477             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1478                 ${OPENGL_INCLUDE_DIRS}
1479             )
1480             list(APPEND WebCore_LIBRARIES
1481                 ${OPENGL_LIBRARIES}
1482             )
1483             add_definitions(${OPENGL_DEFINITIONS})
1484         elseif (USE_OPENGL_ES)
1485             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1486                 ${OPENGLES2_INCLUDE_DIRS}
1487             )
1488             list(APPEND WebCore_LIBRARIES
1489                 ${OPENGLES2_LIBRARIES}
1490             )
1491             add_definitions(${OPENGLES2_DEFINITIONS})
1492         endif ()
1493
1494         if (USE_EGL)
1495             list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
1496                 ${EGL_INCLUDE_DIRS}
1497             )
1498             list(APPEND WebCore_LIBRARIES
1499                 ${EGL_LIBRARIES}
1500             )
1501             add_definitions(${EGL_DEFINITIONS})
1502         endif ()
1503     endif ()
1504
1505     list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
1506         "${WEBCORE_DIR}/platform/graphics/gpu"
1507     )
1508 endif ()
1509
1510 if (ENABLE_USER_MESSAGE_HANDLERS)
1511     list(APPEND WebCore_IDL_FILES
1512         page/UserMessageHandler.idl
1513         page/UserMessageHandlersNamespace.idl
1514         page/WebKitNamespace.idl
1515     )
1516     list(APPEND WebCore_SOURCES
1517         page/UserMessageHandler.cpp
1518         page/UserMessageHandlerDescriptor.cpp
1519         page/UserMessageHandlersNamespace.cpp
1520         page/WebKitNamespace.cpp
1521     )
1522 endif ()
1523
1524 if (USE_OPENVR)
1525   list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/openvr/headers")
1526   list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${WEBCORE_DIR}/platform/vr/openvr")
1527   list(APPEND WebCore_LIBRARIES openvr_api)
1528 endif ()
1529
1530 if (USE_WOFF2)
1531   list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${WOFF2DEC_INCLUDE_DIRS}")
1532   list(APPEND WebCore_LIBRARIES "${WOFF2DEC_LIBRARIES}")
1533 endif ()
1534
1535 if (USE_XDGMIME)
1536     list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/xdgmime/src")
1537     list(APPEND WebCore_LIBRARIES xdgmime)
1538 endif ()
1539
1540 if (USE_LIBWEBRTC)
1541     list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES "${THIRDPARTY_DIR}/libwebrtc/Source/"
1542         "${THIRDPARTY_DIR}/libwebrtc/Source/webrtc"
1543         "${THIRDPARTY_DIR}/libwebrtc/Source/third_party/abseil-cpp")
1544     list(APPEND WebCore_LIBRARIES webrtc)
1545     list(APPEND WebCore_SOURCES
1546         Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp
1547         Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
1548         Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp
1549         Modules/mediastream/libwebrtc/LibWebRTCRtpReceiverBackend.cpp
1550         Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp
1551         Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp
1552         Modules/mediastream/libwebrtc/LibWebRTCStatsCollector.cpp
1553         Modules/mediastream/libwebrtc/LibWebRTCUtils.cpp
1554     )
1555 endif ()
1556
1557 if (HAVE_OS_DARK_MODE_SUPPORT)
1558     set(FEATURE_DEFINES_WITH_SPACE_SEPARATOR "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR} HAVE_OS_DARK_MODE_SUPPORT")
1559 endif ()
1560
1561 set(WebCoreTestSupport_PRIVATE_INCLUDE_DIRECTORIES
1562     "${WEBCORE_DIR}/platform/mock"
1563     "${WEBCORE_DIR}/testing"
1564     "${WEBCORE_DIR}/testing/js"
1565     "${WebCore_DERIVED_SOURCES_DIR}"
1566 )
1567
1568 set(WebCoreTestSupport_IDL_INCLUDES
1569     testing
1570 )
1571
1572 set(WebCoreTestSupport_IDL_FILES
1573     testing/GCObservation.idl
1574     testing/InternalSettings.idl
1575     testing/Internals.idl
1576     testing/MallocStatistics.idl
1577     testing/MemoryInfo.idl
1578     testing/MockCDMFactory.idl
1579     testing/MockContentFilterSettings.idl
1580     testing/MockPageOverlay.idl
1581     testing/ServiceWorkerInternals.idl
1582     testing/TypeConversions.idl
1583 )
1584
1585 list(APPEND WebCoreTestSupport_SOURCES
1586     platform/mock/PlatformSpeechSynthesizerMock.cpp
1587
1588     platform/mock/mediasource/MockBox.cpp
1589     platform/mock/mediasource/MockMediaPlayerMediaSource.cpp
1590     platform/mock/mediasource/MockMediaSourcePrivate.cpp
1591     platform/mock/mediasource/MockSourceBufferPrivate.cpp
1592
1593     testing/GCObservation.cpp
1594     testing/InternalSettings.cpp
1595     testing/Internals.cpp
1596     testing/MockCDMFactory.cpp
1597     testing/MockGamepad.cpp
1598     testing/MockGamepadProvider.cpp
1599     testing/MockLibWebRTCPeerConnection.cpp
1600     testing/MockPageOverlay.cpp
1601     testing/MockPageOverlayClient.cpp
1602     testing/ServiceWorkerInternals.cpp
1603     testing/js/WebCoreTestSupport.cpp
1604 )
1605
1606 # Modules that the bindings generator scripts may use
1607 set(SCRIPTS_RESOLVE_SUPPLEMENTAL
1608     ${WEBCORE_DIR}/bindings/scripts/IDLParser.pm
1609 )
1610 set(SCRIPTS_BINDINGS
1611     ${WEBCORE_DIR}/bindings/scripts/CodeGenerator.pm
1612     ${WEBCORE_DIR}/bindings/scripts/CodeGeneratorJS.pm
1613     ${WEBCORE_DIR}/bindings/scripts/IDLParser.pm
1614     ${WEBCORE_DIR}/bindings/scripts/InFilesParser.pm
1615     ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1616 )
1617
1618 set(MAKE_NAMES_DEPENDENCIES
1619     ${WEBCORE_DIR}/bindings/scripts/Hasher.pm
1620     ${WEBCORE_DIR}/bindings/scripts/StaticString.pm
1621 )
1622 set(SUPPLEMENTAL_DEPENDENCY_FILE ${WebCore_DERIVED_SOURCES_DIR}/supplemental_dependency.tmp)
1623 set(WINDOW_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/DOMWindowConstructors.idl)
1624 set(WORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/WorkerGlobalScopeConstructors.idl)
1625 set(DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/DedicatedWorkerGlobalScopeConstructors.idl)
1626 set(SERVICEWORKERGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/ServiceWorkerGlobalScopeConstructors.idl)
1627 set(WORKLETGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/WorkletGlobalScopeConstructors.idl)
1628 set(PAINTWORKLETGLOBALSCOPE_CONSTRUCTORS_FILE ${WebCore_DERIVED_SOURCES_DIR}/PaintWorkletGlobalScopeConstructors.idl)
1629
1630 WEBKIT_FRAMEWORK_DECLARE(WebCore)
1631 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
1632
1633 WEBKIT_MAKE_FORWARDING_HEADERS(WebCore
1634     TARGET_NAME WebCorePrivateFrameworkHeaders
1635     DESTINATION ${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}/WebCore
1636     FILES ${WebCore_PRIVATE_FRAMEWORK_HEADERS}
1637     FLATTENED
1638 )
1639
1640 # Generate CommandLineAPIModuleSource.h
1641 add_custom_command(
1642     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.h ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js
1643     MAIN_DEPENDENCY inspector/CommandLineAPIModuleSource.js
1644     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
1645     COMMAND ${CMAKE_COMMAND} -E echo "//# sourceURL=__InjectedScript_CommandLineAPIModuleSource.js" > ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js
1646     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBCORE_DIR}/inspector/CommandLineAPIModuleSource.js >> ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js
1647     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl CommandLineAPIModuleSource_js ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.min.js ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.h
1648     VERBATIM)
1649 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/CommandLineAPIModuleSource.h)
1650
1651
1652 MAKE_HASH_TOOLS(${WEBCORE_DIR}/platform/ColorData)
1653 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/ColorData.cpp)
1654
1655
1656 # Generate DOMJITAbstractHeapRepository.h
1657 add_custom_command(
1658     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/DOMJITAbstractHeapRepository.h
1659     MAIN_DEPENDENCY domjit/DOMJITAbstractHeapRepository.yaml
1660     DEPENDS ${WEBCORE_DIR}/domjit/generate-abstract-heap.rb
1661     COMMAND ${RUBY_EXECUTABLE} ${WEBCORE_DIR}/domjit/generate-abstract-heap.rb ${WEBCORE_DIR}/domjit/DOMJITAbstractHeapRepository.yaml ${WebCore_DERIVED_SOURCES_DIR}/DOMJITAbstractHeapRepository.h
1662     VERBATIM)
1663 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/DOMJITAbstractHeapRepository.h)
1664
1665 # Generate XMLViewerCSS.h
1666 add_custom_command(
1667     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerCSS.h ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.css
1668     MAIN_DEPENDENCY xml/XMLViewer.css
1669     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/cssmin.py
1670     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/cssmin.py < ${WEBCORE_DIR}/xml/XMLViewer.css > ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.css
1671     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl XMLViewer_css ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.css ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerCSS.h
1672     VERBATIM)
1673 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerCSS.h)
1674
1675 # Generate XMLViewerJS.h
1676 add_custom_command(
1677     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerJS.h ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.js
1678     MAIN_DEPENDENCY xml/XMLViewer.js
1679     DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py
1680     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/jsmin.py < ${WEBCORE_DIR}/xml/XMLViewer.js > ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.js
1681     COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl XMLViewer_js ${WebCore_DERIVED_SOURCES_DIR}/XMLViewer.min.js ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerJS.h
1682     VERBATIM)
1683 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLViewerJS.h)
1684
1685 # Generate HTML entity table
1686 add_custom_command(
1687     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/HTMLEntityTable.cpp
1688     MAIN_DEPENDENCY ${WEBCORE_DIR}/html/parser/HTMLEntityNames.in
1689     DEPENDS ${WEBCORE_DIR}/html/parser/create-html-entity-table
1690     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/html/parser/create-html-entity-table -o ${WebCore_DERIVED_SOURCES_DIR}/HTMLEntityTable.cpp ${WEBCORE_DIR}/html/parser/HTMLEntityNames.in
1691     VERBATIM)
1692 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/HTMLEntityTable.cpp)
1693
1694 # Generate HTTP header names
1695 add_custom_command(
1696     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.cpp ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.gperf ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.h
1697     MAIN_DEPENDENCY ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in
1698     DEPENDS ${WEBCORE_DIR}/platform/network/create-http-header-name-table
1699     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1700     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/platform/network/create-http-header-name-table ${WEBCORE_DIR}/platform/network/HTTPHeaderNames.in "${GPERF_EXECUTABLE}"
1701     VERBATIM)
1702 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/HTTPHeaderNames.cpp)
1703
1704 # Generate CSS property names
1705 add_custom_command(
1706     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
1707     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makeprop.pl
1708     DEPENDS ${WebCore_CSS_PROPERTY_NAMES}
1709     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1710     COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_PROPERTY_NAMES} > ${WebCore_DERIVED_SOURCES_DIR}/CSSProperties.json
1711     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/makeprop.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --gperf-executable "${GPERF_EXECUTABLE}"
1712     VERBATIM)
1713 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/CSSPropertyNames.cpp)
1714 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/StyleBuilder.cpp)
1715 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/StylePropertyShorthandFunctions.cpp)
1716 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp CSSValueKeywords.h)
1717
1718 # Generate CSS value keywords
1719 add_custom_command(
1720     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
1721     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/makevalues.pl
1722     DEPENDS ${WebCore_CSS_VALUE_KEYWORDS}
1723     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1724     COMMAND ${PERL_EXECUTABLE} -ne "print" ${WebCore_CSS_VALUE_KEYWORDS} > ${WebCore_DERIVED_SOURCES_DIR}/CSSValueKeywords.in
1725     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}"
1726     VERBATIM)
1727 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/CSSValueKeywords.cpp)
1728 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSParser.cpp CSSValueKeywords.h)
1729 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/CSSPrimitiveValueMappings.h CSSValueKeywords.h)
1730
1731 # Generate CSS Selector pseudo type name to value maps.
1732 add_custom_command(
1733     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoClassAndCompatibilityElementMap.gperf ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoClassAndCompatibilityElementMap.cpp
1734     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in
1735     DEPENDS ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py
1736     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1737     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoClassAndCompatibilityElementMap.py ${WEBCORE_DIR}/css/SelectorPseudoClassAndCompatibilityElementMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
1738     VERBATIM)
1739 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoClassAndCompatibilityElementMap.cpp)
1740 add_custom_command(
1741     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoElementTypeMap.gperf ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoElementTypeMap.cpp
1742     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in
1743     DEPENDS ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py
1744     WORKING_DIRECTORY ${WebCore_DERIVED_SOURCES_DIR}
1745     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/css/makeSelectorPseudoElementsMap.py ${WEBCORE_DIR}/css/SelectorPseudoElementTypeMap.in "${GPERF_EXECUTABLE}" "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
1746     VERBATIM)
1747 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SelectorPseudoElementTypeMap.cpp)
1748
1749 # Generate user agent styles
1750 add_custom_command(
1751     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp ${WebCore_DERIVED_SOURCES_DIR}/UserAgentStyleSheets.h
1752     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/make-css-file-arrays.pl
1753     DEPENDS ${WebCore_USER_AGENT_STYLE_SHEETS} ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1754     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}
1755     VERBATIM)
1756 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/UserAgentStyleSheetsData.cpp)
1757 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/StyleResolver.cpp UserAgentStyleSheetsData.cpp UserAgentStyleSheets.h)
1758
1759 if (WebCore_USER_AGENT_SCRIPTS)
1760     # Necessary variables:
1761     # WebCore_USER_AGENT_SCRIPTS containing the JavaScript sources list
1762     # WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES containing the source file that will load the scripts to add the proper
1763     #   dependency and having them built at the right moment
1764
1765     MAKE_JS_FILE_ARRAYS(
1766         ${WebCore_DERIVED_SOURCES_DIR}/UserAgentScriptsData.cpp
1767         ${WebCore_DERIVED_SOURCES_DIR}/UserAgentScripts.h
1768         WebCore
1769         WebCore_USER_AGENT_SCRIPTS
1770         WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES
1771     )
1772     list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/UserAgentScriptsData.cpp)
1773 endif ()
1774
1775 # Generate plug-in resources
1776 add_custom_command(
1777     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResourcesData.cpp ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResources.h
1778     MAIN_DEPENDENCY ${WEBCORE_DIR}/css/make-css-file-arrays.pl
1779     DEPENDS ${WebCore_PLUG_INS_RESOURCES} ${WEBCORE_DIR}/bindings/scripts/preprocessor.pm
1780     COMMAND ${PERL_EXECUTABLE} ${WEBCORE_DIR}/css/make-css-file-arrays.pl --defines "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResources.h ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResourcesData.cpp ${WebCore_PLUG_INS_RESOURCES}
1781     VERBATIM)
1782 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/PlugInsResourcesData.cpp)
1783 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/css/StyleResolver.cpp PlugInsResourcesData.cpp PlugInsResources.h)
1784
1785 set(FEATURE_DEFINES_JAVASCRIPT "LANGUAGE_JAVASCRIPT ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
1786 list(APPEND WebCoreTestSupport_IDL_FILES ${WebCore_DERIVED_SOURCES_DIR}/InternalSettingsGenerated.idl)
1787
1788 GENERATE_BINDINGS(WebCoreBindings
1789     OUTPUT_SOURCE WebCore_SOURCES
1790     INPUT_FILES ${WebCore_IDL_FILES}
1791     BASE_DIR ${WEBCORE_DIR}
1792     IDL_INCLUDES ${WebCore_IDL_INCLUDES} ${WebCore_DERIVED_SOURCES_DIR}
1793     FEATURES ${FEATURE_DEFINES_JAVASCRIPT}
1794     DESTINATION ${WebCore_DERIVED_SOURCES_DIR}
1795     GENERATOR JS
1796     SUPPLEMENTAL_DEPFILE ${SUPPLEMENTAL_DEPENDENCY_FILE}
1797     PP_EXTRA_OUTPUT
1798         ${WINDOW_CONSTRUCTORS_FILE} ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE} ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1799     PP_EXTRA_ARGS
1800         --windowConstructorsFile ${WINDOW_CONSTRUCTORS_FILE}
1801         --workerGlobalScopeConstructorsFile ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1802         --dedicatedWorkerGlobalScopeConstructorsFile ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1803         --serviceWorkerGlobalScopeConstructorsFile ${SERVICEWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
1804         --workletGlobalScopeConstructorsFile ${WORKLETGLOBALSCOPE_CONSTRUCTORS_FILE}
1805         --paintWorkletGlobalScopeConstructorsFile ${PAINTWORKLETGLOBALSCOPE_CONSTRUCTORS_FILE})
1806
1807 GENERATE_BINDINGS(WebCoreTestSupportBindings
1808     OUTPUT_SOURCE WebCoreTestSupport_SOURCES
1809     INPUT_FILES ${WebCoreTestSupport_IDL_FILES}
1810     BASE_DIR ${WEBCORE_DIR}
1811     IDL_INCLUDES ${WebCore_IDL_INCLUDES} ${WebCore_DERIVED_SOURCES_DIR} ${WebCoreTestSupport_IDL_INCLUDES}
1812     FEATURES ${FEATURE_DEFINES_JAVASCRIPT}
1813     DESTINATION ${WebCore_DERIVED_SOURCES_DIR}
1814     GENERATOR JS)
1815
1816 # WebCoreTestSupportBindings needs InternalSettingsGenerated.idl
1817 add_dependencies(WebCoreTestSupportBindings WebCore)
1818
1819 # WebCore JS Builtins
1820
1821 set(WebCore_BUILTINS_SOURCES
1822     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnection.js
1823     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnectionInternals.js
1824     ${WEBCORE_DIR}/Modules/streams/ByteLengthQueuingStrategy.js
1825     ${WEBCORE_DIR}/Modules/streams/CountQueuingStrategy.js
1826     ${WEBCORE_DIR}/Modules/streams/ReadableByteStreamController.js
1827     ${WEBCORE_DIR}/Modules/streams/ReadableByteStreamInternals.js
1828     ${WEBCORE_DIR}/Modules/streams/ReadableStream.js
1829     ${WEBCORE_DIR}/Modules/streams/ReadableStreamBYOBReader.js
1830     ${WEBCORE_DIR}/Modules/streams/ReadableStreamBYOBRequest.js
1831     ${WEBCORE_DIR}/Modules/streams/ReadableStreamDefaultController.js
1832     ${WEBCORE_DIR}/Modules/streams/ReadableStreamInternals.js
1833     ${WEBCORE_DIR}/Modules/streams/ReadableStreamDefaultReader.js
1834     ${WEBCORE_DIR}/Modules/streams/StreamInternals.js
1835     ${WEBCORE_DIR}/Modules/streams/WritableStream.js
1836     ${WEBCORE_DIR}/Modules/streams/WritableStreamInternals.js
1837     ${WEBCORE_DIR}/bindings/js/JSDOMBindingInternals.js
1838 )
1839
1840 set(BUILTINS_GENERATOR_SCRIPTS
1841     ${JavaScriptCore_SCRIPTS_DIR}/wkbuiltins.py
1842     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generator.py
1843     ${JavaScriptCore_SCRIPTS_DIR}/builtins_model.py
1844     ${JavaScriptCore_SCRIPTS_DIR}/builtins_templates.py
1845     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_header.py
1846     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_combined_implementation.py
1847     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_header.py
1848     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_separate_implementation.py
1849     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_header.py
1850     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_wrapper_implementation.py
1851     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_header.py
1852     ${JavaScriptCore_SCRIPTS_DIR}/builtins_generate_internals_wrapper_implementation.py
1853     ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py
1854     ${JavaScriptCore_SCRIPTS_DIR}/lazywriter.py
1855 )
1856
1857 foreach (_builtinSource ${WebCore_BUILTINS_SOURCES})
1858     get_filename_component(_objectName ${_builtinSource} NAME_WE)
1859     add_custom_command(
1860         OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/${_objectName}Builtins.cpp
1861                ${WebCore_DERIVED_SOURCES_DIR}/${_objectName}Builtins.h
1862         MAIN_DEPENDENCY ${_builtinSource}
1863         DEPENDS ${BUILTINS_GENERATOR_SCRIPTS}
1864         COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py --framework WebCore --output-directory ${WebCore_DERIVED_SOURCES_DIR} ${_builtinSource}
1865         VERBATIM)
1866     list(APPEND WebCore_DERIVED_BUILTIN_HEADERS ${WebCore_DERIVED_SOURCES_DIR}/${_objectName}Builtins.h)
1867 endforeach ()
1868
1869 add_custom_command(
1870     OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.cpp
1871            ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.cpp
1872            ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.h
1873            ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.h
1874     MAIN_DEPENDENCY ${WebCore_BUILTINS_SOURCES}
1875     DEPENDS ${BUILTINS_GENERATOR_SCRIPTS} ${WebCore_DERIVED_BUILTIN_HEADERS}
1876     COMMAND ${PYTHON_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/generate-js-builtins.py --wrappers-only --framework WebCore --output-directory ${WebCore_DERIVED_SOURCES_DIR} ${WebCore_BUILTINS_SOURCES}
1877     VERBATIM)
1878 list(APPEND WebCore_SOURCES
1879     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.cpp
1880     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.cpp
1881     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltins.h
1882     ${WebCore_DERIVED_SOURCES_DIR}/WebCoreJSBuiltinInternals.h)
1883
1884 ADD_SOURCE_WEBCORE_DERIVED_DEPENDENCIES(${WEBCORE_DIR}/html/HTMLTreeBuilder.cpp MathMLNames.cpp)
1885
1886
1887 GENERATE_DOM_NAMES(HTML ${WEBCORE_DIR}/html/HTMLAttributeNames.in ${WEBCORE_DIR}/html/HTMLTagNames.in "")
1888 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/HTMLNames.cpp ${WebCore_DERIVED_SOURCES_DIR}/HTMLElementFactory.cpp ${WebCore_DERIVED_SOURCES_DIR}/JSHTMLElementWrapperFactory.cpp)
1889
1890
1891 GENERATE_EVENT_FACTORY(${WEBCORE_DIR}/dom/EventNames.in Event)
1892 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventInterfaces.h)
1893 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventFactory.cpp)
1894
1895
1896 GENERATE_EVENT_FACTORY(${WEBCORE_DIR}/dom/EventTargetFactory.in EventTarget)
1897 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventTargetInterfaces.h)
1898 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/EventTargetFactory.cpp)
1899
1900
1901 GENERATE_SETTINGS_MACROS(${WEBCORE_DIR}/page/Settings.yaml Settings.h)
1902 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/Settings.h)
1903 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/Settings.cpp)
1904 list(APPEND WebCoreTestSupport_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/InternalSettingsGenerated.cpp)
1905
1906 GENERATE_FONT_NAMES(${WEBCORE_DIR}/css/WebKitFontFamilyNames.in)
1907 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/WebKitFontFamilyNames.cpp)
1908
1909
1910 GENERATE_DOM_NAMES(MathML ${WEBCORE_DIR}/mathml/mathattrs.in ${WEBCORE_DIR}/mathml/mathtags.in "")
1911 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/MathMLNames.cpp)
1912 if (ENABLE_MATHML)
1913     list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/MathMLElementFactory.cpp)
1914 endif ()
1915
1916 # SVG extra defines need to map to a numerical value for correct preprocessing of svgtags.in.
1917 set(SVG_EXTRA_DEFINES "")
1918 if (ENABLE_SVG_FONTS)
1919     list(APPEND SVG_EXTRA_DEFINES "ENABLE_SVG_FONTS=1")
1920 endif ()
1921
1922 GENERATE_DOM_NAMES(SVG ${WEBCORE_DIR}/svg/svgattrs.in ${WEBCORE_DIR}/svg/svgtags.in "${SVG_EXTRA_DEFINES}")
1923 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SVGNames.cpp)
1924
1925 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SVGElementFactory.cpp ${WebCore_DERIVED_SOURCES_DIR}/JSSVGElementWrapperFactory.cpp)
1926
1927 GENERATE_DOM_NAMES(XLink ${WEBCORE_DIR}/svg/xlinkattrs.in)
1928 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XLinkNames.cpp)
1929
1930
1931 GENERATE_DOM_NAMES(XMLNS ${WEBCORE_DIR}/xml/xmlnsattrs.in)
1932 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLNSNames.cpp)
1933
1934 GENERATE_DOM_NAMES(XML ${WEBCORE_DIR}/xml/xmlattrs.in)
1935 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/XMLNames.cpp)
1936
1937 WEBKIT_WRAP_SOURCELIST(${WebCore_IDL_FILES})
1938 WEBKIT_COMPUTE_SOURCES(WebCore)
1939 WEBKIT_WRAP_SOURCELIST(${WebCore_SOURCES})
1940 WEBKIT_WRAP_SOURCELIST(${WebCoreTestSupport_IDL_FILES} ${WebCoreTestSupport_SOURCES})
1941
1942 if (MSVC)
1943     WEBKIT_ADD_PRECOMPILED_HEADER("WebCorePrefix.h" "WebCorePrefix.cpp" WebCore_SOURCES)
1944 endif ()
1945
1946 WEBKIT_FRAMEWORK(WebCore)
1947
1948 add_dependencies(WebCore WebCoreBindings)
1949 add_dependencies(WebCorePrivateFrameworkHeaders WebCoreBindings)
1950
1951 if (APPLE)
1952     set_target_properties(WebCore PROPERTIES LINK_FLAGS "-sub_library libobjc -umbrella WebKit -allowable_client WebCoreTestSupport -allowable_client WebKit2 -allowable_client WebKitLegacy")
1953 endif ()
1954
1955 # The -ftree-sra optimization (implicit with -O2) causes crashes when
1956 # allocating large chunks of memory using bmalloc on Intel 32bit.
1957 # See https://bugs.webkit.org/show_bug.cgi?id=146440
1958 string(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR)
1959 if (CMAKE_COMPILER_IS_GNUCXX AND "${LOWERCASE_CMAKE_HOST_SYSTEM_PROCESSOR}" MATCHES "(i[3-6]86|x86)$")
1960     WEBKIT_ADD_TARGET_CXX_FLAGS(WebCore -fno-tree-sra)
1961 endif ()
1962
1963 # Include paths of WebCore doesn't propagate to targets using WebKit
1964 # because WebCore is linked to WebKit as a PRIVATE library. Forwarding
1965 # headers generated by generate-forwarding-headers.pl needs include
1966 # paths of WebCore.
1967 add_library(WebCoreHeaderInterface INTERFACE)
1968 target_include_directories(WebCoreHeaderInterface INTERFACE ${WebCore_INCLUDE_DIRECTORIES})
1969 target_include_directories(WebCoreHeaderInterface SYSTEM INTERFACE ${WebCore_SYSTEM_INCLUDE_DIRECTORIES})
1970 target_link_libraries(WebCoreHeaderInterface INTERFACE ${WebCore_LIBRARIES})
1971
1972 if (MSVC)
1973     WEBKIT_ADD_PRECOMPILED_HEADER("WebCoreTestSupportPrefix.h" "testing/js/WebCoreTestSupportPrefix.cpp" WebCoreTestSupport_SOURCES)
1974 endif ()
1975
1976 add_library(WebCoreTestSupport ${WebCoreTestSupport_LIBRARY_TYPE} ${WebCoreTestSupport_SOURCES})
1977 add_dependencies(WebCoreTestSupport WebCore WebCoreTestSupportBindings)
1978 target_include_directories(WebCoreTestSupport PUBLIC ${WebCoreTestSupport_INCLUDE_DIRECTORIES} ${WebCore_INCLUDE_DIRECTORIES})
1979 target_include_directories(WebCoreTestSupport PRIVATE ${WebCoreTestSupport_PRIVATE_INCLUDE_DIRECTORIES} ${WebCore_PRIVATE_INCLUDE_DIRECTORIES})
1980 target_include_directories(WebCoreTestSupport SYSTEM PUBLIC ${WebCoreTestSupport_SYSTEM_INCLUDE_DIRECTORIES} ${WebCore_SYSTEM_INCLUDE_DIRECTORIES})
1981 target_link_libraries(WebCoreTestSupport PRIVATE ${WebCoreTestSupport_LIBRARIES})
1982
1983 if (WebCoreTestSupport_OUTPUT_NAME)
1984     set_target_properties(WebCoreTestSupport PROPERTIES OUTPUT_NAME ${WebCoreTestSupport_OUTPUT_NAME})
1985     if (MSVC)
1986         add_compile_options(/WX-)
1987     endif ()
1988 endif ()
1989
1990 if (${WebCore_LIBRARY_TYPE} MATCHES "SHARED")
1991     set_target_properties(WebCore PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
1992     install(TARGETS WebCore DESTINATION "${LIB_INSTALL_DIR}")
1993 endif ()
1994
1995 if (MSVC)
1996     set_target_properties(WebCore PROPERTIES
1997         COMPILE_PDB_NAME ${WebCore_OUTPUT_NAME}
1998     )
1999 endif ()