]> granicus.if.org Git - graphviz/commitdiff
add new "formatter" plugin api
authorellson <devnull@localhost>
Tue, 21 Aug 2007 20:12:25 +0000 (20:12 +0000)
committerellson <devnull@localhost>
Tue, 21 Aug 2007 20:12:25 +0000 (20:12 +0000)
update plugin api version number
add new formatter for cairo using gdk_pixbuf  - working
add new formatter for cairo using DevIL - partially working
add new formatter for cairo using gd - not working

plugin/devil/Makefile.am [new file with mode: 0644]
plugin/devil/gvplugin_devil.c [new file with mode: 0644]

diff --git a/plugin/devil/Makefile.am b/plugin/devil/Makefile.am
new file mode 100644 (file)
index 0000000..89cbcfb
--- /dev/null
@@ -0,0 +1,29 @@
+# $Id$ $Revision$
+## Process this file with automake to produce Makefile.in
+
+AM_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/lib/common \
+       -I$(top_srcdir)/lib/pathplan \
+       -I$(top_srcdir)/lib/gvc \
+       -I$(top_srcdir)/lib/graph \
+       -I$(top_srcdir)/lib/cdt \
+       $(PANGOCAIRO_CFLAGS) $(DEVIL_CFLAGS)
+
+if WITH_PANGOCAIRO
+if WITH_DEVIL
+noinst_LTLIBRARIES = libgvplugin_devil_C.la
+pkglib_LTLIBRARIES = libgvplugin_devil.la
+endif
+endif
+
+libgvplugin_devil_C_la_SOURCES = \
+       gvplugin_devil.c \
+       gvformatter_devil.c
+
+libgvplugin_devil_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
+libgvplugin_devil_la_SOURCES = $(libgvplugin_devil_C_la_SOURCES)
+libgvplugin_devil_la_LIBADD = @PANGOCAIRO_LIBS@ @FONTCONFIG_LIBS@ @MATH_LIBS@ @DEVIL_LIBS@
+
+EXTRA_DIST = Makefile.old
+
diff --git a/plugin/devil/gvplugin_devil.c b/plugin/devil/gvplugin_devil.c
new file mode 100644 (file)
index 0000000..fa9b2b3
--- /dev/null
@@ -0,0 +1,26 @@
+/* $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 "gvplugin.h"
+
+extern gvplugin_installed_t gvformatter_devil_types;
+
+static gvplugin_api_t apis[] = {
+    {API_formatter, &gvformatter_devil_types},
+    {(api_t)0, 0},
+};
+
+gvplugin_library_t gvplugin_devil_LTX_library = { "devil", apis };