diff --git a/gvsbuild/projects/__init__.py b/gvsbuild/projects/__init__.py index 25169bbff..c67703558 100644 --- a/gvsbuild/projects/__init__.py +++ b/gvsbuild/projects/__init__.py @@ -28,6 +28,7 @@ from gvsbuild.projects.gperf import Gperf from gvsbuild.projects.graphene import Graphene from gvsbuild.projects.gsettings_desktop_schemas import GSettingsDesktopSchemas +from gvsbuild.projects.libsrtp2 import LibSRTP from gvsbuild.projects.gstreamer import ( GstDevTools, GstPluginsBad, diff --git a/gvsbuild/projects/gstreamer.py b/gvsbuild/projects/gstreamer.py index 73f199909..579b8a747 100644 --- a/gvsbuild/projects/gstreamer.py +++ b/gvsbuild/projects/gstreamer.py @@ -161,6 +161,7 @@ def __init__(self): "gst-plugins-base", "webrtc-audio-processing", "openssl" + "libsrtp2" ], patches=[ "wasapisink-reduce-buffer-latency.patch", diff --git a/gvsbuild/projects/libsrtp2.py b/gvsbuild/projects/libsrtp2.py new file mode 100644 index 000000000..1e7e5c70b --- /dev/null +++ b/gvsbuild/projects/libsrtp2.py @@ -0,0 +1,35 @@ +# Copyright (C) 2025 The Gvsbuild Authors +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . + +from gvsbuild.utils.base_builders import Meson +from gvsbuild.utils.base_builders import Meson +from gvsbuild.utils.base_expanders import Tarball +from gvsbuild.utils.base_project import Project, project_add + + +@project_add +class LibSRTP(Tarball, Meson): + def __init__(self): + Project.__init__( + self, + "libsrtp2", + version="2.5.0", + archive_url="https://github.com/cisco/libsrtp/archive/refs/tags/v{version}.tar.gz", + hash="8a43ef8e9ae2b665292591af62aa1a4ae41e468b6d98d8258f91478735da4e09", + dependencies=["meson", "ninja"], + ) + + def build(self): + Meson.build(self)