mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-23 04:43:35 +08:00
Add skeleton for embedding SBC library
This commit is contained in:
parent
5ae83f09aa
commit
61f64a95d1
@ -1,5 +1,5 @@
|
||||
|
||||
SUBDIRS = eglib common sdpd hcid daemon \
|
||||
SUBDIRS = sbc eglib common sdpd hcid daemon \
|
||||
transfer network serial input audio print sync \
|
||||
tools rfcomm dund pand hidd \
|
||||
cups test scripts
|
||||
|
@ -310,6 +310,9 @@ AC_DEFUN([AC_ARG_BLUEZ], [
|
||||
AM_CONDITIONAL(EXPAT, test "${expat_enable}" = "yes" && test "${expat_found}" = "yes")
|
||||
fi
|
||||
|
||||
AC_SUBST([SBC_CFLAGS], ['-I$(top_srcdir)/sbc'])
|
||||
AC_SUBST([SBC_LIBS], ['$(top_builddir)/sbc/libsbc.la'])
|
||||
|
||||
AM_CONDITIONAL(INOTIFY, test "${inotify_enable}" = "yes" && test "${inotify_found}" = "yes")
|
||||
AM_CONDITIONAL(USB, test "${usb_enable}" = "yes" && test "${usb_found}" = "yes")
|
||||
AM_CONDITIONAL(OBEX, test "${obex_enable}" = "yes" && test "${openobex_found}" = "yes")
|
||||
|
@ -6,12 +6,15 @@ noinst_PROGRAMS = bluetoothd-service-audio \
|
||||
|
||||
bluetoothd_service_audio_SOURCES = main.c
|
||||
|
||||
bluetoothd_service_audio_LDADD = $(top_builddir)/common/libhelper.a \
|
||||
@SBC_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
|
||||
|
||||
bluetoothd_service_headset_SOURCES = headset.c
|
||||
|
||||
LDADD = $(top_builddir)/common/libhelper.a \
|
||||
@GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
|
||||
bluetoothd_service_headset_LDADD = $(top_builddir)/common/libhelper.a \
|
||||
@GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
|
||||
|
||||
AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@
|
||||
AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @SBC_CFLAGS@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/common
|
||||
|
||||
|
@ -37,6 +37,7 @@ AC_ARG_BLUEZ
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
sbc/Makefile
|
||||
eglib/Makefile
|
||||
common/Makefile
|
||||
daemon/Makefile
|
||||
|
6
sbc/Makefile.am
Normal file
6
sbc/Makefile.am
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
noinst_LTLIBRARIES = libsbc.la
|
||||
|
||||
libsbc_la_SOURCES = sbc.h sbc.c
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
28
sbc/sbc.c
Normal file
28
sbc/sbc.c
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
*
|
||||
* Bluetooth low-complexity, subband codec (SBC) library
|
||||
*
|
||||
* Copyright (C) 2004-2007 Marcel Holtmann <marcel@holtmann.org>
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser 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 "sbc.h"
|
35
sbc/sbc.h
Normal file
35
sbc/sbc.h
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
*
|
||||
* Bluetooth low-complexity, subband codec (SBC) library
|
||||
*
|
||||
* Copyright (C) 2004-2007 Marcel Holtmann <marcel@holtmann.org>
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser 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
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __SBC_H
|
||||
#define __SBC_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __SBC_H */
|
Loading…
Reference in New Issue
Block a user