mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-01 16:22:25 +00:00
d8e8e92176
This brings us up-to-speed with the latest compatibility code from upstream check git. For completeness, we do all the checks that upstream check does, but we skip the snprintf/vsnprintf code because it's not straightforward (involves running code and that is bad for cross-compilation) and not necessary for the platforms we support anyway. If someone really wants this, they can uncomment this and copy the relevant checks from the check git repository. https://bugzilla.gnome.org/show_bug.cgi?id=775870
99 lines
2 KiB
Makefile
99 lines
2 KiB
Makefile
noinst_LTLIBRARIES = libcheckinternal.la
|
|
|
|
EXTRA_DIST = check.h.in
|
|
|
|
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_str.c \
|
|
libcompat/libcompat.c
|
|
|
|
if !HAVE_ALARM
|
|
CFILES += libcompat/alarm.c
|
|
endif
|
|
|
|
if !HAVE_CLOCK_GETTIME
|
|
CFILES += libcompat/clock_gettime.c
|
|
endif
|
|
|
|
if !HAVE_GETTIMEOFDAY
|
|
CFILES += libcompat/gettimeofday.c
|
|
endif
|
|
|
|
if !HAVE_LOCALTIME_R
|
|
CFILES += libcompat/localtime_r.c
|
|
endif
|
|
|
|
if !HAVE_MALLOC
|
|
CFILES += libcompat/malloc.c
|
|
endif
|
|
|
|
if !HAVE_REALLOC
|
|
CFILES += libcompat/realloc.c
|
|
endif
|
|
|
|
if !HAVE_STRSIGNAL
|
|
CFILES += libcompat/strsignal.c
|
|
endif
|
|
|
|
# If either vsnprintf or snprintf is unavailable
|
|
# XXX: Commented out because none of our supported platforms need it yet and the
|
|
# check is a bit involved. No use slowing everyone down for this yet.
|
|
#if !HAVE_VSNPRINTF
|
|
#CFILES += libcompat/snprintf.c
|
|
#else
|
|
#if !HAVE_SNPRINTF
|
|
#CFILES += libcompat/snprintf.c
|
|
#endif
|
|
#endif
|
|
|
|
if !HAVE_STRDUP
|
|
CFILES += libcompat/strdup.c
|
|
endif
|
|
|
|
if !HAVE_GETLINE
|
|
CFILES += libcompat/getline.c
|
|
endif
|
|
|
|
if !HAVE_TIMER_CREATE_SETTIME_DELETE
|
|
CFILES +=\
|
|
libcompat/timer_create.c \
|
|
libcompat/timer_settime.c \
|
|
libcompat/timer_delete.c
|
|
endif
|
|
|
|
HFILES =\
|
|
check_error.h \
|
|
check_impl.h \
|
|
check_list.h \
|
|
check_log.h \
|
|
check_msg.h \
|
|
check_pack.h \
|
|
check_print.h \
|
|
check_str.h \
|
|
libcompat/libcompat.h
|
|
|
|
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)
|
|
else
|
|
libcheckinternal_la_CFLAGS += -D_GNU_SOURCE
|
|
endif
|
|
|
|
# Don't want libcompat to think we don't have these and substitute replacements
|
|
# See the commented-out vsnprintf/snprintf CFILES stuff above
|
|
libcheckinternal_la_CFLAGS += -DHAVE_SNPRINTF -DHAVE_VSNPRINTF
|