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