Makefile.am 5.79 KB
Newer Older
1
lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2
noinst_LTLIBRARIES = libcothreads.la
Erik Walthinsen's avatar
Erik Walthinsen committed
3

4 5 6 7 8
if HAVE_CPU_I386
GSTARCH_SRCS = gstcpuid_i386.s
else
GSTARCH_SRCS = 
endif
9

10 11
#GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION

12 13 14 15 16 17
if GST_DISABLE_LOADSAVE
GST_LOADSAVE_SRC = 
else
GST_LOADSAVE_SRC = gstxml.c
endif

18 19 20 21 22 23 24 25
if GST_DISABLE_TYPEFIND
GST_TYPEFIND_SRC = 
else
GST_TYPEFIND_SRC = gsttypefind.c
endif

if GST_DISABLE_AUTOPLUG
GST_AUTOPLUG_SRC = 
26
GST_AUTOPLUG_DIRS =
27 28
else
GST_AUTOPLUG_SRC = gstautoplug.c
29
GST_AUTOPLUG_DIRS = autoplug
30 31
endif

Wim Taymans's avatar
Wim Taymans committed
32 33 34 35 36 37 38 39 40 41
if GST_DISABLE_PARSE
GST_PARSE_SRC = 
GST_PARSE_DIRS = 
GST_PARSE_LIBADD = 
else
GST_PARSE_SRC = gstparse.c
GST_PARSE_DIRS = parse
GST_PARSE_LIBADD = parse/libgstparse.la 
endif

42 43 44 45 46 47
if GST_DISABLE_TRACE
GST_TRACE_SRC = 
else
GST_TRACE_SRC = gsttrace.c
endif

Wim Taymans's avatar
Wim Taymans committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
if GST_DISABLE_REGISTRY
GST_REGISTRY_SRC = 
GST_REGISTRY_DIRS =
GST_REGISTRY_LIBADD = 
else
GST_REGISTRY_SRC = gstregistry.c
GST_REGISTRY_DIRS = registries
GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
endif

if GST_DISABLE_ENUMTYPES
GST_ENUMTYPES_SRC = 
else
GST_ENUMTYPES_SRC = gstenumtypes.c
endif

if GST_DISABLE_INDEX
GST_INDEX_SRC = 
GST_INDEX_DIRS =
else
GST_INDEX_SRC = gstindex.c
GST_INDEX_DIRS = indexers
endif

if GST_DISABLE_PLUGIN
GST_PLUGIN_SRC = 
else
GST_PLUGIN_SRC = gstplugin.c
endif

if GST_DISABLE_URI
GST_URI_SRC = 
else
GST_URI_SRC = gsturi.c
endif

84
EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gsttypefind.c gstparse.c gstautoplug.c gsttrace.c
85

Wim Taymans's avatar
Wim Taymans committed
86
SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . $(GST_AUTOPLUG_DIRS) elements schedulers types $(GST_INDEX_DIRS) 
Wim Taymans's avatar
Wim Taymans committed
87
DIST_SUBDIRS = autoplug elements parse registries schedulers types indexers
88

89
libgstreamer_@GST_MAJORMINOR@_la_SOURCES =		\
Erik Walthinsen's avatar
Erik Walthinsen committed
90
	gst.c			\
91
	gstmarshal.c		\
Wim Taymans's avatar
Wim Taymans committed
92
	$(GST_ENUMTYPES_SRC)	\
93
	gstobject.c		\
94
	$(GST_AUTOPLUG_SRC)	\
95
	gstatomic.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
96 97
	gstbin.c		\
	gstbuffer.c		\
98
	gstbufferpool-default.c	\
Erik Walthinsen's avatar
Erik Walthinsen committed
99 100 101
	gstcaps.c		\
	gstclock.c		\
	gstcpu.c		\
102
	gstdata.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
103
	gstelement.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
104
	gstelementfactory.c	\
105
	gstevent.c		\
Wim Taymans's avatar
Wim Taymans committed
106
	gstfilter.c		\
107
	gstformat.c		\
Wim Taymans's avatar
Wim Taymans committed
108
	$(GST_INDEX_SRC)	\
Erik Walthinsen's avatar
Erik Walthinsen committed
109
	gstinfo.c		\
110
	gstmemchunk.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
111 112 113
	gstpad.c		\
	gstpipeline.c		\
	gstplugin.c		\
114
	gstpluginfeature.c	\
Wim Taymans's avatar
Wim Taymans committed
115
	gstprobe.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
116
	gstprops.c		\
117
	gstqueue.c		\
118
	gstquery.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
119
	gstscheduler.c		\
120
	gstsystemclock.c	\
Erik Walthinsen's avatar
Erik Walthinsen committed
121
	gstthread.c		\
122
	gstthreaddummy.c	\
123
	$(GST_TRACE_SRC)	\
Wim Taymans's avatar
Wim Taymans committed
124
	gsttrashstack.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
