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