2012-04-04 11:13:52 +00:00
|
|
|
lib_LTLIBRARIES = libgstcheck-@GST_API_VERSION@.la
|
2005-08-20 12:14:28 +00:00
|
|
|
|
2009-08-06 16:27:12 +00:00
|
|
|
SYMBOLS_FILE = exports.sym
|
|
|
|
|
2012-04-04 11:13:52 +00:00
|
|
|
libgstcheck_@GST_API_VERSION@_la_DEPENDENCIES = \
|
|
|
|
$(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la \
|
2009-08-06 16:27:12 +00:00
|
|
|
$(SYMBOLS_FILE)
|
2012-04-04 11:13:52 +00:00
|
|
|
libgstcheck_@GST_API_VERSION@_la_SOURCES = \
|
2006-07-21 15:48:04 +00:00
|
|
|
gstbufferstraw.c \
|
2009-07-13 07:22:06 +00:00
|
|
|
gstcheck.c \
|
2012-08-29 14:11:10 +00:00
|
|
|
gstconsistencychecker.c \
|
2013-12-16 09:47:47 +00:00
|
|
|
gstharness.c \
|
2012-08-29 14:11:10 +00:00
|
|
|
gsttestclock.c
|
2005-08-20 12:14:28 +00:00
|
|
|
|
2012-04-04 11:13:52 +00:00
|
|
|
libgstcheck_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) \
|
2014-04-12 18:48:15 +00:00
|
|
|
-UG_DISABLE_ASSERT \
|
2009-09-14 19:47:26 +00:00
|
|
|
-I$(top_builddir)/libs \
|
2009-08-06 16:27:12 +00:00
|
|
|
-I$(top_builddir)/libs/gst/check \
|
|
|
|
-I$(top_builddir)/libs/gst/check/libcheck
|
2012-04-04 11:13:52 +00:00
|
|
|
libgstcheck_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) \
|
2009-08-06 16:27:12 +00:00
|
|
|
$(top_builddir)/libs/gst/check/libcheck/libcheckinternal.la \
|
|
|
|
$(LIBM)
|
2012-04-04 11:13:52 +00:00
|
|
|
libgstcheck_@GST_API_VERSION@_la_LDFLAGS = \
|
2009-07-19 16:04:58 +00:00
|
|
|
-export-symbols $(SYMBOLS_FILE) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
2005-08-20 12:14:28 +00:00
|
|
|
|
2012-04-04 11:13:52 +00:00
|
|
|
libgstcheck_@GST_API_VERSION@includedir = \
|
|
|
|
$(includedir)/gstreamer-@GST_API_VERSION@/gst/check
|
2005-08-20 12:14:28 +00:00
|
|
|
|
2012-08-29 14:11:10 +00:00
|
|
|
libgstcheck_@GST_API_VERSION@include_HEADERS = \
|
2012-12-12 16:44:14 +00:00
|
|
|
check.h \
|
2006-07-21 15:48:04 +00:00
|
|
|
gstbufferstraw.h \
|
2009-07-13 07:22:06 +00:00
|
|
|
gstcheck.h \
|
2012-08-29 14:11:10 +00:00
|
|
|
gstconsistencychecker.h \
|
2013-12-16 09:47:47 +00:00
|
|
|
gstharness.h \
|
2012-08-29 14:11:10 +00:00
|
|
|
gsttestclock.h
|
2006-07-01 23:26:06 +00:00
|
|
|
|
2012-04-04 11:13:52 +00:00
|
|
|
nodist_libgstcheck_@GST_API_VERSION@include_HEADERS = \
|
2014-12-14 11:54:32 +00:00
|
|
|
internal-check.h
|
2009-08-06 16:27:12 +00:00
|
|
|
|
2014-12-14 11:54:32 +00:00
|
|
|
CLEANFILES = *.gcno *.gcda *.gcov $(SYMBOLS_FILE)
|
2006-07-01 23:26:06 +00:00
|
|
|
|
2012-04-04 11:13:52 +00:00
|
|
|
%.c.gcov: .libs/libgstcheck_@GST_API_VERSION@_la-%.gcda %.c
|
2006-07-01 23:26:06 +00:00
|
|
|
$(GCOV) -b -f -o $^ > $@.out
|
|
|
|
|
2012-04-04 11:13:52 +00:00
|
|
|
gcov: $(libgstcheck_@GST_API_VERSION@_la_SOURCES:=.gcov)
|
2009-08-06 16:27:12 +00:00
|
|
|
|
|
|
|
SUBDIRS = libcheck
|
|
|
|
|
2009-07-19 16:04:58 +00:00
|
|
|
LIBGSTCHECK_EXPORTED_VARS = \
|
|
|
|
_gst_check_threads_running \
|
2009-08-06 16:27:12 +00:00
|
|
|
_gst_check_raised_critical \
|
|
|
|
_gst_check_raised_warning \
|
2009-07-19 16:04:58 +00:00
|
|
|
_gst_check_expecting_log \
|
2016-12-16 18:14:29 +00:00
|
|
|
_gst_check_list_tests \
|
2009-07-19 16:04:58 +00:00
|
|
|
buffers \
|
|
|
|
check_cond \
|
|
|
|
check_debug \
|
|
|
|
check_mutex \
|
|
|
|
mutex \
|
|
|
|
start_cond \
|
|
|
|
sync_cond \
|
|
|
|
thread_list
|
|
|
|
|
|
|
|
LIBGSTCHECK_EXPORTED_FUNCS = \
|
2009-08-06 16:27:12 +00:00
|
|
|
_gst_check_run_test_func \
|
|
|
|
gst_buffer_straw_get_buffer \
|
|
|
|
gst_buffer_straw_start_pipeline \
|
|
|
|
gst_buffer_straw_stop_pipeline \
|
|
|
|
gst_check_abi_list \
|
|
|
|
gst_check_caps_equal \
|
2011-03-28 13:52:17 +00:00
|
|
|
gst_check_buffer_data \
|
2009-08-06 16:27:12 +00:00
|
|
|
gst_check_chain_func \
|
|
|
|
gst_check_drop_buffers \
|
|
|
|
gst_check_element_push_buffer \
|
|
|
|
gst_check_element_push_buffer_list \
|
|
|
|
gst_check_init \
|
2016-05-24 12:57:54 +00:00
|
|
|
gst_check_add_log_filter \
|
|
|
|
gst_check_remove_log_filter \
|
|
|
|
gst_check_clear_log_filter \
|
2009-08-06 16:27:12 +00:00
|
|
|
gst_check_message_error \
|
|
|
|
gst_check_run_suite \
|
|
|
|
gst_check_setup_element \
|
2013-05-09 21:17:14 +00:00
|
|
|
gst_check_setup_events \
|
2013-07-01 09:10:00 +00:00
|
|
|
gst_check_setup_events_with_stream_id \
|
2009-08-06 16:27:12 +00:00
|
|
|
gst_check_setup_sink_pad \
|
2014-04-15 10:58:59 +00:00
|
|
|
gst_check_setup_sink_pad_from_template \
|
2009-08-06 16:27:12 +00:00
|
|
|
gst_check_setup_sink_pad_by_name \
|
2014-04-16 05:59:27 +00:00
|
|
|
gst_check_setup_sink_pad_by_name_from_template \
|
2009-08-06 16:27:12 +00:00
|
|
|
gst_check_setup_src_pad \
|
2014-04-15 10:58:59 +00:00
|
|
|
gst_check_setup_src_pad_from_template \
|
2009-08-06 16:27:12 +00:00
|
|
|
gst_check_setup_src_pad_by_name \
|
2014-04-15 10:58:59 +00:00
|
|
|
gst_check_setup_src_pad_by_name_from_template \
|
2009-08-06 16:27:12 +00:00
|
|
|
gst_check_teardown_element \
|
|
|
|
gst_check_teardown_pad_by_name \
|
|
|
|
gst_check_teardown_sink_pad \
|
2009-07-19 16:04:58 +00:00
|
|
|
gst_check_teardown_src_pad \
|
2014-09-11 13:52:32 +00:00
|
|
|
gst_check_objects_destroyed_on_unref \
|
|
|
|
gst_check_object_destroyed_on_unref \
|
2012-03-05 00:34:36 +00:00
|
|
|
gst_consistency_checker_add_pad \
|
2009-07-19 16:04:58 +00:00
|
|
|
gst_consistency_checker_new \
|
|
|
|
gst_consistency_checker_reset \
|
2012-08-29 14:11:10 +00:00
|
|
|
gst_consistency_checker_free \
|
2015-12-09 02:43:38 +00:00
|
|
|
gst_harness_add_element_full \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_add_element_src_pad \
|
2015-12-09 02:43:38 +00:00
|
|
|
gst_harness_add_parse \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_add_probe \
|
|
|
|
gst_harness_add_sink \
|
2015-07-20 14:18:06 +00:00
|
|
|
gst_harness_add_sink_harness \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_add_sink_parse \
|
|
|
|
gst_harness_add_src \
|
2015-07-20 14:18:06 +00:00
|
|
|
gst_harness_add_src_harness \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_add_src_parse \
|
|
|
|
gst_harness_buffers_received \
|
|
|
|
gst_harness_buffers_in_queue \
|
|
|
|
gst_harness_crank_multiple_clock_waits \
|
|
|
|
gst_harness_crank_single_clock_wait \
|
|
|
|
gst_harness_create_buffer \
|
|
|
|
gst_harness_dump_to_file \
|
|
|
|
gst_harness_events_received \
|
|
|
|
gst_harness_events_in_queue \
|
|
|
|
gst_harness_find_element \
|
|
|
|
gst_harness_get \
|
|
|
|
gst_harness_get_allocator \
|
|
|
|
gst_harness_get_last_pushed_timestamp \
|
|
|
|
gst_harness_get_testclock \
|
|
|
|
gst_harness_new \
|
2015-12-09 02:43:38 +00:00
|
|
|
gst_harness_new_empty \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_new_full \
|
|
|
|
gst_harness_new_parse \
|
|
|
|
gst_harness_new_with_element \
|
|
|
|
gst_harness_new_with_padnames \
|
|
|
|
gst_harness_new_with_templates \
|
|
|
|
gst_harness_play \
|
|
|
|
gst_harness_pull \
|
|
|
|
gst_harness_pull_event \
|
|
|
|
gst_harness_pull_upstream_event \
|
|
|
|
gst_harness_push \
|
|
|
|
gst_harness_push_and_pull \
|
|
|
|
gst_harness_push_event \
|
|
|
|
gst_harness_push_from_src \
|
|
|
|
gst_harness_push_to_sink \
|
|
|
|
gst_harness_query_latency \
|
|
|
|
gst_harness_push_upstream_event \
|
|
|
|
gst_harness_set \
|
|
|
|
gst_harness_set_caps \
|
|
|
|
gst_harness_set_caps_str \
|
|
|
|
gst_harness_set_drop_buffers \
|
|
|
|
gst_harness_set_blocking_push_mode \
|
2015-07-23 22:41:57 +00:00
|
|
|
gst_harness_set_forwarding \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_set_propose_allocator \
|
|
|
|
gst_harness_set_sink_caps \
|
|
|
|
gst_harness_set_src_caps \
|
|
|
|
gst_harness_set_src_caps_str \
|
|
|
|
gst_harness_set_sink_caps_str \
|
|
|
|
gst_harness_set_time \
|
|
|
|
gst_harness_set_upstream_latency \
|
|
|
|
gst_harness_sink_push_many \
|
|
|
|
gst_harness_src_crank_and_push_many \
|
|
|
|
gst_harness_src_push_event \
|
|
|
|
gst_harness_stress_custom_start \
|
|
|
|
gst_harness_stress_property_start_full \
|
|
|
|
gst_harness_stress_push_buffer_start_full \
|
|
|
|
gst_harness_stress_push_buffer_with_cb_start_full \
|
|
|
|
gst_harness_stress_push_event_start_full \
|
2016-01-21 12:28:23 +00:00
|
|
|
gst_harness_stress_push_event_with_cb_start_full \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_stress_push_upstream_event_start_full \
|
2016-01-21 12:28:23 +00:00
|
|
|
gst_harness_stress_push_upstream_event_with_cb_start_full \
|
2013-12-16 09:47:47 +00:00
|
|
|
gst_harness_stress_requestpad_start_full \
|
|
|
|
gst_harness_stress_statechange_start_full \
|
|
|
|
gst_harness_stress_thread_stop \
|
|
|
|
gst_harness_teardown \
|
|
|
|
gst_harness_try_pull \
|
|
|
|
gst_harness_try_pull_event \
|
|
|
|
gst_harness_try_pull_upstream_event \
|
|
|
|
gst_harness_upstream_events_received \
|
|
|
|
gst_harness_upstream_events_in_queue \
|
|
|
|
gst_harness_use_systemclock \
|
|
|
|
gst_harness_use_testclock \
|
|
|
|
gst_harness_wait_for_clock_id_waits \
|
2016-01-14 20:54:42 +00:00
|
|
|
gst_test_clock_advance_time \
|
|
|
|
gst_test_clock_crank \
|
|
|
|
gst_test_clock_get_next_entry_time \
|
2012-08-29 14:11:10 +00:00
|
|
|
gst_test_clock_get_type \
|
2016-01-14 20:54:42 +00:00
|
|
|
gst_test_clock_has_id \
|
|
|
|
gst_test_clock_id_list_get_latest_time \
|
2012-08-29 14:11:10 +00:00
|
|
|
gst_test_clock_new \
|
|
|
|
gst_test_clock_new_with_start_time \
|
2012-08-29 23:58:41 +00:00
|
|
|
gst_test_clock_peek_id_count \
|
|
|
|
gst_test_clock_peek_next_pending_id \
|
2016-01-14 20:54:42 +00:00
|
|
|
gst_test_clock_process_id_list \
|
2012-08-29 23:58:41 +00:00
|
|
|
gst_test_clock_process_next_clock_id \
|
2016-01-14 20:54:42 +00:00
|
|
|
gst_test_clock_set_time \
|
2013-12-16 09:01:37 +00:00
|
|
|
gst_test_clock_wait_for_multiple_pending_ids \
|
2016-01-14 20:54:42 +00:00
|
|
|
gst_test_clock_wait_for_next_pending_id \
|
|
|
|
gst_test_clock_wait_for_pending_id_count
|
2013-12-16 09:01:37 +00:00
|
|
|
|
2015-01-21 17:07:09 +00:00
|
|
|
# For backwards compatibility with GStreamer < 1.5
|
|
|
|
LIBGSTCHECK_EXPORTED_COMPAT_FUNCS = \
|
|
|
|
_fail_unless
|
2009-07-19 16:04:58 +00:00
|
|
|
|
|
|
|
LIBGSTCHECK_EXPORTED_SYMBOLS = \
|
|
|
|
$(LIBGSTCHECK_EXPORTED_VARS) \
|
2015-01-21 17:07:09 +00:00
|
|
|
$(LIBGSTCHECK_EXPORTED_FUNCS) \
|
|
|
|
$(LIBGSTCHECK_EXPORTED_COMPAT_FUNCS)
|
2009-07-19 16:04:58 +00:00
|
|
|
|
2009-11-16 13:47:57 +00:00
|
|
|
# Please do not even think about changing the alphabet below into A-Za-z.
|
|
|
|
# It is there for purpose. (Bug #602093)
|
|
|
|
CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in`
|
2009-07-19 16:04:58 +00:00
|
|
|
print-check-symbols:
|
2010-02-26 15:03:47 +00:00
|
|
|
@for s in $(CHECK_SYMS); do \
|
2009-07-19 16:04:58 +00:00
|
|
|
echo $$s; \
|
|
|
|
done;
|
2009-08-06 16:27:12 +00:00
|
|
|
|
2014-12-14 11:54:32 +00:00
|
|
|
$(SYMBOLS_FILE): $(libgstcheck_@GST_API_VERSION@include_HEADERS) internal-check.h
|
2010-02-26 15:03:47 +00:00
|
|
|
$(AM_V_GEN)rm -f $(SYMBOLS_FILE) 2>/dev/null; \
|
2009-11-16 13:47:57 +00:00
|
|
|
for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \
|
2009-08-06 16:27:12 +00:00
|
|
|
echo $$s >> $(SYMBOLS_FILE); \
|
|
|
|
done
|
|
|
|
|
2009-09-05 07:27:04 +00:00
|
|
|
if HAVE_INTROSPECTION
|
2012-04-04 11:13:52 +00:00
|
|
|
BUILT_GIRSOURCES = GstCheck-@GST_API_VERSION@.gir
|
2009-09-05 07:27:04 +00:00
|
|
|
|
2013-08-14 05:21:06 +00:00
|
|
|
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@include_HEADERS))
|
2012-04-04 11:13:52 +00:00
|
|
|
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@_la_SOURCES))
|
2009-09-05 07:27:04 +00:00
|
|
|
|
2012-04-04 11:13:52 +00:00
|
|
|
GstCheck-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_API_VERSION@.la
|
2015-03-31 09:15:10 +00:00
|
|
|
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
|
2013-01-15 13:47:32 +00:00
|
|
|
GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \
|
2016-05-23 23:40:27 +00:00
|
|
|
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
|
2009-09-12 11:52:00 +00:00
|
|
|
$(INTROSPECTION_SCANNER) -v --namespace GstCheck \
|
2012-04-04 11:13:52 +00:00
|
|
|
--nsversion=@GST_API_VERSION@ \
|
2015-12-02 23:02:25 +00:00
|
|
|
--identifier-prefix=Gst \
|
|
|
|
--symbol-prefix=gst \
|
2011-11-10 12:50:23 +00:00
|
|
|
--warn-all \
|
2009-09-05 07:27:04 +00:00
|
|
|
-I$(top_srcdir) \
|
2010-12-07 12:19:10 +00:00
|
|
|
-I$(top_srcdir)/libs \
|
2010-12-11 09:10:04 +00:00
|
|
|
-I$(top_builddir) \
|
|
|
|
-I$(top_builddir)/libs \
|
2012-12-12 16:44:14 +00:00
|
|
|
--c-include "gst/check/check.h" \
|
2009-09-05 10:04:59 +00:00
|
|
|
--add-include-path=$(top_builddir)/gst \
|
2011-01-11 13:47:38 +00:00
|
|
|
--library-path=$(top_builddir)/gst \
|
2012-10-29 13:26:10 +00:00
|
|
|
--library=libgstcheck-@GST_API_VERSION@.la \
|
2012-04-04 11:13:52 +00:00
|
|
|
--include=Gst-@GST_API_VERSION@ \
|
2014-04-09 14:44:07 +00:00
|
|
|
--libtool="${LIBTOOL}" \
|
2012-04-04 11:13:52 +00:00
|
|
|
--pkg gstreamer-@GST_API_VERSION@ \
|
|
|
|
--pkg-export gstreamer-check-@GST_API_VERSION@ \
|
2015-06-16 22:08:24 +00:00
|
|
|
--add-init-section="$(INTROSPECTION_INIT)" \
|
2009-09-05 07:27:04 +00:00
|
|
|
--output $@ \
|
|
|
|
$(gir_headers) \
|
|
|
|
$(gir_sources)
|
|
|
|
|
|
|
|
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
|
|
|
|
# install anything - we need to install inside our prefix.
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = $(BUILT_GIRSOURCES)
|
|
|
|
|
|
|
|
typelibsdir = $(libdir)/girepository-1.0/
|
|
|
|
|
|
|
|
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
|
|
|
|
|
|
|
|
%.typelib: %.gir $(INTROSPECTION_COMPILER)
|
2010-02-26 15:03:47 +00:00
|
|
|
$(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
|
2009-09-05 07:27:04 +00:00
|
|
|
|
|
|
|
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
|
|
|
|
endif
|