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