2001-12-04 22:12:50 +00:00
|
|
|
|
2004-04-13 22:18:36 +00:00
|
|
|
if GST_DISABLE_OMEGA_COTHREADS
|
|
|
|
omegaschedulers =
|
2004-04-20 22:22:01 +00:00
|
|
|
omegaschedulers_nola =
|
2004-04-13 22:18:36 +00:00
|
|
|
else
|
|
|
|
omegaschedulers = \
|
2002-09-12 19:23:41 +00:00
|
|
|
libgstbasicomegascheduler.la \
|
2004-04-13 22:18:36 +00:00
|
|
|
libgstentryomegascheduler.la \
|
|
|
|
libgstoptomegascheduler.la
|
2004-04-20 22:22:01 +00:00
|
|
|
omegaschedulers_nola = \
|
|
|
|
libgstbasicomegascheduler \
|
|
|
|
libgstentryomegascheduler \
|
|
|
|
libgstoptomegascheduler
|
2004-04-13 22:18:36 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
plugin_LTLIBRARIES = \
|
|
|
|
$(omegaschedulers) \
|
2003-03-11 21:01:31 +00:00
|
|
|
libgstbasicgthreadscheduler.la \
|
2004-03-28 02:29:24 +00:00
|
|
|
libgstentrygthreadscheduler.la \
|
2002-12-15 18:21:43 +00:00
|
|
|
libgstoptscheduler.la \
|
2003-07-27 05:10:42 +00:00
|
|
|
libgstoptgthreadscheduler.la
|
2004-04-20 22:22:01 +00:00
|
|
|
AS_LIBTOOL_LIBS = \
|
|
|
|
$(omegaschedulers_nola) \
|
|
|
|
libgstbasicgthreadscheduler \
|
|
|
|
libgstentrygthreadscheduler \
|
|
|
|
libgstoptscheduler \
|
|
|
|
libgstoptgthreadscheduler
|
|
|
|
|
2004-04-13 22:18:36 +00:00
|
|
|
if GST_DISABLE_OMEGA_COTHREADS
|
|
|
|
else
|
2002-09-12 19:23:41 +00:00
|
|
|
libgstbasicomegascheduler_la_SOURCES = gstbasicscheduler.c
|
|
|
|
libgstbasicomegascheduler_la_CFLAGS = $(GST_CFLAGS) -D_COTHREADS_OMEGA
|
|
|
|
libgstbasicomegascheduler_la_LIBADD = ../libcothreads.la
|
2004-04-20 22:22:01 +00:00
|
|
|
libgstbasicomegascheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(as_libtool_LDFLAGS)
|
2004-04-13 22:18:36 +00:00
|
|
|
endif
|
2002-02-11 01:38:55 +00:00
|
|
|
|
2003-03-11 21:01:31 +00:00
|
|
|
libgstbasicgthreadscheduler_la_SOURCES = gstbasicscheduler.c
|
|
|
|
libgstbasicgthreadscheduler_la_CFLAGS = $(GST_CFLAGS) -D_COTHREADS_GTHREAD
|
2004-04-20 22:22:01 +00:00
|
|
|
libgstbasicgthreadscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(as_libtool_LDFLAGS)
|
2003-03-11 21:01:31 +00:00
|
|
|
|
2004-03-28 02:29:24 +00:00
|
|
|
libgstentrygthreadscheduler_la_SOURCES = entryscheduler.c
|
|
|
|
libgstentrygthreadscheduler_la_CFLAGS = $(GST_CFLAGS) -D_COTHREADS_GTHREAD
|
2004-04-20 22:22:01 +00:00
|
|
|
libgstentrygthreadscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(as_libtool_LDFLAGS)
|
2004-03-28 02:29:24 +00:00
|
|
|
|
2004-04-13 22:18:36 +00:00
|
|
|
if GST_DISABLE_OMEGA_COTHREADS
|
|
|
|
else
|
2004-03-28 02:29:24 +00:00
|
|
|
libgstentryomegascheduler_la_SOURCES = entryscheduler.c
|
|
|
|
libgstentryomegascheduler_la_CFLAGS = $(GST_CFLAGS) -D_COTHREADS_OMEGA
|
|
|
|
libgstentryomegascheduler_la_LIBADD = ../libcothreads.la
|
2004-04-20 22:22:01 +00:00
|
|
|
libgstentryomegascheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(as_libtool_LDFLAGS)
|
2004-04-13 22:18:36 +00:00
|
|
|
endif
|
2004-03-28 02:29:24 +00:00
|
|
|
|
2002-12-15 18:21:43 +00:00
|
|
|
libgstoptscheduler_la_SOURCES = gstoptimalscheduler.c
|
|
|
|
libgstoptscheduler_la_CFLAGS = $(GST_CFLAGS)
|
2004-04-20 22:22:01 +00:00
|
|
|
libgstoptscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(as_libtool_LDFLAGS)
|
2002-03-30 17:05:03 +00:00
|
|
|
|
2004-04-13 22:18:36 +00:00
|
|
|
if GST_DISABLE_OMEGA_COTHREADS
|
|
|
|
else
|
2002-09-12 21:00:57 +00:00
|
|
|
libgstoptomegascheduler_la_SOURCES = gstoptimalscheduler.c
|
2002-12-15 18:21:43 +00:00
|
|
|
libgstoptomegascheduler_la_CFLAGS = $(GST_CFLAGS) -D_COTHREADS_OMEGA -DUSE_COTHREADS
|
2002-09-12 21:00:57 +00:00
|
|
|
libgstoptomegascheduler_la_LIBADD = ../libcothreads.la
|
2004-04-20 22:22:01 +00:00
|
|
|
libgstoptomegascheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(as_libtool_LDFLAGS)
|
2004-04-13 22:18:36 +00:00
|
|
|
endif
|
2002-09-12 21:00:57 +00:00
|
|
|
|
2003-03-11 21:01:31 +00:00
|
|
|
libgstoptgthreadscheduler_la_SOURCES = gstoptimalscheduler.c
|
|
|
|
libgstoptgthreadscheduler_la_CFLAGS = $(GST_CFLAGS) -D_COTHREADS_GTHREAD -DUSE_COTHREADS
|
2004-04-20 22:22:01 +00:00
|
|
|
libgstoptgthreadscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(as_libtool_LDFLAGS)
|
2003-03-11 21:01:31 +00:00
|
|
|
|
|
|
|
noinst_HEADERS = cothreads_compat.h gthread-cothreads.h
|
2004-04-20 22:22:01 +00:00
|
|
|
|
|
|
|
if AS_LIBTOOL_WIN32
|
|
|
|
|
|
|
|
as_libtool_noinst_DATA_files = $(AS_LIBTOOL_LIB).lib
|
|
|
|
|
|
|
|
as_libtool_LDFLAGS = -no-undefined
|
|
|
|
|
|
|
|
# depend on this in install-data-local
|
|
|
|
as-libtool-install-data-local:
|
|
|
|
for i in $(AS_LIBTOOL_LIBS); do \
|
|
|
|
$(INSTALL) $$i.lib $(DESTDIR)$(libdir) ; \
|
|
|
|
$(INSTALL) $$i.def $(DESTDIR)$(libdir) ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
# depend on this in uninstall-local
|
|
|
|
as-libtool-uninstall-local:
|
|
|
|
for i in $(AS_LIBTOOL_LIBS); do \
|
|
|
|
-rm $(DESTDIR)$(libdir)/$$i.lib ; \
|
|
|
|
-rm $(DESTDIR)$(libdir)/$$i.def ; \
|
|
|
|
done
|
|
|
|
else
|
|
|
|
|
2004-04-21 02:43:55 +00:00
|
|
|
as_libtool_LDFLAGS =
|
|
|
|
|
2004-04-20 22:22:01 +00:00
|
|
|
as-libtool-install-data-local:
|
|
|
|
as-libtool-uninstall-local:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%.lib: %.def
|
|
|
|
dlltool -S $(CC) -f "-c" --export-all-symbols --input-def \
|
|
|
|
%.def --output-lib %.lib
|
|
|
|
|
|
|
|
%.def: %.la
|
|
|
|
echo EXPORTS >%.def.tmp
|
|
|
|
nm --defined-only -g .libs/%.a | \
|
|
|
|
grep ^0 | \
|
|
|
|
awk '{ print $$3 }' | \
|
|
|
|
sed 's/^/ /' >>%.def.tmp
|
|
|
|
mv %.def.tmp %.def
|
|
|
|
|