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