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