Skip to content

Commit

Permalink
Merge pull request #1514 from ben-xD/dtls
Browse files Browse the repository at this point in the history
feat: add `openssl` and `libsrtp` to build dtls and srtp gstreamer plugins in gst-plugins-bad
  • Loading branch information
danyeaw authored Jan 8, 2025
2 parents 443ccd4 + 34764df commit 5f9082a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gvsbuild/projects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
from gvsbuild.projects.libcbor import Libcbor
from gvsbuild.projects.libcurl import Libcurl
from gvsbuild.projects.libepoxy import Libepoxy
from gvsbuild.projects.libfido2 import Libfido2
from gvsbuild.projects.libffi import Libffi
from gvsbuild.projects.libfido2 import Libfido2
from gvsbuild.projects.libgxps import Libgxps
from gvsbuild.projects.libjpeg_turbo import LibjpegTurbo
from gvsbuild.projects.libmicrohttpd import Libmicrohttpd
Expand All @@ -67,6 +67,7 @@
from gvsbuild.projects.librsvg import Librsvg
from gvsbuild.projects.libsigcplusplus import Libsigcplusplus
from gvsbuild.projects.libsoup import Libsoup2, Libsoup3
from gvsbuild.projects.libsrtp2 import LibSRTP
from gvsbuild.projects.libssh import Libssh, Libssh2
from gvsbuild.projects.libtiff import Libtiff4
from gvsbuild.projects.libuv import Libuv
Expand All @@ -82,8 +83,7 @@
from gvsbuild.projects.nghttp2 import Nghttp2
from gvsbuild.projects.ogg import Ogg
from gvsbuild.projects.openh264 import OpenH264
from gvsbuild.projects.openssl import OpenSSL
from gvsbuild.projects.openssl import OpenSSLFips
from gvsbuild.projects.openssl import OpenSSL, OpenSSLFips
from gvsbuild.projects.opus import Opus
from gvsbuild.projects.pango import Pango
from gvsbuild.projects.pangomm import Pangomm
Expand Down
2 changes: 2 additions & 0 deletions gvsbuild/projects/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def __init__(self):
"gst-plugins-base",
"libnice",
"webrtc-audio-processing",
"openssl",
"libsrtp2",
],
patches=[
"wasapisink-reduce-buffer-latency.patch",
Expand Down
36 changes: 36 additions & 0 deletions gvsbuild/projects/libsrtp2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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, Meson):
def __init__(self):
Project.__init__(
self,
"libsrtp2",
repository="https://github.com/cisco/libsrtp",
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(r".\LICENSE share\doc\libsrtp2")

0 comments on commit 5f9082a

Please sign in to comment.