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