summaryrefslogtreecommitdiff
path: root/libs/gst
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2014-12-14 12:54:32 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-12-16 16:32:39 +0100
commit0b09573bbec99a2474d5ff41e2cf1be8147ecd60 (patch)
treec31122d36ffd6a0fd54afb60e4410bde4ebcca80 /libs/gst
parenta8d665303757db75da32aebbd2a5d9716e9c528a (diff)
check: Have autotools generate internal-check.h
Previously GStreamer got access to the libcheck interface by including libs/gst/check/check.h which in turn included internal-check.h in the same directory. internal-check.h was generated by copying libs/gst/check/libcheck/check.h which in turn was generated from check.h.in in the same directory. In this case generating libs/gst/check/libcheck/check.h is unnecessary, in addition this file was accidentally distributed in generated project tarballs. Now libs/gst/check/internal-check.h is generated directly from libs/gst/check/libcheck/check.h.in by configure. This means that the libcheck source must include internal-check.h instead of the previously generated libs/gst/check/libcheck/check.h. However the unnecessary intermediate step is now skipped. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=741359
Diffstat (limited to 'libs/gst')
-rw-r--r--libs/gst/check/Makefile.am12
-rw-r--r--libs/gst/check/libcheck/Makefile.am11
-rw-r--r--libs/gst/check/libcheck/check.c2
-rw-r--r--libs/gst/check/libcheck/check_log.c2
-rw-r--r--libs/gst/check/libcheck/check_msg.c2
-rw-r--r--libs/gst/check/libcheck/check_pack.c2
-rw-r--r--libs/gst/check/libcheck/check_print.c2
-rw-r--r--libs/gst/check/libcheck/check_run.c2
-rw-r--r--libs/gst/check/libcheck/check_str.c2
9 files changed, 16 insertions, 21 deletions
diff --git a/libs/gst/check/Makefile.am b/libs/gst/check/Makefile.am
index 4adf53cd4..abc3b3ae8 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
-
-CLEANFILES = *.gcno *.gcda *.gcov internal-check.h $(SYMBOLS_FILE)
+ internal-check.h
-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 870007c09..dfa2062ad 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 7b8df8598..5a50d7d2f 100644
--- a/libs/gst/check/libcheck/check.c
+++ b/libs/gst/check/libcheck/check.c
@@ -26,7 +26,7 @@
#include <stdarg.h>
#include <math.h>
-#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 9f90b9c4b..ad5bb7955 100644
--- a/libs/gst/check/libcheck/check_log.c
+++ b/libs/gst/check/libcheck/check_log.c
@@ -22,7 +22,7 @@
#include <stdlib.h>
#include <stdio.h>
-#include <check.h>
+#include <internal-check.h>
#if ENABLE_SUBUNIT
#include <subunit/child.h>
#endif
diff --git a/libs/gst/check/libcheck/check_msg.c b/libs/gst/check/libcheck/check_msg.c
index acdd904f0..9213674bf 100644
--- a/libs/gst/check/libcheck/check_msg.c
+++ b/libs/gst/check/libcheck/check_msg.c
@@ -26,7 +26,7 @@
#include <stdio.h>
#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 9fdbc5b0c..5119dfc55 100644
--- a/libs/gst/check/libcheck/check_pack.c
+++ b/libs/gst/check/libcheck/check_pack.c
@@ -24,7 +24,7 @@
#include <string.h>
#include <stdio.h>
-#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 88bc16ba7..4c1a4adc6 100644
--- a/libs/gst/check/libcheck/check_print.c
+++ b/libs/gst/check/libcheck/check_print.c
@@ -24,7 +24,7 @@
#include <string.h>
#include <stdlib.h>
-#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 17abf873d..433b3658b 100644
--- a/libs/gst/check/libcheck/check_run.c
+++ b/libs/gst/check/libcheck/check_run.c
@@ -29,7 +29,7 @@
#include <signal.h>
#include <setjmp.h>
-#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 62b67233a..c1a18b7f0 100644
--- a/libs/gst/check/libcheck/check_str.c
+++ b/libs/gst/check/libcheck/check_str.c
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <stdarg.h>
-#include "check.h"
+#include "internal-check.h"
#include "check_list.h"
#include "check_error.h"
#include "check_impl.h"