validate: Move overrides and preload libraries to dedicated folders

This way it is cleaner and it is simpler to handle the various compilation dependencies.
This commit is contained in:
Thibault Saunier 2014-05-21 11:50:09 +02:00
parent 1043aa3f55
commit 1a2f4a3cd3
7 changed files with 37 additions and 40 deletions

View file

@ -268,6 +268,8 @@ common/m4/Makefile
data/Makefile data/Makefile
gst/Makefile gst/Makefile
gst/validate/Makefile gst/validate/Makefile
gst/preload/Makefile
gst/overrides/Makefile
pkgconfig/Makefile pkgconfig/Makefile
pkgconfig/gst-validate-uninstalled.pc pkgconfig/gst-validate-uninstalled.pc
pkgconfig/gst-validate.pc pkgconfig/gst-validate.pc

View file

@ -1 +1,5 @@
SUBDIRS = validate SUBDIRS = validate overrides
if HAVE_LD_PRELOAD
SUBDIRS += preload
endif

View file

@ -0,0 +1,14 @@
lib_LTLIBRARIES = libgstvalidate-default-overrides-@GST_API_VERSION@.la
libgstvalidate_default_overrides_@GST_API_VERSION@_la_SOURCES = \
gst-validate-default-overrides.c
libgstvalidate_default_overrides_@GST_API_VERSION@_la_CFLAGS = $(GST_ALL_CFLAGS) $(GIO_CFLAGS)
libgstvalidate_default_overrides_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \
$(GST_LT_LDFLAGS) $(GIO_LDFLAGS) $(top_builddir)/gst/validate/libgstvalidate-1.0.la
libgstvalidate_default_overrides_@GST_API_VERSION@_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) \
$(GST_ALL_LIBS) $(GIO_LIBS)
libgstvalidate_default_overrides_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/validate
libgstvalidate_default_overrides_@GST_API_VERSION@include_HEADERS =
CLEANFILES =

View file

@ -24,9 +24,9 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include "gst-validate-override.h" #include <gst/validate/gst-validate-override.h>
#include "gst-validate-override-registry.h" #include <gst/validate/gst-validate-override-registry.h>
#include "gst-validate-report.h" #include <gst/validate/gst-validate-report.h>
/* public symbol */ /* public symbol */
int gst_validate_create_overrides (void); int gst_validate_create_overrides (void);

View file

@ -0,0 +1,13 @@
libgstvalidate_preload_@GST_API_VERSION@_la_SOURCES = \
gst-validate-monitor-preload.c
libgstvalidate_preload_@GST_API_VERSION@_la_CFLAGS = $(GST_ALL_CFLAGS)
libgstvalidate_preload_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \
$(GST_LT_LDFLAGS) $(top_builddir)/gst/validate/libgstvalidate-1.0.la
libgstvalidate_preload_@GST_API_VERSION@_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) \
$(GST_ALL_LIBS)
libgstvalidate_preload_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/validate
libgstvalidate_preload_@GST_API_VERSION@include_HEADERS =
CLEANFILES =

View file

@ -41,12 +41,6 @@ libgstvalidate_@GST_API_VERSION@include_HEADERS = \
lib_LTLIBRARIES = libgstvalidate-@GST_API_VERSION@.la lib_LTLIBRARIES = libgstvalidate-@GST_API_VERSION@.la
if HAVE_LD_PRELOAD
lib_LTLIBRARIES += libgstvalidate-default-overrides-@GST_API_VERSION@.la \
libgstvalidate-preload-@GST_API_VERSION@.la
endif
libgstvalidate_@GST_API_VERSION@_la_CFLAGS = $(GST_ALL_CFLAGS) $(GIO_CFLAGS) $(GST_PBUTILS_CFLAGS) libgstvalidate_@GST_API_VERSION@_la_CFLAGS = $(GST_ALL_CFLAGS) $(GIO_CFLAGS) $(GST_PBUTILS_CFLAGS)
libgstvalidate_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \ libgstvalidate_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \
$(GST_LT_LDFLAGS) $(GIO_LDFLAGS) $(GST_PBUTILS_LDFAGS) $(GST_LT_LDFLAGS) $(GIO_LDFLAGS) $(GST_PBUTILS_LDFAGS)
@ -56,34 +50,4 @@ libgstvalidate_@GST_API_VERSION@_la_LIBADD = \
libgstvalidate_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/validate libgstvalidate_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/validate
if HAVE_LD_PRELOAD
libgstvalidate_default_overrides_@GST_API_VERSION@_la_SOURCES = \
gst-validate-default-overrides.c
libgstvalidate_default_overrides_@GST_API_VERSION@_la_CFLAGS = $(GST_ALL_CFLAGS) $(GIO_CFLAGS)
libgstvalidate_default_overrides_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \
$(GST_LT_LDFLAGS) $(GIO_LDFLAGS)
libgstvalidate_default_overrides_@GST_API_VERSION@_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) \
$(GST_ALL_LIBS) $(GIO_LIBS)
libgstvalidate_default_overrides_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/validate
libgstvalidate_default_overrides_@GST_API_VERSION@include_HEADERS =
libgstvalidate_preload_@GST_API_VERSION@_la_SOURCES = \
gst-validate-monitor-preload.c
libgstvalidate_preload_@GST_API_VERSION@_la_CFLAGS = $(GST_ALL_CFLAGS)
libgstvalidate_preload_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \
$(GST_LT_LDFLAGS)
libgstvalidate_preload_@GST_API_VERSION@_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) \
$(GST_ALL_LIBS)
libgstvalidate_preload_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/validate
libgstvalidate_preload_@GST_API_VERSION@include_HEADERS =
endif
#AM_CFLAGS = $(GST_ALL_CFLAGS) $(GST_PBUTILS_CFLAGS)
#LDADD = $(top_builddir)/gst/validate/libgstvalidate-@GST_API_VERSION@.la $(GST_PBUTILS_LIBS) $(GST_LIBS)
CLEANFILES = CLEANFILES =