diff --git a/configure.ac b/configure.ac index 24fac817a6..2c72da9d5b 100644 --- a/configure.ac +++ b/configure.ac @@ -781,7 +781,7 @@ libs/gst/Makefile libs/gst/base/Makefile libs/gst/check/Makefile libs/gst/check/libcheck/Makefile -libs/gst/check/libcheck/check.h +libs/gst/check/internal-check.h:libs/gst/check/libcheck/check.h.in libs/gst/controller/Makefile libs/gst/helpers/Makefile libs/gst/net/Makefile diff --git a/libs/gst/check/Makefile.am b/libs/gst/check/Makefile.am index 4adf53cd4f..abc3b3ae83 100644 --- a/libs/gst/check/Makefile.am +++ b/libs/gst/check/Makefile.am @@ -2,11 +2,8 @@ lib_LTLIBRARIES = libgstcheck-@GST_API_VERSION@.la SYMBOLS_FILE = exports.sym -BUILT_SOURCES = internal-check.h - libgstcheck_@GST_API_VERSION@_la_DEPENDENCIES = \ $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la \ - internal-check.h \ $(SYMBOLS_FILE) libgstcheck_@GST_API_VERSION@_la_SOURCES = \ gstbufferstraw.c \ @@ -35,12 +32,9 @@ libgstcheck_@GST_API_VERSION@include_HEADERS = \ gsttestclock.h nodist_libgstcheck_@GST_API_VERSION@include_HEADERS = \ - internal-check.h + internal-check.h -CLEANFILES = *.gcno *.gcda *.gcov internal-check.h $(SYMBOLS_FILE) - -internal-check.h: $(top_builddir)/libs/gst/check/libcheck/check.h - $(AM_V_GEN)cp $(top_builddir)/libs/gst/check/libcheck/check.h internal-check.h +CLEANFILES = *.gcno *.gcda *.gcov $(SYMBOLS_FILE) %.c.gcov: .libs/libgstcheck_@GST_API_VERSION@_la-%.gcda %.c $(GCOV) -b -f -o $^ > $@.out @@ -128,7 +122,7 @@ print-check-symbols: echo $$s; \ done; -$(SYMBOLS_FILE): $(libgstcheck_@GST_API_VERSION@include_HEADERS) libcheck/check.h +$(SYMBOLS_FILE): $(libgstcheck_@GST_API_VERSION@include_HEADERS) internal-check.h $(AM_V_GEN)rm -f $(SYMBOLS_FILE) 2>/dev/null; \ for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \ echo $$s >> $(SYMBOLS_FILE); \ diff --git a/libs/gst/check/libcheck/Makefile.am b/libs/gst/check/libcheck/Makefile.am index 870007c091..dfa2062ad6 100644 --- a/libs/gst/check/libcheck/Makefile.am +++ b/libs/gst/check/libcheck/Makefile.am @@ -34,7 +34,6 @@ CFILES +=\ endif HFILES =\ - check.h \ check_error.h \ check_impl.h \ check_list.h \ @@ -49,11 +48,13 @@ noinst_HEADERS = $(HFILES) libcheckinternal_la_SOURCES = $(CFILES) $(HFILES) +libcheckinternal_la_CFLAGS = -I$(top_builddir)/libs/gst/check +libcheckinternal_la_LIBADD = + # define HAVE_PTHREAD here as well so we keep changes to the code to a minimum if HAVE_PTHREAD -libcheckinternal_la_CFLAGS = $(PTHREAD_CFLAGS) -D_GNU_SOURCE -DHAVE_PTHREAD -libcheckinternal_la_LIBADD = $(PTHREAD_LIBS) +libcheckinternal_la_CFLAGS += $(PTHREAD_CFLAGS) -D_GNU_SOURCE -DHAVE_PTHREAD +libcheckinternal_la_LIBADD += $(PTHREAD_LIBS) else -libcheckinternal_la_CFLAGS = -D_GNU_SOURCE -libcheckinternal_la_LIBADD = +libcheckinternal_la_CFLAGS += -D_GNU_SOURCE endif diff --git a/libs/gst/check/libcheck/check.c b/libs/gst/check/libcheck/check.c index 7b8df85984..5a50d7d2fa 100644 --- a/libs/gst/check/libcheck/check.c +++ b/libs/gst/check/libcheck/check.c @@ -26,7 +26,7 @@ #include #include -#include "check.h" +#include "internal-check.h" #include "check_error.h" #include "check_list.h" #include "check_impl.h" diff --git a/libs/gst/check/libcheck/check_log.c b/libs/gst/check/libcheck/check_log.c index 9f90b9c4b6..ad5bb79556 100644 --- a/libs/gst/check/libcheck/check_log.c +++ b/libs/gst/check/libcheck/check_log.c @@ -22,7 +22,7 @@ #include #include -#include +#include #if ENABLE_SUBUNIT #include #endif diff --git a/libs/gst/check/libcheck/check_msg.c b/libs/gst/check/libcheck/check_msg.c index acdd904f05..9213674bf6 100644 --- a/libs/gst/check/libcheck/check_msg.c +++ b/libs/gst/check/libcheck/check_msg.c @@ -26,7 +26,7 @@ #include #include "check_error.h" -#include "check.h" +#include "internal-check.h" #include "check_list.h" #include "check_impl.h" #include "check_msg.h" diff --git a/libs/gst/check/libcheck/check_pack.c b/libs/gst/check/libcheck/check_pack.c index 9fdbc5b0c0..5119dfc55c 100644 --- a/libs/gst/check/libcheck/check_pack.c +++ b/libs/gst/check/libcheck/check_pack.c @@ -24,7 +24,7 @@ #include #include -#include "check.h" +#include "internal-check.h" #include "check_error.h" #include "check_list.h" #include "check_impl.h" diff --git a/libs/gst/check/libcheck/check_print.c b/libs/gst/check/libcheck/check_print.c index 88bc16ba7b..4c1a4adc66 100644 --- a/libs/gst/check/libcheck/check_print.c +++ b/libs/gst/check/libcheck/check_print.c @@ -24,7 +24,7 @@ #include #include -#include "check.h" +#include "internal-check.h" #include "check_list.h" #include "check_impl.h" #include "check_str.h" diff --git a/libs/gst/check/libcheck/check_run.c b/libs/gst/check/libcheck/check_run.c index 17abf873dc..433b3658b7 100644 --- a/libs/gst/check/libcheck/check_run.c +++ b/libs/gst/check/libcheck/check_run.c @@ -29,7 +29,7 @@ #include #include -#include "check.h" +#include "internal-check.h" #include "check_error.h" #include "check_list.h" #include "check_impl.h" diff --git a/libs/gst/check/libcheck/check_str.c b/libs/gst/check/libcheck/check_str.c index 62b67233a9..c1a18b7f03 100644 --- a/libs/gst/check/libcheck/check_str.c +++ b/libs/gst/check/libcheck/check_str.c @@ -23,7 +23,7 @@ #include #include -#include "check.h" +#include "internal-check.h" #include "check_list.h" #include "check_error.h" #include "check_impl.h"