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