1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2 AS_LIBTOOL_LIB = libgstreamer-@GST_MAJORMINOR@
3 if GST_DISABLE_OMEGA_COTHREADS
6 noinst_LTLIBRARIES = libcothreads.la
9 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
11 if GST_DISABLE_LOADSAVE
14 GST_LOADSAVE_SRC = gstxml.c
22 GST_PARSE_SRC = gstparse.c
23 GST_PARSE_DIRS = parse
24 GST_PARSE_LIBADD = parse/libgstparse.la
30 GST_TRACE_SRC = gsttrace.c
33 if GST_DISABLE_REGISTRY
38 GST_REGISTRY_SRC = gstregistry.c
39 GST_REGISTRY_DIRS = registries
40 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
43 if GST_DISABLE_ENUMTYPES
46 GST_ENUMTYPES_SRC = gstenumtypes.c
53 GST_INDEX_SRC = gstindex.c
54 GST_INDEX_DIRS = indexers
60 GST_PLUGIN_SRC = gstplugin.c
66 GST_URI_SRC = gsturi.c
69 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . elements schedulers $(GST_INDEX_DIRS)
70 DIST_SUBDIRS = autoplug elements parse registries schedulers indexers
72 # make variables for all generated source and header files to make the
75 built_header_configure = gstconfig.h gstversion.h
76 built_header_make = gstenumtypes.h gstmarshal.h
77 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
79 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
80 gstmarshal.list gstxml.c gstparse.c gsttrace.c
82 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
123 $(GST_REGISTRY_SRC) \
129 # do not put files in the distribution that are generated
130 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
132 # BUILT_SOURCES are built on make all/check/install before all other targets
134 $(built_header_configure) \
135 $(built_header_make) \
137 # CLEANFILES is for files generated by make
138 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
139 # DISTCLEANFILES is for files generated by configure
140 DISTCLEANFILES = $(built_header_configure)
142 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
145 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
146 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
147 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
148 $(GST_LIB_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
149 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
150 @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ \
151 -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* \
152 $(as_libtool_LDFLAGS)
154 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
204 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
205 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
206 $(built_header_configure) $(built_header_make)
218 if GST_DISABLE_OMEGA_COTHREADS
219 #libcothreads_la_SOURCES =
220 #libcothreads_la_CFLAGS =
222 libcothreads_la_SOURCES = cothreads.c
223 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS)
227 gstmarshal.h: gstmarshal.list
228 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
229 mv gstmarshal.h.tmp gstmarshal.h
231 gstmarshal.c: gstmarshal.list gst_private.h
232 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
233 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
234 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
235 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
236 mv gstmarshal.c.tmp gstmarshal.c
238 gstenumtypes.h: $(gst_headers)
240 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
241 --fprod "/* enumerations from \"@filename@\" */\n" \
242 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
243 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
246 gstenumtypes.c: $(gst_headers)
248 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
249 --fprod "\n/* enumerations from \"@filename@\" */" \
250 --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
251 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
252 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
255 noinst_DATA = $(as_libtool_noinst_DATA_files)
257 EXTRA_DIST = ROADMAP $(as_libtool_EXTRA_DIST)
259 install-data-local: as-libtool-install-data-local
261 uninstall-local: as-libtool-uninstall-local
263 include $(top_srcdir)/common/as-libtool.mak