Skip to content

Commit

Permalink
feat: add libsrtp2 project
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xD committed Jan 6, 2025
1 parent b4a475b commit 934b3cf
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions gvsbuild/projects/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def __init__(self):
"gst-plugins-base",
"webrtc-audio-processing",
"openssl"
"libsrtp2"
],
patches=[
"wasapisink-reduce-buffer-latency.patch",
Expand Down
35 changes: 35 additions & 0 deletions gvsbuild/projects/libsrtp2.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.

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, Project):
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)
self.install("COPYING", "share/doc/libsrtp2")

0 comments on commit 934b3cf

Please sign in to comment.