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) . autoplug 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 = \
122 $(GST_REGISTRY_SRC) \
128 # do not put files in the distribution that are generated
129 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
131 # BUILT_SOURCES are built on make all/check/install before all other targets
133 $(built_header_configure) \
134 $(built_header_make) \
136 # CLEANFILES is for files generated by make
137 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
138 # DISTCLEANFILES is for files generated by configure
139 DISTCLEANFILES = $(built_header_configure)
141 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
144 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
145 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
146 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
147 $(GST_LIB_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
148 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
149 @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ \
150 -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* \
151 $(as_libtool_LDFLAGS)
153 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
202 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
203 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
204 $(built_header_configure) $(built_header_make)
216 if GST_DISABLE_OMEGA_COTHREADS
217 #libcothreads_la_SOURCES =
218 #libcothreads_la_CFLAGS =
220 libcothreads_la_SOURCES = cothreads.c
221 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS)
225 gstmarshal.h: gstmarshal.list
226 glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
227 mv gstmarshal.h.tmp gstmarshal.h
229 gstmarshal.c: gstmarshal.list
230 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
231 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
232 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
233 glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
234 mv gstmarshal.c.tmp gstmarshal.c
236 gstenumtypes.h: $(gst_headers)
238 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
239 --fprod "/* enumerations from \"@filename@\" */\n" \
240 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
241 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
244 gstenumtypes.c: $(gst_headers)
246 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
247 --fprod "\n/* enumerations from \"@filename@\" */" \
248 --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[] = {" \
249 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
250 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
253 noinst_DATA = $(as_libtool_noinst_DATA_files)
255 EXTRA_DIST = ROADMAP $(as_libtool_EXTRA_DIST)
257 install-data-local: as-libtool-install-data-local
259 uninstall-local: as-libtool-uninstall-local
261 include $(top_srcdir)/common/as-libtool.mak