configure.ac: Link plugins with libgstreamer and dependent libraries

Original commit message from CVS:
* configure.ac:  Link plugins with libgstreamer and dependent
libraries
* testsuite/caps/Makefile.am:
* testsuite/caps/caps_strings:
* testsuite/caps/deserialize.c: (main): Add a little test to slog
through a file of caps strings and test each one
This commit is contained in:
David Schleef 2004-05-04 01:58:36 +00:00
parent 2d989fde7f
commit d8f937790c
8 changed files with 696 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2004-05-03 David Schleef <ds@schleef.org>
* configure.ac: Link plugins with libgstreamer and dependent
libraries
* testsuite/caps/Makefile.am:
* testsuite/caps/caps_strings:
* testsuite/caps/deserialize.c: (main): Add a little test to slog
through a file of caps strings and test each one
2004-05-04 Benjamin Otte <otte@gnome.org>
* libs/gst/bytestream/Makefile.am:

View file

@ -582,7 +582,7 @@ GST_INT_CFLAGS="$GST_INT_CFLAGS -I\$(top_srcdir)/libs -I\$(top_srcdir)/include"
AC_SUBST(GST_CFLAGS, "$LIBGST_CFLAGS $GST_INT_CFLAGS")
AC_SUBST(GST_LIBS, "$LIBGST_LIBS $GST_INT_LIBS")
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* \$(top_builddir)/gst/libgstreamer-$GST_MAJORMINOR.la"
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* $GST_LIBS"
AC_SUBST(GST_PLUGIN_LDFLAGS, "$GST_PLUGIN_LDFLAGS")
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"

View file

@ -5,6 +5,7 @@ tests_pass = \
app_fixate \
intersection \
compatibility \
deserialize \
normalisation \
union \
string-conversions \
@ -17,6 +18,7 @@ tests_pass = \
audioscale \
filtercaps \
eratosthenes \
renegotiate \
subtract \
sets \
simplify
@ -33,6 +35,8 @@ intersection_LDADD = $(GST_LIBS)
intersection_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
compatibility_LDADD = $(GST_LIBS)
compatibility_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
deserialize_LDADD = $(GST_LIBS)
deserialize_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
normalisation_LDADD = $(GST_LIBS)
normalisation_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
union_LDADD = $(GST_LIBS)
@ -53,4 +57,6 @@ sets_LDADD = $(GST_LIBS)
sets_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
simplify_LDADD = $(GST_LIBS)
simplify_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
renegotiate_LDADD = $(GST_LIBS)
renegotiate_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,73 @@
#include <gst/gst.h>
#include <string.h>
/* The caps_strings file is created using:
*
* grep '^.caps' /home/ds/.gstreamer-0.8/registry.xml | \
* sed 's/^.caps.\(.*\)..caps.$/\1/' | awk '{print length($ln) " " $ln; }' | \
* sort -n | uniq | sed 's/^[^ ]* //' >caps_strings
*
*/
int
main (int argc, char *argv[])
{
const char *filename;
char *data;
char **list;
int i;
int length;
GstCaps *caps;
gst_init (&argc, &argv);
filename = "caps_strings";
if (argc > 1)
filename = argv[1];
if (!g_file_get_contents (filename, &data, &length, NULL)) {
abort ();
}
list = g_strsplit (data, "\n", 0);
for (i = 0; list[i] != NULL; i++) {
if (list[i][0] == 0)
continue;
caps = gst_caps_from_string (list[i]);
if (caps == NULL) {
char **list2;
int j;
g_print ("Could not parse: %s\n", list[i]);
g_print ("Trying each structure...\n");
list2 = g_strsplit (list[i], ";", 0);
for (j = 0; list2[j] != NULL; j++) {
caps = gst_caps_from_string (list2[j]);
if (caps == NULL) {
g_print ("Could not parse %s\n", list2[j]);
abort ();
}
gst_caps_free (caps);
}
g_print ("parsed each structure individually\n");
abort ();
}
gst_caps_free (caps);
g_free (list[i]);
}
g_free (list);
g_free (data);
return 0;
}

View file

@ -5,6 +5,7 @@ tests_pass = \
app_fixate \
intersection \
compatibility \
deserialize \
normalisation \
union \
string-conversions \
@ -17,6 +18,7 @@ tests_pass = \
audioscale \
filtercaps \
eratosthenes \
renegotiate \
subtract \
sets \
simplify
@ -33,6 +35,8 @@ intersection_LDADD = $(GST_LIBS)
intersection_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
compatibility_LDADD = $(GST_LIBS)
compatibility_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
deserialize_LDADD = $(GST_LIBS)
deserialize_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
normalisation_LDADD = $(GST_LIBS)
normalisation_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
union_LDADD = $(GST_LIBS)
@ -53,4 +57,6 @@ sets_LDADD = $(GST_LIBS)
sets_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
simplify_LDADD = $(GST_LIBS)
simplify_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
renegotiate_LDADD = $(GST_LIBS)
renegotiate_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)

264
testsuite/caps/caps_strings Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,73 @@
#include <gst/gst.h>
#include <string.h>
/* The caps_strings file is created using:
*
* grep '^.caps' /home/ds/.gstreamer-0.8/registry.xml | \
* sed 's/^.caps.\(.*\)..caps.$/\1/' | awk '{print length($ln) " " $ln; }' | \
* sort -n | uniq | sed 's/^[^ ]* //' >caps_strings
*
*/
int
main (int argc, char *argv[])
{
const char *filename;
char *data;
char **list;
int i;
int length;
GstCaps *caps;
gst_init (&argc, &argv);
filename = "caps_strings";
if (argc > 1)
filename = argv[1];
if (!g_file_get_contents (filename, &data, &length, NULL)) {
abort ();
}
list = g_strsplit (data, "\n", 0);
for (i = 0; list[i] != NULL; i++) {
if (list[i][0] == 0)
continue;
caps = gst_caps_from_string (list[i]);
if (caps == NULL) {
char **list2;
int j;
g_print ("Could not parse: %s\n", list[i]);
g_print ("Trying each structure...\n");
list2 = g_strsplit (list[i], ";", 0);
for (j = 0; list2[j] != NULL; j++) {
caps = gst_caps_from_string (list2[j]);
if (caps == NULL) {
g_print ("Could not parse %s\n", list2[j]);
abort ();
}
gst_caps_free (caps);
}
g_print ("parsed each structure individually\n");
abort ();
}
gst_caps_free (caps);
g_free (list[i]);
}
g_free (list);
g_free (data);
return 0;
}