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