Commit 23cbb295 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

libnice: build with Meson

parent b43e400a
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
name = 'libnice'
version = '0.1.15'
stype = SourceType.TARBALL
btype = BuildType.MESON
url = 'https://nice.freedesktop.org/releases/%(name)s-%(version)s.tar.gz'
tarball_checksum = 'f7280f3f58f594409c719a03009aa819c599078b410796f408251277807587da'
licenses = [License.LGPLv2_1Plus, License.MPLv1_1]
configure_options = '--enable-static --enable-static-plugins --enable-shared \
--with-gstreamer --without-gstreamer-0.10 \
--enable-compile-warnings=maximum --disable-gtk-doc'
deps = ['glib', 'gstreamer-1.0']
autoreconf = True
meson_options = {'tests' : 'disabled',
'gstreamer' : 'enabled',
'crypto-library' : 'gnutls'}
deps = ['glib', 'gstreamer-1.0', 'gnutls']
patches = [
"libnice/0001-nicesrc-spin-the-agent-mainloop-in-a-separate-thread.patch",
"libnice/0001-meson-install-.pc-file-for-static-gstreamer-plugin.patch",
]
files_bins = ['stunbdc', 'stund']
......@@ -28,3 +30,8 @@ class Recipe(recipe.Recipe):
'lib/gstreamer-1.0/libgstnice.a', 'lib/gstreamer-1.0/libgstnice.la',
]
# FIXME - if_arp.h? (iOS)
def post_install (self):
lib = LibtoolLibrary('gstnice', None, None, None, os.path.join(self.config.libdir, 'gstreamer-1.0'),
self.config.target_platform, deps=['nice', 'gio-2.0', 'gthread-2.0', 'gnutls', 'gupnp-igd-1.0', 'gstreamer-base-1.0'])
lib.save()
From 006688afe7d6ea76dcf6d4426cdf538315445c07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com>
Date: Tue, 15 Jan 2019 12:26:57 +0000
Subject: [PATCH] meson: install .pc file for static gstreamer plugin
---
gst/meson.build | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gst/meson.build b/gst/meson.build
index 15a5079..091a37f 100644
--- a/gst/meson.build
+++ b/gst/meson.build
@@ -6,11 +6,18 @@ gst_nice_sources = [
gst_nice_args = ['-DGST_USE_UNSTABLE_API']
+gst_plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
+
libgstnice = library('gstnice',
gst_nice_sources,
c_args : gst_nice_args,
include_directories: nice_incs,
dependencies: [nice_deps, gst_dep],
link_with: libnice,
- install_dir: join_paths(get_option('libdir'), 'gstreamer-1.0'),
+ install_dir: gst_plugins_install_dir,
install: true)
+
+# Generate pc files for static plugins if we build static plugins
+if get_option('default_library') != 'shared'
+ pkg.generate(libgstnice, install_dir: join_paths(gst_plugins_install_dir, 'pkgconfig'))
+endif
--
2.20.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment