1 lib_LTLIBRARIES = libgstreamer.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
27 GST_PARSE_SRC = gstparse.c
30 if GST_DISABLE_AUTOPLUG
34 GST_AUTOPLUG_SRC = gstautoplug.c
35 GST_AUTOPLUG_DIRS = autoplug
41 GST_TRACE_SRC = gsttrace.c
44 EXTRA_libgstreamer_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gsttypefind.c gstparse.c gstautoplug.c gsttrace.c
46 SUBDIRS = parse registries . $(GST_AUTOPLUG_DIRS) elements schedulers types
47 DIST_SUBDIRS = autoplug elements parse registries schedulers types
49 libcothreads_la_SOURCES = cothreads.c
50 libgstreamer_la_SOURCES = \
58 gstbufferpool-default.c \
90 BUILT_SOURCES = gstmarshal.h gstmarshal.c gstenumtypes.h gstenumtypes.c
92 gstmarshal.h: gstmarshal.list
93 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
94 mv gstmarshal.h.tmp gstmarshal.h
96 gstmarshal.c: gstmarshal.list
97 echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
98 echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
99 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
100 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
101 mv gstmarshal.c.tmp gstmarshal.c
105 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
106 --fprod "/* enumerations from \"@filename@\" */\n" \
107 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
108 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
109 $(libgstreamerinclude_HEADERS) > gstenumtypes.h
113 --fhead "#include <gst/gst.h>" \
114 --fprod "\n/* enumerations from \"@filename@\" */" \
115 --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[] = {" \
116 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
117 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
118 $(libgstreamerinclude_HEADERS) > gstenumtypes.c
120 # Don't want the generated marshal files in the dist
122 rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
123 # Clean generated files
125 rm -f $(top_builddir)/gst/gstmarshal.c $(top_builddir)/gst/gstmarshal.h
127 libgstreamerincludedir = $(includedir)/gstreamer-@VERSION@/gst
128 libgstreamerinclude_HEADERS = \
173 gstbufferpool-default.h
175 libgstreamer_la_CFLAGS = -D_GNU_SOURCE -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\" \
178 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
179 -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\"
181 # the compiler shoots cothreads.c in the head at -O6
182 libcothreads_la_CFLAGS = $(libgstreamer_la_CFLAGS) -O2
184 libgstreamer_la_LIBADD = $(LIBGST_LIBS) parse/libgstparse.la registries/libgstxmlregistry.la
185 libgstreamer_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@