audio: move testchannels example to 'tests/examples' dir
authorStefan Kost <ensonic@users.sf.net>
Fri, 27 May 2011 12:03:19 +0000 (15:03 +0300)
committerStefan Kost <ensonic@users.sf.net>
Fri, 27 May 2011 12:09:25 +0000 (15:09 +0300)
Also fix it up a little to not include 'c' file but link to the libs instead.

configure.ac
gst-libs/gst/audio/.gitignore
gst-libs/gst/audio/Makefile.am
tests/examples/Makefile.am
tests/examples/audio/.gitignore [new file with mode: 0644]
tests/examples/audio/Makefile.am [new file with mode: 0644]
tests/examples/audio/testchannels.c [moved from gst-libs/gst/audio/testchannels.c with 95% similarity]

index 3ad974a..394d824 100644 (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
index 1b3d8d6..b8de70e 100644 (file)
@@ -1,4 +1,4 @@
 libgstaudio_la-multichannel-enumtypes.lo
 audio-enumtypes.c
 audio-enumtypes.h
-testchannels
+
index 7977f89..62f7b15 100644 (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
index 48c38a5..b78a06e 100644 (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
 
diff --git a/tests/examples/audio/.gitignore b/tests/examples/audio/.gitignore
new file mode 100644 (file)
index 0000000..d066146
--- /dev/null
@@ -0,0 +1 @@
+testchannels
diff --git a/tests/examples/audio/Makefile.am b/tests/examples/audio/Makefile.am
new file mode 100644 (file)
index 0000000..f4a844a
--- /dev/null
@@ -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)
+
similarity index 95%
rename from gst-libs/gst/audio/testchannels.c
rename to tests/examples/audio/testchannels.c
index 53ca51d..691bb58 100644 (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[])