125
	gsttype.c		\
126
	$(GST_TYPEFIND_SRC)	\
Wim Taymans's avatar
Wim Taymans committed
127 128
	$(GST_URI_SRC)		\
	gsturitype.c		\
Erik Walthinsen's avatar
Erik Walthinsen committed
129
	gstutils.c		\
Wim Taymans's avatar
Wim Taymans committed
130 131
	$(GST_REGISTRY_SRC)	\
	gstregistrypool.c	\
132
	$(GST_PARSE_SRC)	\
133
	$(GSTARCH_SRCS)		\
134
	$(GST_LOADSAVE_SRC)
Erik Walthinsen's avatar
Erik Walthinsen committed
135

136

137
BUILT_SOURCES = gstversion.h gstconfig.h gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC) 
138

139
libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \
140
	$(GST_CFLAGS) \
141
	-DG_LOG_DOMAIN=g_log_domain_gstreamer \
142 143
	-DGST_CACHE_DIR=\""$(GST_CACHE_DIR)"\" \
	-DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" 
Wim Taymans's avatar
Wim Taymans committed
144
libgstreamer_@GST_MAJORMINOR@_la_LIBADD = $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
145 146 147 148
libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ 


libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
149 150

gst_headers =			\
Erik Walthinsen's avatar
Erik Walthinsen committed
151
	gst.h			\
152
	gstatomic.h		\
153
	gstobject.h		\
154
	gsttypes.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
155 156 157
	gstautoplug.h		\
	gstbin.h		\
	gstbuffer.h		\
158
	gstbufferpool-default.h \
Erik Walthinsen's avatar
Erik Walthinsen committed
159 160
	gstcaps.h		\
	gstclock.h		\
161
	gstcompat.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
162
	gstcpu.h		\
163
	gstdata.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
164
	gstelement.h		\
165
	gstevent.h		\
Wim Taymans's avatar
Wim Taymans committed
166
	gstfilter.h		\
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
167
	gstformat.h		\
Wim Taymans's avatar
Wim Taymans committed
168
	gstindex.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
169 170
	gstinfo.h		\
	gstlog.h		\
171
	gstmacros.h		\
172
	gstmemchunk.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
173 174 175
	gstpad.h		\
	gstpipeline.h		\
	gstplugin.h		\
176
	gstpluginfeature.h	\
Wim Taymans's avatar
Wim Taymans committed
177
	gstprobe.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
178
	gstprops.h		\
179
	gstqueue.h		\
180
	gstquery.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
181
	gstscheduler.h		\
182
	gstsystemclock.h	\
Erik Walthinsen's avatar
Erik Walthinsen committed
183 184
	gstthread.h		\
	gsttrace.h		\
185
	gsttrashstack.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
186
	gsttype.h		\
187
	gsttypefind.h		\
188
	gsturi.h		\
Wim Taymans's avatar
Wim Taymans committed
189
	gsturitype.h		\
Erik Walthinsen's avatar
Erik Walthinsen committed
190
	gstutils.h		\
191
	gstregistry.h		\
Wim Taymans's avatar
Wim Taymans committed
192
	gstregistrypool.h	\
193
	gstparse.h		\
194
	gstxml.h
Erik Walthinsen's avatar
Erik Walthinsen committed
195

196
built_headers =			\
197
	gstconfig.h		\
198 199 200 201
	gstversion.h		\
	gstmarshal.h		\
	gstenumtypes.h

202
libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) $(built_headers)
203

204 205
noinst_HEADERS = 		\
	gst_private.h		\
206
	gstatomic_impl.h	\
207
	gstdata_private.h	\
208
	gstarch.h		\
209
	cothreads.h		
210

211 212 213 214
# the compiler shoots cothreads.c in the head at -O6
libcothreads_la_SOURCES = cothreads.c
libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS) 

215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251

gstmarshal.h: gstmarshal.list
	glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
	mv gstmarshal.h.tmp gstmarshal.h

gstmarshal.c: gstmarshal.list
	echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
	echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
	echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
	glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
	mv gstmarshal.c.tmp gstmarshal.c

gstenumtypes.h: $(gst_headers)
	glib-mkenums \
	--fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
	--fprod "/* enumerations from \"@filename@\" */\n" \
	--vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
	--ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
	$^ > gstenumtypes.h

gstenumtypes.c: $(gst_headers)
	glib-mkenums \
	--fhead "#include <gst/gst.h>" \
	--fprod "\n/* enumerations from \"@filename@\" */" \
	--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[] = {"     \
	--vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
	--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
	$^ > gstenumtypes.c

# Don't want the generated marshal files in the dist
dist-hook:
	rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h

# Clean generated files
distclean-local:
	rm -f $(top_builddir)/gst/gstmarshal.c $(top_builddir)/gst/gstmarshal.h

252
EXTRA_DIST = ROADMAP