| if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO) |
| list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES |
| "${WEBCORE_DIR}/Modules/mediastream/gstreamer" |
| "${WEBCORE_DIR}/platform/graphics/gstreamer" |
| "${WEBCORE_DIR}/platform/graphics/gstreamer/mse" |
| "${WEBCORE_DIR}/platform/graphics/gstreamer/eme" |
| "${WEBCORE_DIR}/platform/mediarecorder/gstreamer" |
| ) |
| |
| list(APPEND WebCore_SOURCES |
| Modules/mediastream/gstreamer/GStreamerDataChannelHandler.cpp |
| Modules/mediastream/gstreamer/GStreamerDtlsTransportBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerIceTransportBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp |
| Modules/mediastream/gstreamer/GStreamerPeerConnectionBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerRtpReceiverBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerRtpReceiverTransformBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerRtpSenderBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerRtpSenderTransformBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerRtpTransceiverBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerRtpTransformBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerSctpTransportBackend.cpp |
| Modules/mediastream/gstreamer/GStreamerStatsCollector.cpp |
| Modules/mediastream/gstreamer/GStreamerWebRTCUtils.cpp |
| |
| Modules/webaudio/MediaStreamAudioSourceGStreamer.cpp |
| |
| platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp |
| platform/graphics/gstreamer/DMABufVideoSinkGStreamer.cpp |
| platform/graphics/gstreamer/GLVideoSinkGStreamer.cpp |
| platform/graphics/gstreamer/GRefPtrGStreamer.cpp |
| platform/graphics/gstreamer/GStreamerAudioMixer.cpp |
| platform/graphics/gstreamer/GStreamerCommon.cpp |
| platform/graphics/gstreamer/GstAllocatorFastMalloc.cpp |
| platform/graphics/gstreamer/GStreamerRegistryScanner.cpp |
| platform/graphics/gstreamer/GStreamerVideoFrameHolder.cpp |
| platform/graphics/gstreamer/GStreamerVideoSinkCommon.cpp |
| platform/graphics/gstreamer/ImageDecoderGStreamer.cpp |
| platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.cpp |
| platform/graphics/gstreamer/MediaEngineConfigurationFactoryGStreamer.cpp |
| platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp |
| platform/graphics/gstreamer/MediaSampleGStreamer.cpp |
| platform/graphics/gstreamer/TextCombinerGStreamer.cpp |
| platform/graphics/gstreamer/TextCombinerPadGStreamer.cpp |
| platform/graphics/gstreamer/TextSinkGStreamer.cpp |
| platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp |
| platform/graphics/gstreamer/VideoFrameGStreamer.cpp |
| platform/graphics/gstreamer/VideoFrameMetadataGStreamer.cpp |
| platform/graphics/gstreamer/VideoSinkGStreamer.cpp |
| platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp |
| platform/graphics/gstreamer/WebKitAudioSinkGStreamer.cpp |
| platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp |
| |
| platform/graphics/gstreamer/eme/GStreamerEMEUtilities.cpp |
| platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp |
| |
| platform/graphics/gstreamer/mse/AppendPipeline.cpp |
| platform/graphics/gstreamer/mse/GStreamerMediaDescription.cpp |
| platform/graphics/gstreamer/mse/GStreamerRegistryScannerMSE.cpp |
| platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp |
| platform/graphics/gstreamer/mse/MediaSourcePrivateGStreamer.cpp |
| platform/graphics/gstreamer/mse/MediaSourceTrackGStreamer.cpp |
| platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.cpp |
| platform/graphics/gstreamer/mse/TrackQueue.cpp |
| platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp |
| |
| platform/mediarecorder/MediaRecorderPrivateGStreamer.cpp |
| |
| platform/mediastream/libwebrtc/LibWebRTCAudioModule.cpp |
| |
| platform/mediastream/libwebrtc/gstreamer/GStreamerVideoCommon.cpp |
| platform/mediastream/libwebrtc/gstreamer/GStreamerVideoDecoderFactory.cpp |
| platform/mediastream/libwebrtc/gstreamer/GStreamerVideoEncoderFactory.cpp |
| platform/mediastream/libwebrtc/gstreamer/GStreamerVideoFrameLibWebRTC.cpp |
| platform/mediastream/libwebrtc/gstreamer/LibWebRTCProviderGStreamer.cpp |
| platform/mediastream/libwebrtc/gstreamer/RealtimeIncomingAudioSourceLibWebRTC.cpp |
| platform/mediastream/libwebrtc/gstreamer/RealtimeIncomingVideoSourceLibWebRTC.cpp |
| platform/mediastream/libwebrtc/gstreamer/RealtimeOutgoingAudioSourceLibWebRTC.cpp |
| platform/mediastream/libwebrtc/gstreamer/RealtimeOutgoingVideoSourceLibWebRTC.cpp |
| |
| platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp |
| platform/mediastream/gstreamer/GStreamerAudioCapturer.cpp |
| platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp |
| platform/mediastream/gstreamer/GStreamerCapturer.cpp |
| platform/mediastream/gstreamer/GStreamerDTMFSenderBackend.cpp |
| platform/mediastream/gstreamer/GStreamerDisplayCaptureDeviceManager.cpp |
| platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp |
| platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp |
| platform/mediastream/gstreamer/GStreamerVideoCapturer.cpp |
| platform/mediastream/gstreamer/GStreamerVideoEncoder.cpp |
| platform/mediastream/gstreamer/MockRealtimeAudioSourceGStreamer.cpp |
| platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp |
| platform/mediastream/gstreamer/RealtimeIncomingAudioSourceGStreamer.cpp |
| platform/mediastream/gstreamer/RealtimeIncomingSourceGStreamer.cpp |
| platform/mediastream/gstreamer/RealtimeIncomingVideoSourceGStreamer.cpp |
| platform/mediastream/gstreamer/RealtimeMediaSourceCenterGStreamer.cpp |
| platform/mediastream/gstreamer/RealtimeOutgoingAudioSourceGStreamer.cpp |
| platform/mediastream/gstreamer/RealtimeOutgoingMediaSourceGStreamer.cpp |
| platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceGStreamer.cpp |
| ) |
| |
| list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS |
| platform/graphics/gstreamer/GRefPtrGStreamer.h |
| platform/graphics/gstreamer/GStreamerCommon.h |
| platform/graphics/gstreamer/GUniquePtrGStreamer.h |
| platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h |
| |
| platform/mediastream/libwebrtc/gstreamer/GStreamerVideoDecoderFactory.h |
| platform/mediastream/libwebrtc/gstreamer/GStreamerVideoEncoderFactory.h |
| platform/mediastream/libwebrtc/gstreamer/LibWebRTCProviderGStreamer.h |
| ) |
| |
| if (USE_GSTREAMER_FULL) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_FULL_INCLUDE_DIRS} |
| ) |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_FULL_LIBRARIES} |
| ) |
| else () |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_INCLUDE_DIRS} |
| ${GSTREAMER_BASE_INCLUDE_DIRS} |
| ${GSTREAMER_ALLOCATORS_INCLUDE_DIRS} |
| ${GSTREAMER_APP_INCLUDE_DIRS} |
| ${GSTREAMER_PBUTILS_INCLUDE_DIRS} |
| ) |
| |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_ALLOCATORS_LIBRARIES} |
| ${GSTREAMER_APP_LIBRARIES} |
| ${GSTREAMER_BASE_LIBRARIES} |
| ${GSTREAMER_LIBRARIES} |
| ${GSTREAMER_PBUTILS_LIBRARIES} |
| ${GSTREAMER_AUDIO_LIBRARIES} |
| ) |
| endif () |
| |
| # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes. |
| set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1") |
| endif () |
| |
| if (USE_GSTREAMER_TRANSCODER) |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_TRANSCODER_LIBRARIES} |
| ) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_TRANSCODER_INCLUDE_DIRS} |
| ) |
| endif () |
| |
| if (ENABLE_VIDEO) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_TAG_INCLUDE_DIRS} |
| ${GSTREAMER_VIDEO_INCLUDE_DIRS} |
| ) |
| |
| if (NOT USE_GSTREAMER_FULL) |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_TAG_LIBRARIES} |
| ${GSTREAMER_VIDEO_LIBRARIES} |
| ) |
| endif () |
| |
| if (USE_GSTREAMER_MPEGTS AND NOT USE_GSTREAMER_FULL) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_MPEGTS_INCLUDE_DIRS} |
| ) |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_MPEGTS_LIBRARIES} |
| ) |
| endif () |
| |
| if (USE_GSTREAMER_GL) |
| if (NOT USE_GSTREAMER_FULL) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_GL_INCLUDE_DIRS} |
| ) |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_GL_LIBRARIES} |
| ) |
| endif () |
| list(APPEND WebCore_SOURCES |
| platform/graphics/gstreamer/PlatformDisplayGStreamer.cpp |
| platform/graphics/gstreamer/VideoTextureCopierGStreamer.cpp |
| ) |
| endif () |
| |
| if (USE_LIBWEBRTC) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_CODECPARSERS_INCLUDE_DIRS} |
| ) |
| if (NOT USE_GSTREAMER_FULL) |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_CODECPARSERS_LIBRARIES} |
| ) |
| endif () |
| elseif (USE_GSTREAMER_WEBRTC) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_RTP_INCLUDE_DIRS} |
| ${GSTREAMER_SDP_INCLUDE_DIRS} |
| ${GSTREAMER_WEBRTC_INCLUDE_DIRS} |
| ) |
| if (NOT USE_GSTREAMER_FULL) |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_RTP_LIBRARIES} |
| ${GSTREAMER_SDP_LIBRARIES} |
| ${GSTREAMER_WEBRTC_LIBRARIES} |
| ) |
| endif () |
| |
| list(APPEND WebCore_LIBRARIES OpenSSL::Crypto) |
| endif () |
| endif () |
| |
| if (ENABLE_WEB_AUDIO) |
| list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES |
| "${WEBCORE_DIR}/platform/audio/gstreamer" |
| ) |
| |
| list(APPEND WebCore_SOURCES |
| platform/audio/gstreamer/AudioDestinationGStreamer.cpp |
| platform/audio/gstreamer/AudioFileReaderGStreamer.cpp |
| platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp |
| platform/audio/gstreamer/FFTFrameGStreamer.cpp |
| platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp |
| ) |
| |
| if (NOT USE_GSTREAMER_FULL) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${GSTREAMER_AUDIO_INCLUDE_DIRS} |
| ${GSTREAMER_FFT_INCLUDE_DIRS} |
| ) |
| |
| list(APPEND WebCore_LIBRARIES |
| ${GSTREAMER_FFT_LIBRARIES} |
| ) |
| endif () |
| endif () |
| |
| if (ENABLE_ENCRYPTED_MEDIA) |
| list(APPEND WebCore_SOURCES |
| platform/graphics/gstreamer/eme/CDMFactoryGStreamer.cpp |
| ) |
| |
| if (ENABLE_THUNDER) |
| list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES |
| ${THUNDER_INCLUDE_DIRS} |
| ) |
| |
| list(APPEND WebCore_LIBRARIES |
| ${THUNDER_LIBRARIES} |
| ) |
| |
| list(APPEND WebCore_SOURCES |
| platform/graphics/gstreamer/eme/CDMProxyThunder.cpp |
| platform/graphics/gstreamer/eme/CDMThunder.cpp |
| platform/graphics/gstreamer/eme/WebKitThunderDecryptorGStreamer.cpp |
| ) |
| endif () |
| endif () |
| |
| if (USE_CAIRO) |
| list(APPEND WebCore_SOURCES |
| platform/graphics/gstreamer/ImageGStreamerCairo.cpp |
| ) |
| endif () |