2005-08-20 12:14:28 +00:00
|
|
|
lib_LTLIBRARIES = libgstcheck-@GST_MAJORMINOR@.la
|
|
|
|
|
2009-08-06 16:27:12 +00:00
|
|
|
SYMBOLS_FILE = exports.sym
|
|
|
|
|
2009-08-06 19:40:07 +00:00
|
|
|
BUILT_SOURCES = internal-check.h
|
|
|
|
|
2005-08-20 12:14:28 +00:00
|
|
|
libgstcheck_@GST_MAJORMINOR@_la_DEPENDENCIES = \
|
2009-08-06 16:27:12 +00:00
|
|
|
$(top_builddir)/gst/libgstreamer-@GST_MAJORMINOR@.la \
|
2009-07-19 16:04:58 +00:00
|
|
|
internal-check.h \
|
2009-08-06 16:27:12 +00:00
|
|
|
$(SYMBOLS_FILE)
|
2005-08-20 12:14:28 +00:00
|
|
|
libgstcheck_@GST_MAJORMINOR@_la_SOURCES = \
|
2006-07-21 15:48:04 +00:00
|
|
|
gstbufferstraw.c \
|
2009-07-13 07:22:06 +00:00
|
|
|
gstcheck.c \
|
|
|
|
gstconsistencychecker.c
|
2005-08-20 12:14:28 +00:00
|
|
|
|
2009-08-06 16:27:12 +00:00
|
|
|
libgstcheck_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS) \
|
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
|
|
|
|
libgstcheck_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS) \
|
|
|
|
$(top_builddir)/libs/gst/check/libcheck/libcheckinternal.la \
|
|
|
|
$(LIBM)
|
|
|
|
libgstcheck_@GST_MAJORMINOR@_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
|
|
|
|
|
|
|
libgstcheck_@GST_MAJORMINOR@includedir = \
|
|
|
|
$(includedir)/gstreamer-@GST_MAJORMINOR@/gst/check
|
|
|
|
|
2010-04-04 21:01:56 +00:00
|
|
|
libgstcheck_@GST_MAJORMINOR@include_HEADERS = \
|
2006-07-21 15:48:04 +00:00
|
|
|
gstbufferstraw.h \
|
2009-07-13 07:22:06 +00:00
|
|
|
gstcheck.h \
|
|
|
|
gstconsistencychecker.h
|
2006-07-01 23:26:06 +00:00
|
|
|
|
2010-04-04 21:01:56 +00:00
|
|
|
nodist_libgstcheck_@GST_MAJORMINOR@include_HEADERS = \
|
|
|
|
internal-check.h
|
|
|
|
|
2009-08-06 16:27:12 +00:00
|
|
|
CLEANFILES = *.gcno *.gcda *.gcov internal-check.h $(SYMBOLS_FILE)
|
|
|
|
|
|
|
|
internal-check.h: $(top_builddir)/libs/gst/check/libcheck/check.h
|
2010-02-26 15:03:47 +00:00
|
|
|
$(AM_V_GEN)cp $(top_builddir)/libs/gst/check/libcheck/check.h internal-check.h
|
2006-07-01 23:26:06 +00:00
|
|
|
|
|
|
|
%.c.gcov: .libs/libgstcheck_@GST_MAJORMINOR@_la-%.gcda %.c
|
|
|
|
$(GCOV) -b -f -o $^ > $@.out
|
|
|
|
|
|
|
|
gcov: $(libgstcheck_@GST_MAJORMINOR@_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 \
|
|
|
|
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 \
|
|
|
|
gst_check_message_error \
|
|
|
|
gst_check_run_suite \
|
|
|
|
gst_check_setup_element \
|
|
|
|
gst_check_setup_sink_pad \
|
|
|
|
gst_check_setup_sink_pad_by_name \
|
|
|
|
gst_check_setup_src_pad \
|
|
|
|
gst_check_setup_src_pad_by_name \
|
|
|
|
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 \
|
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 \
|
|
|
|
gst_consistency_checker_free
|
|
|
|
|
|
|
|
LIBGSTCHECK_EXPORTED_SYMBOLS = \
|
|
|
|
$(LIBGSTCHECK_EXPORTED_VARS) \
|
|
|
|
$(LIBGSTCHECK_EXPORTED_FUNCS)
|
|
|
|
|
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
|
|
|
|
|
|
|
$(SYMBOLS_FILE):
|
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
|
|
|
|
BUILT_GIRSOURCES = GstCheck-@GST_MAJORMINOR@.gir
|
|
|
|
|
2010-04-04 21:01:56 +00:00
|
|
|
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_MAJORMINOR@include_HEADERS)) \
|
|
|
|
$(patsubst %,$(builddir)/%, $(nodist_libgstcheck_@GST_MAJORMINOR@include_HEADERS))
|
2009-09-05 07:27:04 +00:00
|
|
|
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_MAJORMINOR@_la_SOURCES))
|
2010-04-04 21:01:56 +00:00
|
|
|
gir_cincludes=$(patsubst %,--c-include='gst/check/%',$(libgstcheck_@GST_MAJORMINOR@include_HEADERS)) \
|
|
|
|
$(patsubst %,--c-include='gst/check/%',$(nodist_libgstcheck_@GST_MAJORMINOR@include_HEADERS))
|
2009-09-05 07:27:04 +00:00
|
|
|
|
|
|
|
GstCheck-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_MAJORMINOR@.la
|
2010-08-31 17:40:44 +00:00
|
|
|
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
|
2011-04-16 09:45:16 +00:00
|
|
|
GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
|
2009-09-12 11:52:00 +00:00
|
|
|
$(INTROSPECTION_SCANNER) -v --namespace GstCheck \
|
2009-09-05 07:27:04 +00:00
|
|
|
--nsversion=@GST_MAJORMINOR@ \
|
2009-09-05 10:30:07 +00:00
|
|
|
--strip-prefix=Gst \
|
2011-11-10 12:50:23 +00:00
|
|
|
--warn-all \
|
2011-07-04 23:10:26 +00:00
|
|
|
-DGST_USE_UNSTABLE_API \
|
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 \
|
2009-09-05 07:27:04 +00:00
|
|
|
$(gir_cincludes) \
|
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 \
|
2011-02-22 13:11:59 +00:00
|
|
|
--library=$(top_builddir)/gst/libgstreamer-0.11.la \
|
2010-12-06 12:21:45 +00:00
|
|
|
--library=libgstcheck-0.11.la \
|
|
|
|
--include=Gst-0.11 \
|
2009-09-05 07:27:04 +00:00
|
|
|
--libtool="$(top_builddir)/libtool" \
|
2011-04-16 14:06:02 +00:00
|
|
|
--pkg gstreamer-@GST_MAJORMINOR@ \
|
|
|
|
--pkg-export gstreamer-check-@GST_MAJORMINOR@ \
|
2011-04-16 09:33:21 +00:00
|
|
|
--add-init-section="gst_init(NULL,NULL);" \
|
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
|