mpg123: hook up to build system

This commit is contained in:
Tim-Philipp Müller 2012-08-03 11:48:02 +01:00
parent da622c27ba
commit f75e4fbc11
3 changed files with 46 additions and 1 deletions

View file

@ -1212,6 +1212,14 @@ AG_GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
fi
])
dnl *** mpg123 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MPG123, true)
AG_GST_CHECK_FEATURE(MPG123, [mpg123 audio decoder], mpg123, [
PKG_CHECK_MODULES(MPG123, libmpg123, HAVE_MPG123="yes", HAVE_MPG123="no")
AC_SUBST(MPG123_CFLAGS)
AC_SUBST(MPG123_LIBS)
])
dnl *** mplex ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
AG_GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
@ -1827,6 +1835,7 @@ AM_CONDITIONAL(USE_LINSYS, false)
AM_CONDITIONAL(USE_MODPLUG, false)
AM_CONDITIONAL(USE_MIMIC, false)
AM_CONDITIONAL(USE_MPEG2ENC, false)
AM_CONDITIONAL(USE_MPG123, false)
AM_CONDITIONAL(USE_MPLEX, false)
AM_CONDITIONAL(USE_MUSEPACK, false)
AM_CONDITIONAL(USE_MUSICBRAINZ, false)
@ -2080,6 +2089,7 @@ ext/libmms/Makefile
ext/Makefile
ext/modplug/Makefile
ext/mpeg2enc/Makefile
ext/mpg123/Makefile
ext/mimic/Makefile
ext/mplex/Makefile
ext/musepack/Makefile

View file

@ -178,6 +178,12 @@ else
MPEG2ENC_DIR=
endif
if USE_MPG123
MPG123_DIR=mpg123
else
MPG123_DIR=
endif
if USE_MIMIC
MIMIC_DIR=mimic
else
@ -393,6 +399,7 @@ SUBDIRS=\
$(LIBMMS_DIR) \
$(MODPLUG_DIR) \
$(MPEG2ENC_DIR) \
$(MPG123_DIR) \
$(MIMIC_DIR) \
$(MPLEX_DIR) \
$(MUSEPACK_DIR) \
@ -449,6 +456,7 @@ DIST_SUBDIRS = \
modplug \
mimic \
mpeg2enc \
mpg123 \
mplex \
musepack \
musicbrainz \

27
ext/mpg123/Makefile.am Normal file
View file

@ -0,0 +1,27 @@
plugin_LTLIBRARIES = libgstmpg123.la
libgstmpg123_la_SOURCES = gstmpg123audiodec.c
libgstmpg123_la_CFLAGS = -DGST_USE_UNSTABLE_API \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(MPG123_CFLAGS)
libgstmpg123_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-@GST_API_VERSION@ \
$(GST_BASE_LIBS) $(GST_LIBS) $(MPG123_LIBS)
libgstmpg123_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstmpg123_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = gstmpg123audiodec.c
Android.mk: Makefile.am $(BUILT_SOURCES)
androgenizer \
-:PROJECT libgstmpg123 -:SHARED libgstmpg123 \
-:TAGS eng debug \
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
-:SOURCES $(libgstmpg123_la_SOURCES) \
-:CPPFLAGS $(CPPFLAGS) \
-:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstmpg123_la_CFLAGS) \
-:LDFLAGS $(libgstmpg123_la_LDFLAGS) \
$(libgstmpg123_la_LIBADD) \
-ldl \
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
LOCAL_MODULE_PATH:='$$(TARGET_OUT)/lib/gstreamer-@GST_API_VERSION@' \
> $@