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