diff options
-rw-r--r-- | configure.ac | 9 | ||||
-rw-r--r-- | ext/fdkaac/Makefile.am | 13 | ||||
-rw-r--r-- | ext/fdkaac/plugin.c | 36 |
3 files changed, 58 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 70be2e18d..e8076259a 100644 --- a/configure.ac +++ b/configure.ac @@ -2296,6 +2296,14 @@ AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [ fi ]) +dnl *** fdkaac *** +translit(dnm, m, l) AM_CONDITIONAL(USE_FDK_AAC, true) +AG_GST_CHECK_FEATURE(FDK_AAC, [fdkaac plugin], fdkaac, [ + PKG_CHECK_MODULES(FDK_AAC, fdk-aac, HAVE_FDK_AAC="yes", [ + HAVE_FDK_AAC="no" + ]) +]) + dnl *** flite *** translit(dnm, m, l) AM_CONDITIONAL(USE_FLITE, true) AG_GST_CHECK_FEATURE(FLITE, [Flite plugin], flite, [ @@ -3755,6 +3763,7 @@ ext/gl/Makefile ext/gtk/Makefile ext/faac/Makefile ext/faad/Makefile +ext/fdkaac/Makefile ext/flite/Makefile ext/fluidsynth/Makefile ext/gsm/Makefile diff --git a/ext/fdkaac/Makefile.am b/ext/fdkaac/Makefile.am new file mode 100644 index 000000000..36c7464b1 --- /dev/null +++ b/ext/fdkaac/Makefile.am @@ -0,0 +1,13 @@ +plugin_LTLIBRARIES = libgstfdkaac.la + +libgstfdkaac_la_SOURCES = plugin.c +libgstfdkaac_la_CFLAGS = -DGST_USE_UNSTABLE_API \ + $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \ + $(GST_CFLAGS) $(FDK_AAC_CFLAGS) +libgstfdkaac_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ + -lgstaudio-@GST_API_VERSION@ -lgstpbutils-@GST_API_VERSION@ \ + $(GST_BASE_LIBS) $(FDK_AAC_LIBS) +libgstfdkaac_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libgstfdkaac_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS) + +noinst_HEADERS = diff --git a/ext/fdkaac/plugin.c b/ext/fdkaac/plugin.c new file mode 100644 index 000000000..3ac215d1a --- /dev/null +++ b/ext/fdkaac/plugin.c @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2016 Sebastian Dröge <sebastian@centricular.com> + * + * 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 <gst/gst.h> + +static gboolean +plugin_init (GstPlugin * plugin) +{ + return TRUE; +} + +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, + GST_VERSION_MINOR, + fdkaac, + "Fraunhofer FDK AAC Codec plugin", + plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) |