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