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