1 lib_LTLIBRARIES = libgstcheck-@GST_API_VERSION@.la
3 SYMBOLS_FILE = exports.sym
5 BUILT_SOURCES = internal-check.h
7 libgstcheck_@GST_API_VERSION@_la_DEPENDENCIES = \
8 $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la \
11 libgstcheck_@GST_API_VERSION@_la_SOURCES = \
14 gstconsistencychecker.c \
17 libgstcheck_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) \
18 -I$(top_builddir)/libs \
19 -I$(top_builddir)/libs/gst/check \
20 -I$(top_builddir)/libs/gst/check/libcheck
21 libgstcheck_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) \
22 $(top_builddir)/libs/gst/check/libcheck/libcheckinternal.la \
24 libgstcheck_@GST_API_VERSION@_la_LDFLAGS = \
25 -export-symbols $(SYMBOLS_FILE) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
27 libgstcheck_@GST_API_VERSION@includedir = \
28 $(includedir)/gstreamer-@GST_API_VERSION@/gst/check
30 libgstcheck_@GST_API_VERSION@include_HEADERS = \
34 gstconsistencychecker.h \
37 nodist_libgstcheck_@GST_API_VERSION@include_HEADERS = \
40 CLEANFILES = *.gcno *.gcda *.gcov internal-check.h $(SYMBOLS_FILE)
42 internal-check.h: $(top_builddir)/libs/gst/check/libcheck/check.h
43 $(AM_V_GEN)cp $(top_builddir)/libs/gst/check/libcheck/check.h internal-check.h
45 %.c.gcov: .libs/libgstcheck_@GST_API_VERSION@_la-%.gcda %.c
46 $(GCOV) -b -f -o $^ > $@.out
48 gcov: $(libgstcheck_@GST_API_VERSION@_la_SOURCES:=.gcov)
52 LIBGSTCHECK_EXPORTED_VARS = \
53 _gst_check_threads_running \
54 _gst_check_raised_critical \
55 _gst_check_raised_warning \
56 _gst_check_expecting_log \
66 LIBGSTCHECK_EXPORTED_FUNCS = \
67 _gst_check_run_test_func \
68 gst_buffer_straw_get_buffer \
69 gst_buffer_straw_start_pipeline \
70 gst_buffer_straw_stop_pipeline \
72 gst_check_caps_equal \
73 gst_check_buffer_data \
74 gst_check_chain_func \
75 gst_check_drop_buffers \
76 gst_check_element_push_buffer \
77 gst_check_element_push_buffer_list \
79 gst_check_message_error \
81 gst_check_setup_element \
82 gst_check_setup_events \
83 gst_check_setup_events_with_stream_id \
84 gst_check_setup_sink_pad \
85 gst_check_setup_sink_pad_from_template \
86 gst_check_setup_sink_pad_by_name \
87 gst_check_setup_sink_pad_by_name_from_template \
88 gst_check_setup_src_pad \
89 gst_check_setup_src_pad_from_template \
90 gst_check_setup_src_pad_by_name \
91 gst_check_setup_src_pad_by_name_from_template \
92 gst_check_teardown_element \
93 gst_check_teardown_pad_by_name \
94 gst_check_teardown_sink_pad \
95 gst_check_teardown_src_pad \
96 gst_consistency_checker_add_pad \
97 gst_consistency_checker_new \
98 gst_consistency_checker_reset \
99 gst_consistency_checker_free \
100 gst_test_clock_get_type \
102 gst_test_clock_new_with_start_time \
103 gst_test_clock_set_time \
104 gst_test_clock_advance_time \
105 gst_test_clock_peek_id_count \
106 gst_test_clock_has_id \
107 gst_test_clock_peek_next_pending_id \
108 gst_test_clock_wait_for_next_pending_id \
109 gst_test_clock_wait_for_pending_id_count \
110 gst_test_clock_process_next_clock_id \
111 gst_test_clock_get_next_entry_time \
112 gst_test_clock_wait_for_multiple_pending_ids \
113 gst_test_clock_process_id_list \
114 gst_test_clock_id_list_get_latest_time
117 LIBGSTCHECK_EXPORTED_SYMBOLS = \
118 $(LIBGSTCHECK_EXPORTED_VARS) \
119 $(LIBGSTCHECK_EXPORTED_FUNCS)
121 # Please do not even think about changing the alphabet below into A-Za-z.
122 # It is there for purpose. (Bug #602093)
123 CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in`
125 @for s in $(CHECK_SYMS); do \
129 $(SYMBOLS_FILE): $(libgstcheck_@GST_API_VERSION@include_HEADERS) libcheck/check.h
130 $(AM_V_GEN)rm -f $(SYMBOLS_FILE) 2>/dev/null; \
131 for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \
132 echo $$s >> $(SYMBOLS_FILE); \
135 if HAVE_INTROSPECTION
136 BUILT_GIRSOURCES = GstCheck-@GST_API_VERSION@.gir
138 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@include_HEADERS))
139 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_API_VERSION@_la_SOURCES))
141 GstCheck-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_API_VERSION@.la
142 $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
143 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \
144 $(INTROSPECTION_SCANNER) -v --namespace GstCheck \
145 --nsversion=@GST_API_VERSION@ \
149 -I$(top_srcdir)/libs \
151 -I$(top_builddir)/libs \
152 --c-include "gst/check/check.h" \
153 --add-include-path=$(top_builddir)/gst \
154 --library-path=$(top_builddir)/gst \
155 --library=libgstcheck-@GST_API_VERSION@.la \
156 --include=Gst-@GST_API_VERSION@ \
157 --libtool="$(top_builddir)/libtool" \
158 --pkg gstreamer-@GST_API_VERSION@ \
159 --pkg-export gstreamer-check-@GST_API_VERSION@ \
160 --add-init-section="gst_init(NULL,NULL);" \
165 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
166 # install anything - we need to install inside our prefix.
167 girdir = $(datadir)/gir-1.0
168 gir_DATA = $(BUILT_GIRSOURCES)
170 typelibsdir = $(libdir)/girepository-1.0/
172 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
174 %.typelib: %.gir $(INTROSPECTION_COMPILER)
175 $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
177 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)