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