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