Skip to content

Commit 26668a4

Browse files
danyeawpbor
authored andcommitted
Add libnice for building gstwebrtc
1 parent 4570f49 commit 26668a4

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

gvsbuild/projects/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
from gvsbuild.projects.libgxps import Libgxps
6161
from gvsbuild.projects.libjpeg_turbo import LibjpegTurbo
6262
from gvsbuild.projects.libmicrohttpd import Libmicrohttpd
63+
from gvsbuild.projects.libnice import Libnice
6364
from gvsbuild.projects.libpanel import Libpanel
6465
from gvsbuild.projects.libpng import Libpng
6566
from gvsbuild.projects.libpsl import Libpsl

gvsbuild/projects/gstreamer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def __init__(self):
159159
"meson",
160160
"ninja",
161161
"gst-plugins-base",
162+
"libnice",
162163
"webrtc-audio-processing",
163164
],
164165
patches=[

gvsbuild/projects/libnice.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright (C) 2024 The Gvsbuild Authors
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; either version 2 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program; if not, see <http://www.gnu.org/licenses/>.
15+
16+
from gvsbuild.utils.base_builders import Meson
17+
from gvsbuild.utils.base_expanders import GitRepo
18+
from gvsbuild.utils.base_project import Project, project_add
19+
20+
21+
@project_add
22+
class Libnice(GitRepo, Meson):
23+
def __init__(self):
24+
Project.__init__(
25+
self,
26+
"libnice",
27+
version="0.1.22",
28+
repo_url="https://gitlab.freedesktop.org/libnice/libnice.git",
29+
fetch_submodules=False,
30+
tag="ae3eb16fd7d1237353bf64e899c612b8a63bca8a",
31+
dependencies=[
32+
"ninja",
33+
"meson",
34+
],
35+
)
36+
37+
def build(self):
38+
Meson.build(self)
39+
self.install(r"LICENSE share\doc\libnice")

0 commit comments

Comments
 (0)