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