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