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