audio: move testchannels example to 'tests/examples' dir

Also fix it up a little to not include 'c' file but link to the libs instead.
This commit is contained in:
Stefan Kost 2011-05-27 15:03:19 +03:00
parent 2b32faad91
commit 940291dd38
7 changed files with 12 additions and 9 deletions

View file

@ -1004,6 +1004,7 @@ tests/Makefile
tests/check/Makefile
tests/examples/Makefile
tests/examples/app/Makefile
tests/examples/audio/Makefile
tests/examples/dynamic/Makefile
tests/examples/encoding/Makefile
tests/examples/gio/Makefile

View file

@ -1,4 +1,4 @@
libgstaudio_la-multichannel-enumtypes.lo
audio-enumtypes.c
audio-enumtypes.h
testchannels

View file

@ -52,11 +52,6 @@ libgstaudio_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) \
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la
libgstaudio_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
noinst_PROGRAMS = testchannels
testchannels_SOURCES = testchannels.c
testchannels_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
testchannels_LDADD = $(GST_LIBS)
include $(top_srcdir)/common/gst-glib-gen.mak
if HAVE_INTROSPECTION

View file

@ -8,7 +8,7 @@ if USE_GIO
GIO_SUBDIRS = gio
endif
SUBDIRS = app dynamic $(FT2_SUBDIRS) $(GIO_SUBDIRS) overlay playrec volume v4l encoding
SUBDIRS = app audio dynamic $(FT2_SUBDIRS) $(GIO_SUBDIRS) overlay playrec volume v4l encoding
DIST_SUBDIRS = app dynamic gio overlay seek snapshot playrec volume v4l encoding

1
tests/examples/audio/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
testchannels

View file

@ -0,0 +1,6 @@
noinst_PROGRAMS = testchannels
testchannels_SOURCES = testchannels.c
testchannels_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
testchannels_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(GST_LIBS)

View file

@ -17,8 +17,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "multichannel.c"
#include "audio-enumtypes.c"
#include <gst/audio/multichannel.h>
#include <gst/audio/audio-enumtypes.h>
gint
main (gint argc, gchar * argv[])