DEBIAN: Debianization
[glsdk/gstreamer0-10.git] / libs / gst / check / Makefile.am
1 lib_LTLIBRARIES = libgstcheck-@GST_MAJORMINOR@.la
3 SYMBOLS_FILE = exports.sym
5 BUILT_SOURCES = internal-check.h
7 libgstcheck_@GST_MAJORMINOR@_la_DEPENDENCIES = \
8         $(top_builddir)/gst/libgstreamer-@GST_MAJORMINOR@.la \
9         internal-check.h \
10         $(SYMBOLS_FILE)
11 libgstcheck_@GST_MAJORMINOR@_la_SOURCES =       \
12         gstbufferstraw.c                        \
13         gstcheck.c                              \
14         gstconsistencychecker.c
16 libgstcheck_@GST_MAJORMINOR@_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_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS) \
21         $(top_builddir)/libs/gst/check/libcheck/libcheckinternal.la \
22         $(LIBM)
23 libgstcheck_@GST_MAJORMINOR@_la_LDFLAGS = \
24         -export-symbols $(SYMBOLS_FILE) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
26 libgstcheck_@GST_MAJORMINOR@includedir =                \
27         $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/check
29 libgstcheck_@GST_MAJORMINOR@include_HEADERS =    \
30         gstbufferstraw.h                        \
31         gstcheck.h                              \
32         gstconsistencychecker.h
34 nodist_libgstcheck_@GST_MAJORMINOR@include_HEADERS =    \
35         internal-check.h        
37 CLEANFILES = *.gcno *.gcda *.gcov internal-check.h $(SYMBOLS_FILE)
39 internal-check.h: $(top_builddir)/libs/gst/check/libcheck/check.h
40         $(AM_V_GEN)cp $(top_builddir)/libs/gst/check/libcheck/check.h internal-check.h
42 %.c.gcov: .libs/libgstcheck_@GST_MAJORMINOR@_la-%.gcda %.c
43         $(GCOV) -b -f -o $^ > $@.out
45 gcov: $(libgstcheck_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
47 SUBDIRS = libcheck
49 LIBGSTCHECK_EXPORTED_VARS = \
50         _gst_check_threads_running \
51         _gst_check_raised_critical \
52         _gst_check_raised_warning \
53         _gst_check_expecting_log \
54         buffers \
55         check_cond \
56         check_debug \
57         check_mutex \
58         mutex \
59         start_cond \
60         sync_cond \
61         thread_list
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 \
68         gst_check_abi_list \
69         gst_check_caps_equal \
70         gst_check_chain_func \
71         gst_check_drop_buffers \
72         gst_check_element_push_buffer \
73         gst_check_element_push_buffer_list \
74         gst_check_init \
75         gst_check_message_error \
76         gst_check_run_suite \
77         gst_check_setup_element \
78         gst_check_setup_sink_pad \
79         gst_check_setup_sink_pad_by_name \
80         gst_check_setup_src_pad \
81         gst_check_setup_src_pad_by_name \
82         gst_check_teardown_element \
83         gst_check_teardown_pad_by_name \
84         gst_check_teardown_sink_pad \
85         gst_check_teardown_src_pad \
86         gst_consistency_checker_new \
87         gst_consistency_checker_reset \
88         gst_consistency_checker_free
90 LIBGSTCHECK_EXPORTED_SYMBOLS = \
91         $(LIBGSTCHECK_EXPORTED_VARS) \
92         $(LIBGSTCHECK_EXPORTED_FUNCS)
94 # Please do not even think about changing the alphabet below into A-Za-z.
95 # It is there for purpose. (Bug #602093)
96 CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in`
97 print-check-symbols:
98         @for s in $(CHECK_SYMS); do \
99           echo $$s; \
100         done;
102 $(SYMBOLS_FILE):
103         $(AM_V_GEN)rm -f $(SYMBOLS_FILE) 2>/dev/null; \
104         for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \
105           echo $$s >> $(SYMBOLS_FILE); \
106         done
108 if HAVE_INTROSPECTION
109 BUILT_GIRSOURCES = GstCheck-@GST_MAJORMINOR@.gir
111 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_MAJORMINOR@include_HEADERS)) \
112     $(patsubst %,$(builddir)/%, $(nodist_libgstcheck_@GST_MAJORMINOR@include_HEADERS))
113 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_MAJORMINOR@_la_SOURCES))
114 gir_cincludes=$(patsubst %,--c-include='gst/check/%',$(libgstcheck_@GST_MAJORMINOR@include_HEADERS)) \
115     $(patsubst %,--c-include='gst/check/%',$(nodist_libgstcheck_@GST_MAJORMINOR@include_HEADERS))
117 GstCheck-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_MAJORMINOR@.la
118         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
119                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
120                 $(INTROSPECTION_SCANNER) -v --namespace GstCheck \
121                 --nsversion=@GST_MAJORMINOR@ \
122                 --strip-prefix=Gst \
123                 -I$(top_srcdir) \
124                 -I$(top_srcdir)/libs \
125                 -I$(top_builddir) \
126                 -I$(top_builddir)/libs \
127                 $(gir_cincludes) \
128                 --add-include-path=$(top_builddir)/gst \
129                 --library-path=$(top_builddir)/gst \
130                 --library=$(top_builddir)/gst/libgstreamer-0.10.la \
131                 --library=libgstcheck-0.10.la \
132                 --include=Gst-0.10 \
133                 --libtool="$(top_builddir)/libtool" \
134                 --pkg gstreamer-0.10 \
135                 --pkg-export gstreamer-check-0.10 \
136                 --add-init-section="gst_init(NULL,NULL);" \
137                 --output $@ \
138                 $(gir_headers) \
139                 $(gir_sources)
141 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
142 # install anything - we need to install inside our prefix.
143 girdir = $(datadir)/gir-1.0
144 gir_DATA = $(BUILT_GIRSOURCES)
146 typelibsdir = $(libdir)/girepository-1.0/
148 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
150 %.typelib: %.gir $(INTROSPECTION_COMPILER)
151         $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
153 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
154 endif