From b317ef244a234940927ef719bf3310e74cee962f Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 21 Aug 2007 20:12:26 +0000 Subject: [PATCH] add new "formatter" plugin api 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/gdk_pixbuf/Makefile.am | 29 +++++++++++++++++++++++++ plugin/gdk_pixbuf/gvplugin_gdk_pixbuf.c | 26 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 plugin/gdk_pixbuf/Makefile.am create mode 100644 plugin/gdk_pixbuf/gvplugin_gdk_pixbuf.c diff --git a/plugin/gdk_pixbuf/Makefile.am b/plugin/gdk_pixbuf/Makefile.am new file mode 100644 index 000000000..5d1230b25 --- /dev/null +++ b/plugin/gdk_pixbuf/Makefile.am @@ -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) $(GDK_PIXBUF_CFLAGS) + +if WITH_PANGOCAIRO +if WITH_GDK_PIXBUF +noinst_LTLIBRARIES = libgvplugin_gdk_pixbuf_C.la +pkglib_LTLIBRARIES = libgvplugin_gdk_pixbuf.la +endif +endif + +libgvplugin_gdk_pixbuf_C_la_SOURCES = \ + gvplugin_gdk_pixbuf.c \ + gvformatter_gdk_pixbuf.c + +libgvplugin_gdk_pixbuf_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined +libgvplugin_gdk_pixbuf_la_SOURCES = $(libgvplugin_gdk_pixbuf_C_la_SOURCES) +libgvplugin_gdk_pixbuf_la_LIBADD = @PANGOCAIRO_LIBS@ @FONTCONFIG_LIBS@ @MATH_LIBS@ @GDK_PIXBUF_LIBS@ + +EXTRA_DIST = Makefile.old + diff --git a/plugin/gdk_pixbuf/gvplugin_gdk_pixbuf.c b/plugin/gdk_pixbuf/gvplugin_gdk_pixbuf.c new file mode 100644 index 000000000..d63236ce1 --- /dev/null +++ b/plugin/gdk_pixbuf/gvplugin_gdk_pixbuf.c @@ -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_gdk_pixbuf_types; + +static gvplugin_api_t apis[] = { + {API_formatter, &gvformatter_gdk_pixbuf_types}, + {(api_t)0, 0}, +}; + +gvplugin_library_t gvplugin_gdk_pixbuf_LTX_library = { "gdk_pixbuf", apis }; -- 2.40.0