mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
bluez: add new plugin to build system, but disable for now
Disable until it has been tested and works. https://bugzilla.gnome.org/show_bug.cgi?id=690582
This commit is contained in:
parent
c994ae021d
commit
70ba34c485
4 changed files with 89 additions and 2 deletions
11
configure.ac
11
configure.ac
|
@ -684,6 +684,16 @@ if test "x$HAVE_IOS" = "xyes"; then
|
|||
AC_DEFINE(HAVE_IOS, 1, [Define if building for Apple iOS])
|
||||
fi
|
||||
|
||||
dnl *** bluez ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_BLUEZ, true)
|
||||
AG_GST_CHECK_FEATURE(BLUEZ, [Bluez], bluez, [
|
||||
dnl FIXME: we should be able to replace this with the GLib DBus stuff
|
||||
PKG_CHECK_MODULES([DBUS], [dbus-1], [HAVE_BLUEZ=yes], [HAVE_BLUEZ=no])
|
||||
|
||||
AC_MSG_NOTICE([Disabling bluez plugin for now, does not work yet])
|
||||
HAVE_BLUEZ=no
|
||||
])
|
||||
|
||||
dnl *** OS X videosrc ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_OSX_VIDEO, true)
|
||||
HAVE_OSX_VIDEO="no"
|
||||
|
@ -2255,6 +2265,7 @@ sys/acmmp3dec/Makefile
|
|||
sys/androidmedia/Makefile
|
||||
sys/applemedia/Makefile
|
||||
sys/avc/Makefile
|
||||
sys/bluez/Makefile
|
||||
sys/d3dvideosink/Makefile
|
||||
sys/decklink/Makefile
|
||||
sys/directdraw/Makefile
|
||||
|
|
|
@ -22,6 +22,12 @@ else
|
|||
AVC_DIR=
|
||||
endif
|
||||
|
||||
if USE_BLUEZ
|
||||
BLUEZ_DIR=bluez
|
||||
else
|
||||
BLUEZ_DIR=
|
||||
endif
|
||||
|
||||
# if USE_CDROM
|
||||
# CDROM_DIR=cdrom
|
||||
# else
|
||||
|
@ -160,9 +166,9 @@ else
|
|||
MFC_DIR=
|
||||
endif
|
||||
|
||||
SUBDIRS = $(ACM_DIR) $(ANDROID_MEDIA_DIR) $(APPLE_MEDIA_DIR) $(AVC_DIR) $(D3DVIDEOSINK_DIR) $(DECKLINK_DIR) $(DIRECTDRAW_DIR) $(DIRECTSOUND_DIR) $(DIRECTSHOW_DIR) $(DVB_DIR) $(FBDEV_DIR) $(LINSYS_DIR) $(OPENSLES_DIR) $(OSX_VIDEO_DIR) $(PVR_DIR) $(QT_DIR) $(SHM_DIR) $(UVCH264_DIR) $(VCD_DIR) $(VDPAU_DIR) $(WININET_DIR) $(WINSCREENCAP_DIR) $(WASAPI_DIR) $(MFC_DIR)
|
||||
SUBDIRS = $(ACM_DIR) $(ANDROID_MEDIA_DIR) $(APPLE_MEDIA_DIR) $(AVC_DIR) $(BLUEZ_DIR) $(D3DVIDEOSINK_DIR) $(DECKLINK_DIR) $(DIRECTDRAW_DIR) $(DIRECTSOUND_DIR) $(DIRECTSHOW_DIR) $(DVB_DIR) $(FBDEV_DIR) $(LINSYS_DIR) $(OPENSLES_DIR) $(OSX_VIDEO_DIR) $(PVR_DIR) $(QT_DIR) $(SHM_DIR) $(UVCH264_DIR) $(VCD_DIR) $(VDPAU_DIR) $(WININET_DIR) $(WINSCREENCAP_DIR) $(WASAPI_DIR) $(MFC_DIR)
|
||||
|
||||
DIST_SUBDIRS = acmenc acmmp3dec androidmedia applemedia avc d3dvideosink decklink directdraw directsound dvb linsys fbdev dshowdecwrapper dshowsrcwrapper dshowvideosink \
|
||||
DIST_SUBDIRS = acmenc acmmp3dec androidmedia applemedia avc bluez d3dvideosink decklink directdraw directsound dvb linsys fbdev dshowdecwrapper dshowsrcwrapper dshowvideosink \
|
||||
opensles osxvideo pvr2d qtwrapper shm uvch264 vcd vdpau wasapi wininet winks winscreencap mfc
|
||||
|
||||
include $(top_srcdir)/common/parallel-subdirs.mak
|
||||
|
|
26
sys/bluez/Makefile.am
Normal file
26
sys/bluez/Makefile.am
Normal file
|
@ -0,0 +1,26 @@
|
|||
plugin_LTLIBRARIES = libgstbluez.la
|
||||
|
||||
libgstbluez_la_SOURCES = \
|
||||
bluez-plugin.c \
|
||||
gsta2dpsink.c \
|
||||
gstavdtpsink.c
|
||||
|
||||
libgstbluez_la_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) \
|
||||
$(GST_PLUGINS_BASE_CFLAGS) \
|
||||
$(GST_BASE_CFLAGS) \
|
||||
$(GST_CFLAGS) \
|
||||
$(DBUS_CFLAGS)
|
||||
libgstbluez_la_LIBADD = \
|
||||
$(GST_PLUGINS_BASE_LIBS) \
|
||||
-lgstaudio-$(GST_API_VERSION) \
|
||||
-lgstrtp-$(GST_API_VERSION) \
|
||||
$(GST_BASE_LIBS) \
|
||||
$(GST_LIBS) \
|
||||
$(DBUS_LIBS)
|
||||
libgstbluez_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstbluez_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
noinst_HEADERS = \
|
||||
a2dp-codecs.h \
|
||||
gsta2dpsink.h \
|
||||
gstavdtpsink.h
|
44
sys/bluez/bluez-plugin.c
Normal file
44
sys/bluez/bluez-plugin.c
Normal file
|
@ -0,0 +1,44 @@
|
|||
/* GStreamer bluez plugin
|
||||
*
|
||||
* Copyright (C) 2013 Collabora Ltd. <tim.muller@collabora.co.uk>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include "gsta2dpsink.h"
|
||||
#include "gstavdtpsink.h"
|
||||
#include <string.h>
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
gst_element_register (plugin, "a2dpsink", GST_RANK_NONE, GST_TYPE_A2DP_SINK);
|
||||
|
||||
gst_element_register (plugin, "avdtpsink",
|
||||
GST_RANK_NONE, GST_TYPE_AVDTP_SINK);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
bluez,
|
||||
"Bluez-based bluetooth support",
|
||||
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
|
Loading…
Reference in a new issue