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