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