1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2 noinst_LTLIBRARIES = libcothreads.la
5 GSTARCH_SRCS = gstcpuid_i386.s
10 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
12 if GST_DISABLE_LOADSAVE
15 GST_LOADSAVE_SRC = gstxml.c
18 if GST_DISABLE_TYPEFIND
21 GST_TYPEFIND_SRC = gsttypefind.c
24 if GST_DISABLE_AUTOPLUG
28 GST_AUTOPLUG_SRC = gstautoplug.c
29 GST_AUTOPLUG_DIRS = autoplug
37 GST_PARSE_SRC = gstparse.c
38 GST_PARSE_DIRS = parse
39 GST_PARSE_LIBADD = parse/libgstparse.la
45 GST_TRACE_SRC = gsttrace.c
48 if GST_DISABLE_REGISTRY
53 GST_REGISTRY_SRC = gstregistry.c
54 GST_REGISTRY_DIRS = registries
55 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
58 if GST_DISABLE_ENUMTYPES
61 GST_ENUMTYPES_SRC = gstenumtypes.c
68 GST_INDEX_SRC = gstindex.c
69 GST_INDEX_DIRS = indexers
75 GST_PLUGIN_SRC = gstplugin.c
81 GST_URI_SRC = gsturi.c
84 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gsttypefind.c gstparse.c gstautoplug.c gsttrace.c
86 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . $(GST_AUTOPLUG_DIRS) elements schedulers types $(GST_INDEX_DIRS)
87 DIST_SUBDIRS = autoplug elements parse registries schedulers types indexers
89 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
92 $(GST_ENUMTYPES_SRC) \
98 gstbufferpool-default.c \
105 gstelementfactory.c \
128 $(GST_TYPEFIND_SRC) \
132 $(GST_REGISTRY_SRC) \
139 BUILT_SOURCES = gstversion.h gstconfig.h gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC)
141 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \
143 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
144 -DGST_CACHE_DIR=\""$(GST_CACHE_DIR)"\" \
145 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
146 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
147 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@
150 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
160 gstbufferpool-default.h \
206 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) $(built_headers)
215 # the compiler shoots cothreads.c in the head at -O6
216 libcothreads_la_SOURCES = cothreads.c
217 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS)
220 gstmarshal.h: gstmarshal.list
221 glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
222 mv gstmarshal.h.tmp gstmarshal.h
224 gstmarshal.c: gstmarshal.list
225 echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
226 echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
227 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
228 glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
229 mv gstmarshal.c.tmp gstmarshal.c
231 gstenumtypes.h: $(gst_headers)
233 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
234 --fprod "/* enumerations from \"@filename@\" */\n" \
235 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
236 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
239 gstenumtypes.c: $(gst_headers)
241 --fhead "#include <gst/gst.h>" \
242 --fprod "\n/* enumerations from \"@filename@\" */" \
243 --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[] = {" \
244 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
245 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
248 # Don't want the generated marshal files in the dist
250 rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
252 # Clean generated files
254 rm -f $(top_builddir)/gst/gstmarshal.c $(top_builddir)/gst/gstmarshal.h