mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
2d989fde7f
commit
d8f937790c
8 changed files with 696 additions and 1 deletions
|
@ -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>
|
2004-05-04 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
* libs/gst/bytestream/Makefile.am:
|
* libs/gst/bytestream/Makefile.am:
|
||||||
|
|
|
@ -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_CFLAGS, "$LIBGST_CFLAGS $GST_INT_CFLAGS")
|
||||||
AC_SUBST(GST_LIBS, "$LIBGST_LIBS $GST_INT_LIBS")
|
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")
|
AC_SUBST(GST_PLUGIN_LDFLAGS, "$GST_PLUGIN_LDFLAGS")
|
||||||
|
|
||||||
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
|
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
|
||||||
|
|
|
@ -5,6 +5,7 @@ tests_pass = \
|
||||||
app_fixate \
|
app_fixate \
|
||||||
intersection \
|
intersection \
|
||||||
compatibility \
|
compatibility \
|
||||||
|
deserialize \
|
||||||
normalisation \
|
normalisation \
|
||||||
union \
|
union \
|
||||||
string-conversions \
|
string-conversions \
|
||||||
|
@ -17,6 +18,7 @@ tests_pass = \
|
||||||
audioscale \
|
audioscale \
|
||||||
filtercaps \
|
filtercaps \
|
||||||
eratosthenes \
|
eratosthenes \
|
||||||
|
renegotiate \
|
||||||
subtract \
|
subtract \
|
||||||
sets \
|
sets \
|
||||||
simplify
|
simplify
|
||||||
|
@ -33,6 +35,8 @@ intersection_LDADD = $(GST_LIBS)
|
||||||
intersection_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
intersection_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
compatibility_LDADD = $(GST_LIBS)
|
compatibility_LDADD = $(GST_LIBS)
|
||||||
compatibility_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
compatibility_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
|
deserialize_LDADD = $(GST_LIBS)
|
||||||
|
deserialize_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
normalisation_LDADD = $(GST_LIBS)
|
normalisation_LDADD = $(GST_LIBS)
|
||||||
normalisation_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
normalisation_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
union_LDADD = $(GST_LIBS)
|
union_LDADD = $(GST_LIBS)
|
||||||
|
@ -53,4 +57,6 @@ sets_LDADD = $(GST_LIBS)
|
||||||
sets_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
sets_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
simplify_LDADD = $(GST_LIBS)
|
simplify_LDADD = $(GST_LIBS)
|
||||||
simplify_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
simplify_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
|
renegotiate_LDADD = $(GST_LIBS)
|
||||||
|
renegotiate_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
|
|
||||||
|
|
264
tests/old/testsuite/caps/caps_strings
Normal file
264
tests/old/testsuite/caps/caps_strings
Normal file
File diff suppressed because one or more lines are too long
73
tests/old/testsuite/caps/deserialize.c
Normal file
73
tests/old/testsuite/caps/deserialize.c
Normal 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;
|
||||||
|
}
|
|
@ -5,6 +5,7 @@ tests_pass = \
|
||||||
app_fixate \
|
app_fixate \
|
||||||
intersection \
|
intersection \
|
||||||
compatibility \
|
compatibility \
|
||||||
|
deserialize \
|
||||||
normalisation \
|
normalisation \
|
||||||
union \
|
union \
|
||||||
string-conversions \
|
string-conversions \
|
||||||
|
@ -17,6 +18,7 @@ tests_pass = \
|
||||||
audioscale \
|
audioscale \
|
||||||
filtercaps \
|
filtercaps \
|
||||||
eratosthenes \
|
eratosthenes \
|
||||||
|
renegotiate \
|
||||||
subtract \
|
subtract \
|
||||||
sets \
|
sets \
|
||||||
simplify
|
simplify
|
||||||
|
@ -33,6 +35,8 @@ intersection_LDADD = $(GST_LIBS)
|
||||||
intersection_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
intersection_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
compatibility_LDADD = $(GST_LIBS)
|
compatibility_LDADD = $(GST_LIBS)
|
||||||
compatibility_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
compatibility_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
|
deserialize_LDADD = $(GST_LIBS)
|
||||||
|
deserialize_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
normalisation_LDADD = $(GST_LIBS)
|
normalisation_LDADD = $(GST_LIBS)
|
||||||
normalisation_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
normalisation_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
union_LDADD = $(GST_LIBS)
|
union_LDADD = $(GST_LIBS)
|
||||||
|
@ -53,4 +57,6 @@ sets_LDADD = $(GST_LIBS)
|
||||||
sets_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
sets_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
simplify_LDADD = $(GST_LIBS)
|
simplify_LDADD = $(GST_LIBS)
|
||||||
simplify_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
simplify_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
|
renegotiate_LDADD = $(GST_LIBS)
|
||||||
|
renegotiate_CFLAGS = $(GST_CFLAGS) $(XML_CFLAGS)
|
||||||
|
|
||||||
|
|
264
testsuite/caps/caps_strings
Normal file
264
testsuite/caps/caps_strings
Normal file
File diff suppressed because one or more lines are too long
73
testsuite/caps/deserialize.c
Normal file
73
testsuite/caps/deserialize.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue