]> granicus.if.org Git - graphviz/commitdiff
make tcldot work again
authorellson <devnull@localhost>
Tue, 25 Jan 2005 18:13:56 +0000 (18:13 +0000)
committerellson <devnull@localhost>
Tue, 25 Jan 2005 18:13:56 +0000 (18:13 +0000)
tclpkg/tcldot/Makefile.am
tclpkg/tcldot/plugins.c [new file with mode: 0644]

index bb47b1b89825a7cac4244366d58c5d58e436bcb4..331529f8fa1754ba678640731aa352b28a64936b 100644 (file)
@@ -35,17 +35,26 @@ pdf_DATA = $(pdf)
 html_DATA = $(html)
 endif
 
-libtcldot_la_SOURCES = tcldot.c tkgen.c $(top_srcdir)/tclpkg/gdtclft/gdtclft.c
+libtcldot_la_SOURCES = tcldot.c tkgen.c plugins.c $(top_srcdir)/tclpkg/gdtclft/gdtclft.c
 
+if DISABLE_GVRENDER
 libtcldot_la_LIBADD = \
        $(top_builddir)/tclpkg/tclhandle/libtclhandle.la \
        $(top_builddir)/tclpkg/tclstubs/libtclstubs.la \
+       $(top_builddir)/lib/common/libcommon.la \
        $(top_builddir)/lib/gvc/libgvc.la \
-        $(top_builddir)/lib/dotgen/libdotgen.la \
-        $(top_builddir)/lib/neatogen/libneatogen.la \
-        $(top_builddir)/lib/twopigen/libtwopigen.la \
-        $(top_builddir)/lib/fdpgen/libfdpgen.la \
-        $(top_builddir)/lib/circogen/libcircogen.la
+       $(top_builddir)/plugin/layout/libgvplugin_layout.la @LIBGEN_LIBS@
+else
+libtcldot_la_LIBADD = \
+        $(top_builddir)/tclpkg/tclhandle/libtclhandle.la \
+        $(top_builddir)/tclpkg/tclstubs/libtclstubs.la \
+        $(top_builddir)/lib/common/libcommon.la \
+        $(top_builddir)/lib/gvc/libgvc.la \
+       $(top_builddir)/plugin/cairo/libgvplugin_cairo.la \
+        $(top_builddir)/plugin/gd/libgvplugin_gd.la \
+        $(top_builddir)/plugin/text/libgvplugin_text.la \
+        $(top_builddir)/plugin/layout/libgvplugin_layout.la @CAIRO_LIBS@ @LIBGEN_LIBS@
+endif
 
 if WITH_TCL
 all-local: pkgIndex.tcl
diff --git a/tclpkg/tcldot/plugins.c b/tclpkg/tcldot/plugins.c
new file mode 100644 (file)
index 0000000..035e346
--- /dev/null
@@ -0,0 +1,40 @@
+/* $Id$ $Revision$ */
+/* vim:set shiftwidth=4 ts=8: */
+
+/**********************************************************
+*      This software is part of the graphviz package      *
+*                http://www.graphviz.org/                 *
+*                                                         *
+*            Copyright (c) 1994-2004 AT&T Corp.           *
+*                and is licensed under the                *
+*            Common Public License, Version 1.0           *
+*                      by AT&T Corp.                      *
+*                                                         *
+*        Information and Software Systems Research        *
+*              AT&T Research, Florham Park NJ             *
+**********************************************************/
+
+#include        <stdio.h>
+
+#include        "config.h"
+#include        "types.h"
+#include        "macros.h"
+#include        "gvc.h"
+
+#ifndef DISABLE_GVRENDER
+extern gvplugin_t gvplugin_cairo_LTX_plugin,
+    gvplugin_gd_LTX_plugin,
+    gvplugin_text_LTX_plugin;
+#endif
+extern gvplugin_t gvplugin_layout_LTX_plugin;
+
+gvplugin_t *builtins[] = {
+#ifndef DISABLE_GVRENDER
+    &gvplugin_cairo_LTX_plugin,
+    &gvplugin_gd_LTX_plugin,
+    &gvplugin_text_LTX_plugin,
+#endif
+    &gvplugin_layout_LTX_plugin,
+    NULL
+};
+