1 lib_LTLIBRARIES = libgstcheck-@GST_API_VERSION@.la
3 SYMBOLS_FILE = exports.sym
5 libgstcheck_@GST_API_VERSION@_la_DEPENDENCIES = \
6 $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la \
8 libgstcheck_@GST_API_VERSION@_la_SOURCES = \
11 gstconsistencychecker.c \
15 libgstcheck_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) \
17 -I$(top_builddir)/libs \
18 -I$(top_builddir)/libs/gst/check \
19 -I$(top_builddir)/libs/gst/check/libcheck
20 libgstcheck_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) \
21 $(top_builddir)/libs/gst/check/libcheck/libcheckinternal.la \
23 libgstcheck_@GST_API_VERSION@_la_LDFLAGS = \
24 -export-symbols $(SYMBOLS_FILE) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
26 libgstcheck_@GST_API_VERSION@includedir = \
27 $(includedir)/gstreamer-@GST_API_VERSION@/gst/check
29 libgstcheck_@GST_API_VERSION@include_HEADERS = \
33 gstconsistencychecker.h \
37 nodist_libgstcheck_@GST_API_VERSION@include_HEADERS = \
40 CLEANFILES = *.gcno *.gcda *.gcov $(SYMBOLS_FILE)
42 %.c.gcov: .libs/libgstcheck_@GST_API_VERSION@_la-%.gcda %.c
43 $(GCOV) -b -f -o $^ > $@.out
45 gcov: $(libgstcheck_@GST_API_VERSION@_la_SOURCES:=.gcov)
49 LIBGSTCHECK_EXPORTED_VARS = \
50 _gst_check_threads_running \
51 _gst_check_raised_critical \
52 _gst_check_raised_warning \
53 _gst_check_expecting_log \
63 LIBGSTCHECK_EXPORTED_FUNCS = \
64 _gst_check_run_test_func \
65 gst_buffer_straw_get_buffer \
66 gst_buffer_straw_start_pipeline \
67 gst_buffer_straw_stop_pipeline \
69 gst_check_caps_equal \
70 gst_check_buffer_data \
71 gst_check_chain_func \
72 gst_check_drop_buffers \
73 gst_check_element_push_buffer \
74 gst_check_element_push_buffer_list \
76 gst_check_message_error \
78 gst_check_setup_element \
79 gst_check_setup_events \
80 gst_check_setup_events_with_stream_id \
81 gst_check_setup_sink_pad \
82 gst_check_setup_sink_pad_from_template \
83 gst_check_setup_sink_pad_by_name \
84 gst_check_setup_sink_pad_by_name_from_template \
85 gst_check_setup_src_pad \
86 gst_check_setup_src_pad_from_template \
87 gst_check_setup_src_pad_by_name \
88 gst_check_setup_src_pad_by_name_from_template \
89 gst_check_teardown_element \
90 gst_check_teardown_pad_by_name \
91 gst_check_teardown_sink_pad \
92 gst_check_teardown_src_pad \
93 gst_check_objects_destroyed_on_unref \
94 gst_check_object_destroyed_on_unref \
95 gst_consistency_checker_add_pad \
96 gst_consistency_checker_new \
97 gst_consistency_checker_reset \
98 gst_consistency_checker_free \
99 gst_harness_add_element_src_pad \
100 gst_harness_add_probe \
101 gst_harness_add_sink \
102 gst_harness_add_sink_parse \
103 gst_harness_add_src \
104 gst_harness_add_src_parse \
105 gst_harness_buffers_received \
106 gst_harness_buffers_in_queue \
107 gst_harness_crank_multiple_clock_waits \
108 gst_harness_crank_single_clock_wait \
109 gst_harness_create_buffer \
110 gst_harness_dump_to_file \
111 gst_harness_events_received \
112 gst_harness_events_in_queue \
113 gst_harness_find_element \
115 gst_harness_get_allocator \
116 gst_harness_get_last_pushed_timestamp \
117 gst_harness_get_testclock \
119 gst_harness_new_full \
120 gst_harness_new_parse \
121 gst_harness_new_with_element \
122 gst_harness_new_with_padnames \
123 gst_harness_new_with_templates \
126 gst_harness_pull_event \
127 gst_harness_pull_upstream_event \
129 gst_harness_push_and_pull \
130 gst_harness_push_event \
131 gst_harness_push_from_src \
132 gst_harness_push_to_sink \
133 gst_harness_query_latency \
134 gst_harness_push_upstream_event \
136 gst_harness_set_caps \
137 gst_harness_set_caps_str \
138 gst_harness_set_drop_buffers \
139 gst_harness_set_blocking_push_mode \
140 gst_harness_set_propose_allocator \
141 gst_harness_set_sink_caps \
142 gst_harness_set_src_caps \
143 gst_harness_set_src_caps_str \
144 gst_harness_set_sink_caps_str \
145 gst_harness_set_time \
146 gst_harness_set_upstream_latency \
147 gst_harness_sink_push_many \
148 gst_harness_src_crank_and_push_many \
149 gst_harness_src_push_event \
150 gst_harness_stress_custom_start \
151 gst_harness_stress_property_start_full \
152 gst_harness_stress_push_buffer_start_full \
153 gst_harness_stress_push_buffer_with_cb_start_full \
154 gst_harness_stress_push_event_start_full \
155 gst_harness_stress_push_upstream_event_start_full \
156 gst_harness_stress_requestpad_start_full \
157 gst_harness_stress_statechange_start_full \
158 gst_harness_stress_thread_stop \
159 gst_harness_teardown \
160 gst_harness_try_pull \
161 gst_harness_try_pull_event \
162 gst_harness_try_pull_upstream_event \
163 gst_harness_upstream_events_received \
164 gst_harness_upstream_events_in_queue \
165 gst_harness_use_systemclock \
166 gst_harness_use_testclock \
167 gst_harness_wait_for_clock_id_waits \
168 gst_test_clock_get_type \
170 gst_test_clock_new_with_start_time \
171 gst_test_clock_set_time \
172 gst_test_clock_advance_time \
173 gst_test_clock_peek_id_count \
174 gst_test_clock_has_id \
175 gst_test_clock_peek_next_pending_id \
176 gst_test_clock_wait_for_next_pending_id \
177 gst_test_clock_wait_for_pending_id_count \
178 gst_test_clock_process_next_clock_id \
179 gst_test_clock_get_next_entry_time \
180 gst_test_clock_wait_for_multiple_pending_ids \
181 gst_test_clock_process_id_list \
182 gst_test_clock_id_list_get_latest_time
184 # For backwards compatibility with GStreamer < 1.5
185 LIBGSTCHECK_EXPORTED_COMPAT_FUNCS = \
188 LIBGSTCHECK_EXPORTED_SYMBOLS = \
189 $(LIBGSTCHECK_EXPORTED_VARS) \
190 $(LIBGSTCHECK_EXPORTED_FUNCS) \
191 $(LIBGSTCHECK_EXPORTED_COMPAT_FUNCS)
193 # Please do not even think about changing the alphabet below into A-Za-z.
194 # It is there for purpose. (Bug #602093)
195 CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in`
197 @for s in $(CHECK_SYMS); do \
201 $(SYMBOLS_FILE): $(libgstcheck_@GST_API_VERSION@include_HEADERS) internal-check.h
202 $(AM_V_GEN)rm -f $(SYMBOLS_FILE) 2>/dev/null; \
203 for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \
204 echo $$s >> $(SYMBOLS_FILE); \
207 if HAVE_INTROSPECTION
208 BUILT_GIRSOURCES = GstCheck-@GST_API_VERSION@.gir
210 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@include_HEADERS))
211 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@_la_SOURCES))
213 GstCheck-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_API_VERSION@.la
214 $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
215 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \
216 $(INTROSPECTION_SCANNER) -v --namespace GstCheck \
217 --nsversion=@GST_API_VERSION@ \
221 -I$(top_srcdir)/libs \
223 -I$(top_builddir)/libs \
224 --c-include "gst/check/check.h" \
225 --add-include-path=$(top_builddir)/gst \
226 --library-path=$(top_builddir)/gst \
227 --library=libgstcheck-@GST_API_VERSION@.la \
228 --include=Gst-@GST_API_VERSION@ \
229 --libtool="${LIBTOOL}" \
230 --pkg gstreamer-@GST_API_VERSION@ \
231 --pkg-export gstreamer-check-@GST_API_VERSION@ \
232 --add-init-section="$(INTROSPECTION_INIT)" \
237 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
238 # install anything - we need to install inside our prefix.
239 girdir = $(datadir)/gir-1.0
240 gir_DATA = $(BUILT_GIRSOURCES)
242 typelibsdir = $(libdir)/girepository-1.0/
244 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
246 %.typelib: %.gir $(INTROSPECTION_COMPILER)
247 $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
249 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)