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