2000-01-30 09:03:00 +00:00
|
|
|
# cheap trick to build . first...
|
2000-11-04 18:54:07 +00:00
|
|
|
SUBDIRS = . types meta elements
|
2000-01-30 09:03:00 +00:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libgst.la
|
|
|
|
|
|
|
|
GSTOBJECT_SRCS = \
|
|
|
|
gstobject.c
|
|
|
|
GSTOBJECT_INCLUDES = \
|
|
|
|
gstobject.h
|
|
|
|
|
2000-09-15 22:44:10 +00:00
|
|
|
if HAVE_CPU_I386
|
|
|
|
GSTARCH_SRCS = gstcpuid_i386.s
|
|
|
|
else
|
|
|
|
GSTARCH_SRCS =
|
|
|
|
endif
|
2000-09-21 01:34:34 +00:00
|
|
|
|
|
|
|
EXTRA_libgst_la_SOURCES = \
|
|
|
|
gstcpuid_i386.s
|
2000-09-15 22:44:10 +00:00
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
libgst_la_SOURCES = \
|
|
|
|
gst.c \
|
|
|
|
$(GSTOBJECT_SRCS) \
|
|
|
|
gstpad.c \
|
|
|
|
gstbuffer.c \
|
2000-08-14 10:55:35 +00:00
|
|
|
gstbufferpool.c \
|
2000-04-09 21:36:56 +00:00
|
|
|
gstclock.c \
|
2000-09-12 18:13:48 +00:00
|
|
|
gstcpu.c \
|
2000-09-15 23:04:31 +00:00
|
|
|
$(GSTARCH_SRCS) \
|
2000-01-30 09:03:00 +00:00
|
|
|
gstelement.c \
|
|
|
|
gstelementfactory.c \
|
2000-10-11 19:30:07 +00:00
|
|
|
gstextratypes.c \
|
2000-01-30 09:03:00 +00:00
|
|
|
gstbin.c \
|
|
|
|
gstpipeline.c \
|
|
|
|
gstthread.c \
|
|
|
|
gstsrc.c \
|
|
|
|
gstfilter.c \
|
|
|
|
gstsink.c \
|
|
|
|
gstconnection.c \
|
|
|
|
gsttype.c \
|
2000-12-03 17:51:29 +00:00
|
|
|
gstcaps.c \
|
2000-12-07 18:37:56 +00:00
|
|
|
gstprops.c \
|
2000-01-30 09:03:00 +00:00
|
|
|
gstplugin.c \
|
|
|
|
gstutils.c \
|
|
|
|
gsttrace.c \
|
|
|
|
gstmeta.c \
|
|
|
|
gsttee.c \
|
|
|
|
gstxml.c \
|
|
|
|
cothreads.c
|
|
|
|
|
|
|
|
libgstincludedir = $(includedir)/gst
|
|
|
|
libgstinclude_HEADERS = \
|
|
|
|
gst.h \
|
|
|
|
gstlog.h \
|
|
|
|
$(GSTOBJECT_INCLUDES) \
|
|
|
|
gstpad.h \
|
|
|
|
gstbuffer.h \
|
2000-08-14 10:55:35 +00:00
|
|
|
gstbufferpool.h \
|
2000-04-09 21:36:56 +00:00
|
|
|
gstclock.h \
|
2000-09-12 18:13:48 +00:00
|
|
|
gstcpu.h \
|
2000-01-30 09:03:00 +00:00
|
|
|
gstelement.h \
|
2000-10-11 19:30:07 +00:00
|
|
|
gstextratypes.h \
|
2000-01-30 09:03:00 +00:00
|
|
|
gstbin.h \
|
|
|
|
gstpipeline.h \
|
|
|
|
gstthread.h \
|
|
|
|
gstsrc.h \
|
|
|
|
gstfilter.h \
|
|
|
|
gstsink.h \
|
|
|
|
gstconnection.h \
|
|
|
|
gsttype.h \
|
2000-12-03 17:51:29 +00:00
|
|
|
gstcaps.h \
|
2000-12-07 18:37:56 +00:00
|
|
|
gstprops.h \
|
2000-01-30 09:03:00 +00:00
|
|
|
gstplugin.h \
|
|
|
|
gstutils.h \
|
|
|
|
gsttrace.h \
|
|
|
|
gstmeta.h \
|
|
|
|
gsttee.h \
|
|
|
|
gstxml.h \
|
Changes made to the DEBUG system. New header file gstdebug.h holds the stuff to keep it out of gst.h's hair. DEBUG ...
Original commit message from CVS:
Changes made to the DEBUG system. New header file gstdebug.h holds the
stuff to keep it out of gst.h's hair. DEBUG prints out the process id,
cothread id, source filename and line number. Two new macros DEBUG_ENTER
and DEBUG_LEAVE are used to show the entry and exit of a given function.
This eventually might be used to construct call trace graphs, even taking
cothreads into account. This would be quite useful in visualizing the
scheduling mechanism.
Minor changes to various debug messages.
Also sitting in gstdebug.h is a prototypical DEBUG_ENTER that's capable of
performing DEBUG_LEAVE automatically. It does this by utilizing a
little-known GCC extension that allows one to call a function with the
same parameters as the current function. The macro uses this to basically
call itself. A boolean is used to ensure that when it calls itself it
actually runs the body of the function. In the meantime it prints stuff
out before and after the real function, as well as constructing a
debugging string. This can be used eventually to provide call-wide data
on the DEBUG lines, instead of having to replicate data on each call to
DEBUG. More research is needed into how this would most cleanly be fit
into some other chunk of code, like GStreamer (I think of this DEBUG trick
as a separate project, sorta).
Unfortunately, the aforementioned DEBUG trick interacts quite poorly with
cothreads. Almost any time it's used in a function that has anything
remotely to do with a cothread context (as in, it runs in one), a segfault
results from the __builtin_apply call, which is the heart of the whole
thing. If someone who really knows assembly could analyze the resulting
code to see what's really going on, we might find a way to fix either the
macro or the cothreads (I'm thinking that there's something we missed in
constructing the cothreads themselves) so this works in all cases.
In the meantime, please insert both DEBUG_ENTER and DEBUG_LEAVE in your
functions. Be sure to put DEBUG_ENTER after your variable declarations
and before any functional code, not to put the function name in any DEBUG
strings (it's already there, trust me), and put a DEBUG_LEAVE if you care
enough.
Changes are going to happen in the way DEBUGs and other printouts occur,
so stay tuned.
2000-12-04 09:35:08 +00:00
|
|
|
gstdebug.h \
|
2000-01-30 09:03:00 +00:00
|
|
|
cothreads.h
|
|
|
|
|
2000-09-17 22:08:09 +00:00
|
|
|
noinst_HEADERS = \
|
|
|
|
gstarch.h \
|
|
|
|
gsti386.h \
|
|
|
|
gstppc.h
|
|
|
|
|
2000-12-05 18:08:59 +00:00
|
|
|
CFLAGS += -O6 -Wall
|
2000-02-27 23:18:38 +00:00
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
libgst_la_LIBADD = $(GLIB_LIBS) $(GTK_LIBS) $(XML_LIBS)
|
|
|
|
libgst_la_LDFLAGS = -version-info $(STREAMER_CURRENT):$(STREAMER_REVISION):$(STREAMER_AGE)
|
|
|
|
|
|
|
|
EXTRA_DIST = ROADMAP
|