2009-07-16 17:39:16 +00:00
|
|
|
noinst_LTLIBRARIES = libcheckinternal.la
|
|
|
|
|
2009-08-06 16:27:12 +00:00
|
|
|
EXTRA_DIST = check.h.in
|
2009-07-16 17:39:16 +00:00
|
|
|
|
|
|
|
CFILES =\
|
|
|
|
check.c \
|
|
|
|
check_error.c \
|
|
|
|
check_list.c \
|
|
|
|
check_log.c \
|
|
|
|
check_msg.c \
|
|
|
|
check_pack.c \
|
|
|
|
check_print.c \
|
|
|
|
check_run.c \
|
check: Apply GStreamer-specific patches
Reintroduced patches:
* Make sure that fail_if(1) actually fails
from commit 9f99d056a263e71a5e6181224829def906cf0226
New patches due to updated libcheck (based on 0.9.14):
* Checks in m4/check-checks.m4 to cater for new dependencies
* Conditional compile-time compat POSIX fallbacks for libcheck
* Avoid relative paths for libcheck header files
* Make timer_create() usage depend on posix timers, not librt
* Rely on default AX_PTHREAD behavior to allow HAVE_PTHREAD to be used
when checking for types and functions (like clock_gettime())
* Avoid double declaration of clock_gettime() when availabe outside of
librt by making compat clock_gettime() declaration conditional
* check 0.9.9 renamed _fail_unless() and 0.9.12 later renamed it again
to _ck_assert_failed(), so ASSERT_{CRITICAL,WARNING}() now calls this
function
* Remove libcheck fallback infrastructure for malloc(), realloc(),
gettimeofday() and snprintf() since either they appear to be
available or they introduce even more dependencies.
The result is an embedded check in gstreamer that has been tested by
running check tests in core, -base, -good, -bad, -ugly and rtsp-server
on Linux, OSX and Windows.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
2014-11-15 12:26:47 +00:00
|
|
|
check_str.c \
|
|
|
|
libcompat.c
|
|
|
|
|
|
|
|
if !HAVE_ALARM
|
|
|
|
CFILES += alarm.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !HAVE_CLOCK_GETTIME
|
|
|
|
CFILES += clock_gettime.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !HAVE_STRSIGNAL
|
|
|
|
CFILES += strsignal.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !HAVE_TIMER_CREATE_SETTIME_DELETE
|
|
|
|
CFILES +=\
|
|
|
|
timer_create.c \
|
|
|
|
timer_settime.c \
|
|
|
|
timer_delete.c
|
|
|
|
endif
|
2009-07-16 17:39:16 +00:00
|
|
|
|
|
|
|
HFILES =\
|
|
|
|
check_error.h \
|
|
|
|
check_impl.h \
|
|
|
|
check_list.h \
|
|
|
|
check_log.h \
|
|
|
|
check_msg.h \
|
|
|
|
check_pack.h \
|
|
|
|
check_print.h \
|
check: Apply GStreamer-specific patches
Reintroduced patches:
* Make sure that fail_if(1) actually fails
from commit 9f99d056a263e71a5e6181224829def906cf0226
New patches due to updated libcheck (based on 0.9.14):
* Checks in m4/check-checks.m4 to cater for new dependencies
* Conditional compile-time compat POSIX fallbacks for libcheck
* Avoid relative paths for libcheck header files
* Make timer_create() usage depend on posix timers, not librt
* Rely on default AX_PTHREAD behavior to allow HAVE_PTHREAD to be used
when checking for types and functions (like clock_gettime())
* Avoid double declaration of clock_gettime() when availabe outside of
librt by making compat clock_gettime() declaration conditional
* check 0.9.9 renamed _fail_unless() and 0.9.12 later renamed it again
to _ck_assert_failed(), so ASSERT_{CRITICAL,WARNING}() now calls this
function
* Remove libcheck fallback infrastructure for malloc(), realloc(),
gettimeofday() and snprintf() since either they appear to be
available or they introduce even more dependencies.
The result is an embedded check in gstreamer that has been tested by
running check tests in core, -base, -good, -bad, -ugly and rtsp-server
on Linux, OSX and Windows.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
2014-11-15 12:26:47 +00:00
|
|
|
check_str.h \
|
|
|
|
libcompat.h
|
2009-07-16 17:39:16 +00:00
|
|
|
|
|
|
|
noinst_HEADERS = $(HFILES)
|
|
|
|
|
|
|
|
libcheckinternal_la_SOURCES = $(CFILES) $(HFILES)
|
|
|
|
|
2014-12-14 11:54:32 +00:00
|
|
|
libcheckinternal_la_CFLAGS = -I$(top_builddir)/libs/gst/check
|
|
|
|
libcheckinternal_la_LIBADD =
|
|
|
|
|
2009-12-18 21:26:01 +00:00
|
|
|
# define HAVE_PTHREAD here as well so we keep changes to the code to a minimum
|
2012-10-22 13:04:26 +00:00
|
|
|
if HAVE_PTHREAD
|
2014-12-14 11:54:32 +00:00
|
|
|
libcheckinternal_la_CFLAGS += $(PTHREAD_CFLAGS) -D_GNU_SOURCE -DHAVE_PTHREAD
|
|
|
|
libcheckinternal_la_LIBADD += $(PTHREAD_LIBS)
|
2009-12-18 21:26:01 +00:00
|
|
|
else
|
2014-12-14 11:54:32 +00:00
|
|
|
libcheckinternal_la_CFLAGS += -D_GNU_SOURCE
|
2009-12-18 21:26:01 +00:00
|
|
|
endif
|