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