FFmpeg test

This commit is contained in:
bnnm 2020-08-01 10:31:00 +02:00
parent c15896fa64
commit 9b0df8652e
5 changed files with 28 additions and 0 deletions

View File

@ -35,6 +35,12 @@ PKG_CHECK_MODULES(MPG123, [libmpg123], have_libmpg123=yes,
) )
AM_CONDITIONAL(HAVE_LIBMPG123, test "$have_libmpg123" = yes) AM_CONDITIONAL(HAVE_LIBMPG123, test "$have_libmpg123" = yes)
#have_ffmpeg=no
#PKG_CHECK_MODULES(FFMPEG, [libavformat-dev libavcodec-dev libavutil-dev libswresample-dev], have_ffmpeg=yes,
# [AC_MSG_WARN([Cannot find ffmpeg - will not enable FFmpeg formats])]
#)
#AM_CONDITIONAL(HAVE_FFMPEG, test "$have_ffmpeg" = yes)
have_audacious=no have_audacious=no
PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 3.5.0], have_audacious=yes, PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 3.5.0], have_audacious=yes,
[AC_MSG_WARN([Cannot find audacious >= 3.5.0 correctly installed - will not build Audacious plugin])] [AC_MSG_WARN([Cannot find audacious >= 3.5.0 correctly installed - will not build Audacious plugin])]
@ -55,6 +61,7 @@ then
CFLAGS="$CFLAGS -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-but-set-variable" CFLAGS="$CFLAGS -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-but-set-variable"
fi fi
#plugindir=`pkg-config audacious --define-variable=prefix="$prefix" --variable=plugin_dir`
plugindir=`pkg-config audacious --variable=plugin_dir` plugindir=`pkg-config audacious --variable=plugin_dir`
AC_SUBST(plugindir) AC_SUBST(plugindir)

View File

@ -23,7 +23,13 @@ AM_CFLAGS += -DVGM_USE_VORBIS
libvgmstream_la_LIBADD += $(VORBISFILE_LIBS) $(VORBIS_LIBS) libvgmstream_la_LIBADD += $(VORBISFILE_LIBS) $(VORBIS_LIBS)
endif endif
endif endif
if HAVE_LIBMPG123 if HAVE_LIBMPG123
AM_CFLAGS += -DVGM_USE_MPEG AM_CFLAGS += -DVGM_USE_MPEG
libvgmstream_la_LIBADD += $(MPG123_LIBS) libvgmstream_la_LIBADD += $(MPG123_LIBS)
endif endif
if HAVE_FFMPEG
AM_CFLAGS += -DVGM_USE_FFMPEG
libvgmstream_la_LIBADD += $(FFMPEG_LIBS)
endif

View File

@ -17,6 +17,11 @@ if HAVE_VORBISFILE
AM_CFLAGS += -DVGM_USE_VORBIS AM_CFLAGS += -DVGM_USE_VORBIS
endif endif
endif endif
if HAVE_LIBMPG123 if HAVE_LIBMPG123
AM_CFLAGS += -DVGM_USE_MPEG AM_CFLAGS += -DVGM_USE_MPEG
endif endif
if HAVE_FFMPEG
AM_CFLAGS += -DVGM_USE_FFMPEG
endif

View File

@ -17,6 +17,11 @@ if HAVE_VORBISFILE
AM_CFLAGS += -DVGM_USE_VORBIS AM_CFLAGS += -DVGM_USE_VORBIS
endif endif
endif endif
if HAVE_LIBMPG123 if HAVE_LIBMPG123
AM_CFLAGS += -DVGM_USE_MPEG AM_CFLAGS += -DVGM_USE_MPEG
endif endif
if HAVE_FFMPEG
AM_CFLAGS += -DVGM_USE_FFMPEG
endif

View File

@ -17,6 +17,11 @@ if HAVE_VORBISFILE
AM_CFLAGS += -DVGM_USE_VORBIS AM_CFLAGS += -DVGM_USE_VORBIS
endif endif
endif endif
if HAVE_LIBMPG123 if HAVE_LIBMPG123
AM_CFLAGS += -DVGM_USE_MPEG AM_CFLAGS += -DVGM_USE_MPEG
endif endif
if HAVE_FFMPEG
AM_CFLAGS += -DVGM_USE_FFMPEG
endif