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