]> granicus.if.org Git - graphviz/commitdiff
- merge libdotneato into libgvc
authorellson <devnull@localhost>
Wed, 20 Jul 2005 02:39:16 +0000 (02:39 +0000)
committerellson <devnull@localhost>
Wed, 20 Jul 2005 02:39:16 +0000 (02:39 +0000)
- make libcommon a convenience library and link into libgvc
- convert demo to use libgvc

35 files changed:
lib/common/utils.c
lib/common/vtxgen.c
lib/dotgen/Makefile.am
lib/dotgen/libdotgen.pc.in [deleted file]
lib/fdpgen/Makefile.am
lib/fdpgen/libfdpgen.pc.in [deleted file]
lib/gvc/Makefile.am
lib/gvc/gvc.c [new file with mode: 0644]
lib/gvc/gvc.h
lib/gvc/gvconfig.c
lib/gvc/gvcontext.c
lib/gvc/gvcproc.h [new file with mode: 0644]
lib/gvc/gvdevice.c
lib/gvc/gvevent.c
lib/gvc/gvjobs.c
lib/gvc/gvlayout.c
lib/gvc/gvplugin.c
lib/gvc/gvrender.c
lib/gvc/gvtextlayout.c
lib/gvc/gvusershape.c
lib/gvc/libgvc.pc.in
lib/neatogen/Makefile.am
lib/neatogen/libneatogen.pc.in [deleted file]
lib/pack/Makefile.am
lib/pack/libpack.pc.in [deleted file]
lib/twopigen/Makefile.am
lib/twopigen/libtwopigen.pc.in [deleted file]
tclpkg/gv/Makefile.am
tclpkg/gv/gv.cpp
tclpkg/gv/gv.h [deleted file]
tclpkg/gv/gv.i
tclpkg/tcldot/Makefile.am
tclpkg/tcldot/tcldot.c
tclpkg/tcldot/tcldot.h
tclpkg/tcldot/tkgen.c

index e906456bf80acb4528633fe80731e983a2c7ab84..198732ca0449f5846ccb23aa696b7f5066f60b17 100644 (file)
@@ -15,7 +15,7 @@
 **********************************************************/
 
 
-#include       "render.h"
+#include       "gvc.h"
 #include       "agxbuf.h"
 #include       "utils.h"
 #include       "htmltable.h"
index 4f5811bf41fc2aa48e74af130b4090490d0fd4d1..734c2d12f685dc0ebcb39b23d3626c85eb26ba7c 100644 (file)
@@ -27,7 +27,7 @@
  */
 #define SUPPORT_WRITEDATE
 
-#include       "render.h"
+#include       "gvc.h"
 #ifdef SUPPORT_WRITEDATE
 #include <time.h>
 #endif
index 17652689e68238910962bcdf7ec98da9f8336ea4..b83bcaede7b5bfe134859e20581f585019261bdd 100644 (file)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-pkgconfigdir = $(libdir)/pkgconfig
-
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
         -I$(top_srcdir)/lib/common \
diff --git a/lib/dotgen/libdotgen.pc.in b/lib/dotgen/libdotgen.pc.in
deleted file mode 100644 (file)
index bfe47f1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-
-Name: libdotgen
-Description: Directed layout library
-Version: @VERSION@
-Libs: -L${libdir} -ldotgen
-Cflags: -I${includedir}
index 24acb68a5429309d4af8b6311d63927b8923216a..8068153b613214cd0184c395c3c13ba11cfcfe18 100644 (file)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-pkgconfigdir = $(libdir)/pkgconfig
-
 AM_CPPFLAGS = \
         -I$(top_srcdir) \
         -I$(top_srcdir)/lib/common \
diff --git a/lib/fdpgen/libfdpgen.pc.in b/lib/fdpgen/libfdpgen.pc.in
deleted file mode 100644 (file)
index 947026c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-                                                                                       
-Name: libfdpgen
-Description: Force Directed Placement layout library
-Version: @VERSION@
-Libs: -L${libdir} -lfdpgen
-Cflags: -I${includedir}
index 01be4fe28d913f9d4030932a840e370e7cc7ab91..206f062a5bbdd64935133a85d3eaab2700f5fb85 100644 (file)
@@ -1,5 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 
+pkgconfigdir = $(libdir)/pkgconfig
+
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
        -I$(top_srcdir)/lib/common \
@@ -10,12 +12,30 @@ AM_CPPFLAGS = \
 
 LIBS = $(LIBLTDL) $(SOCKET_LIBS)
 
-pkginclude_HEADERS = gvc.h gvcint.h gvplugin.h \
-       gvplugin_render.h gvplugin_layout.h gvplugin_textlayout.h \
-       gvplugin_device.h gvplugin_usershape.h
+pkginclude_HEADERS = gvc.h gvcint.h gvplugin.h gvcproc.h gvplugin_render.h \
+       gvplugin_layout.h gvplugin_textlayout.h gvplugin_device.h \
+       gvplugin_usershape.h
 pkglib_LTLIBRARIES = libgvc.la
+pkgconfig_DATA = libgvc.pc
 
 libgvc_la_SOURCES = gvrender.c gvlayout.c gvtextlayout.c gvdevice.c \
-       gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c gvusershape.c
+       gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c gvusershape.c \
+       gvc.c
+
+if DISABLE_LTDL
+libgvc_la_LIBADD = \
+       $(top_builddir)/lib/common/libcommon.la \
+       $(top_builddir)/lib/graph/libgraph.la \
+       $(top_builddir)/lib/pathplan/libpathplan.la \
+       $(top_builddir)/plugin/libplugins.la \
+       @GD_LIBS@ @EXPAT_LIBS@ @Z_LIBS@
+else
+libgvc_la_LIBADD = \
+       $(top_builddir)/lib/common/libcommon.la \
+       $(top_builddir)/lib/graph/libgraph.la \
+       $(top_builddir)/lib/pathplan/libpathplan.la \
+       @GD_LIBS@ @EXPAT_LIBS@ @Z_LIBS@ @LIBGEN_LIBS@
+endif
+
 
 EXTRA_DIST = Makefile.old
diff --git a/lib/gvc/gvc.c b/lib/gvc/gvc.c
new file mode 100644 (file)
index 0000000..9c4a382
--- /dev/null
@@ -0,0 +1,108 @@
+/* $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 "gvc.h"
+
+char *Info[] = {
+    "libgvc",          /* Program */
+    VERSION,           /* Version */
+    BUILDDATE          /* Build Date */
+};
+
+GVC_t *gvContext(void)
+{
+    GVC_t *gvc;
+
+    aginit();
+    agnodeattr(NULL, "label", NODENAME_ESC);
+    gvc = gvNEWcontext(Info, username());
+    gvconfig(gvc); /* configure for available plugins and codegens */
+    return gvc;
+}
+
+int gvLayout(GVC_t *gvc, graph_t *g, char *engine)
+{
+    char buf[256];
+    Agsym_t *a;
+    int rc;
+
+    g = g->root;
+    if (GD_drawing(g)) {        /* only cleanup once between layouts */
+        gvlayout_cleanup(gvc, g);
+        GD_drawing(g) = NULL;
+    }
+    rc = gvlayout_select(gvc, engine);
+    if (rc == NO_SUPPORT) {
+        fprintf(stderr, "Layout type: \"%s\" not recognized. Use one of:%s\n",
+                engine, gvplugin_list(gvc, API_layout, engine));
+        return -1;
+    }
+
+    gvlayout_layout(gvc, g);
+
+/* set bb attribute for basic layout.
+ * doesn't yet include margins, scaling or page sizes because
+ * those depend on the renderer being used. */
+    if (GD_drawing(g)->landscape)
+        sprintf(buf, "%d %d %d %d",
+                ROUND(GD_bb(g).LL.y), ROUND(GD_bb(g).LL.x),
+                ROUND(GD_bb(g).UR.y), ROUND(GD_bb(g).UR.x));
+    else
+        sprintf(buf, "%d %d %d %d",
+                ROUND(GD_bb(g).LL.x), ROUND(GD_bb(g).LL.y),
+                ROUND(GD_bb(g).UR.x), ROUND(GD_bb(g).UR.y));
+    if (!(a = agfindattr(g, "bb"))) {
+        a = agraphattr(g, "bb", "");
+    }
+    agxset(g, a->index, buf);
+
+    return 0;
+}
+
+int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out)
+{
+    int rc;
+    GVJ_t *job;
+
+    g = g->root;
+
+    /* create a job for the required format */
+    rc = gvrender_output_langname_job(gvc, format);
+    if (rc == NO_SUPPORT) {
+        fprintf(stderr, "Renderer type: \"%s\" not recognized. Use one of:%s\n",
+                format, gvplugin_list(gvc, API_render, format));
+        return -1;
+    }
+
+    job = gvc->job;
+    job->output_lang = gvrender_select(job, job->output_langname);
+    if (!GD_drawing(g) && job->output_lang != CANONICAL_DOT) {
+        fprintf(stderr, "Layout was not done\n");
+        return -1;
+    }
+    job->output_file = out;
+
+    emit_jobs(gvc, g);
+    gvrender_delete_jobs(gvc);
+
+    return 0;
+}
+
+
+void gvCleanup(GVC_t *gvc)
+{
+    gvFREEcontext(gvc);
+}
index 9a703bfbae185d64fbf85fe0f6c4fddfa7105c29..f06e5ea39cf69bcd8336cb6ad80c6ac5c81b5707 100644 (file)
 /* 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             *
-**********************************************************/
-
-/* This is the public header for the callers of libgvc */
-
-#ifndef GVC_H
-#define GVC_H
-
+ * *      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             *
+ * **********************************************************/
+
+#ifndef                        GVC_H
+#define                        GVC_H
+
+#include "render.h"
 #include "gvplugin.h"
 #include "gvcint.h"
+#include "gvcproc.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-/* context */
-
-    extern GVC_t *gvNEWcontext(char **info, char *user);
-    extern void gvFREEcontext(GVC_t * gvc);
-
-/* configuration */
-
-    extern void gvconfig(GVC_t * gvc);
-    extern char *gvhostname(void);
-
-/* plugins */
-
-    extern boolean gvplugin_install(GVC_t * gvc, api_t api,
-                   char *typestr, int quality, char *packagename, char *path,
-                   gvplugin_installed_t * typeptr);
-    extern gvplugin_available_t *gvplugin_load(GVC_t * gvc, api_t api, char *type);
-    extern gvplugin_library_t *gvplugin_library_load(char *path);
-    extern const char *gvplugin_list(GVC_t * gvc, api_t api, char *str);
-    extern api_t gvplugin_api(char *str);
-    extern char * gvplugin_api_name(api_t api);
-
-/* job */
-
-    extern void gvrender_output_filename_job(GVC_t * gvc, char *name);
-    extern boolean gvrender_output_langname_job(GVC_t * gvc, char *name);
-    extern GVJ_t *gvrender_first_job(GVC_t * gvc);
-    extern GVJ_t *gvrender_next_job(GVC_t * gvc);
-    extern void gvrender_delete_jobs(GVC_t * gvc);
-
-/* emit */
-    extern void gvemit_graph(GVC_t * gvc, graph_t * g);
-
-/* textlayout */
-
-    extern int gvtextlayout_select(GVC_t * gvc, char *textlayout);
-    extern double gvtextlayout_width(GVC_t *gvc, textline_t *textline,
-                      char *fontname, double fontsize, char *fontpath);
-
-/* usershape */
-
-    extern int gvusershape_select(GVC_t * gvc, char *name);
-    extern void * gvusershape_getshape(GVC_t * gvc, char *usershape);
-    extern void gvusershape_freeshapes(GVC_t * gvc);
-    extern point gvusershape_size(GVC_t * gvc, char *usershape);
-
-/* device */
-
-    extern void gvdevice_initialize(GVC_t * gvc);
-    extern void gvdevice_finalize(GVC_t * gvc);
-    extern void gvdevice_begin_job(GVJ_t * job);
-    extern void gvdevice_end_job(GVJ_t * job);
-
-/* render */
-
-    extern void gvrender_begin_job(GVJ_t * job);
-    extern void gvrender_end_job(GVJ_t * job);
-    extern int gvrender_select(GVJ_t * job, char *lang);
-    extern int gvrender_features(GVJ_t * job);
-    extern void gvrender_begin_graph(GVJ_t * job, graph_t * g);
-    extern void gvrender_end_graph(GVJ_t * job);
-    extern void gvrender_begin_page(GVJ_t * job);
-    extern void gvrender_end_page(GVJ_t * job);
-    extern void gvrender_begin_layer(GVJ_t * job);
-    extern void gvrender_end_layer(GVJ_t * job);
-    extern void gvrender_begin_cluster(GVJ_t * job, graph_t * sg);
-    extern void gvrender_end_cluster(GVJ_t * job, graph_t *g);
-    extern void gvrender_begin_nodes(GVJ_t * job);
-    extern void gvrender_end_nodes(GVJ_t * job);
-    extern void gvrender_begin_edges(GVJ_t * job);
-    extern void gvrender_end_edges(GVJ_t * job);
-    extern void gvrender_begin_node(GVJ_t * job, node_t * n);
-    extern void gvrender_end_node(GVJ_t * job);
-    extern void gvrender_begin_edge(GVJ_t * job, edge_t * e);
-    extern void gvrender_end_edge(GVJ_t * job);
-    extern void gvrender_begin_context(GVJ_t * job);
-    extern void gvrender_end_context(GVJ_t * job);
-    extern void gvrender_begin_anchor(GVJ_t * job, char *href,
-                                     char *tooltip, char *target);
-    extern void gvrender_end_anchor(GVJ_t * job);
-    extern void gvrender_set_font(GVJ_t * job, char *fontname,
-                                 double fontsize);
-    extern void gvrender_textline(GVJ_t * job, pointf p, textline_t * str);
-    extern void gvrender_set_pencolor(GVJ_t * job, char *name);
-    extern void gvrender_set_fillcolor(GVJ_t * job, char *name);
-    extern void gvrender_set_style(GVJ_t * job, char **s);
-    extern void gvrender_ellipse(GVJ_t * job, point p, int rx, int ry,
-                                int filled);
-    extern void gvrender_polygon(GVJ_t * job, point * A, int n,
-                                int filled);
-    extern void gvrender_beziercurve(GVJ_t * job, pointf * AF, int n,
-                                    int arrow_at_start, int arrow_at_end, int);
-    extern void gvrender_polyline(GVJ_t * job, point * A, int n);
-    extern void gvrender_comment(GVJ_t * job, char *str);
-    extern void gvrender_user_shape(GVJ_t * job, char *name, point * A,
-                                   int sides, int filled);
-
-/* layout */
-
-    extern int gvlayout_select(GVC_t * gvc, char *str);
-    extern void gvlayout_layout(GVC_t * gvc, graph_t * g);
-    extern void gvlayout_cleanup(GVC_t * gvc, graph_t * g);
+extern GVC_t *gvContext(void);
+extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine);
+extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out);
+extern void gvCleanup(GVC_t *gvc);
 
 #ifdef __cplusplus
 }
 #endif
-#endif                         /* GVC_H */
+#endif                 /* RENDER_H */
index 39fb4b57ec9d26e43f3f958793b0330ed6bb6904..4983cc2a71fd449bd36bf528de8707cf4886a00e 100644 (file)
 #include        "types.h"
 #include        "macros.h"
 #include        "const.h"
-#include        "gvc.h"
 #include        "graph.h"
+#include       "gvplugin.h"
+#include       "gvcint.h"
+#include        "gvcproc.h"
 
 #ifndef DISABLE_CODEGENS
 #ifdef QUARTZ_RENDER
index 983293f8cff4e331827c6b13c51a9f2dcd25bd22..b4e22d6f44bd1ccfdf8dc14715909d25203f9097 100644 (file)
@@ -32,7 +32,9 @@
 #include       "types.h"
 #include       "macros.h"
 #include       "graph.h"
-#include       "gvc.h"
+#include        "gvplugin.h"
+#include        "gvcint.h"
+#include        "gvcproc.h"
 
 /* from common/utils.c */
 extern void *zmalloc(size_t);
diff --git a/lib/gvc/gvcproc.h b/lib/gvc/gvcproc.h
new file mode 100644 (file)
index 0000000..f847fd1
--- /dev/null
@@ -0,0 +1,131 @@
+/* $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             *
+**********************************************************/
+
+/* This is the public header for the callers of libgvc */
+
+#ifndef GVCPROC_H
+#define GVCPROC_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* context */
+
+    extern GVC_t *gvNEWcontext(char **info, char *user);
+    extern void gvFREEcontext(GVC_t * gvc);
+
+/* configuration */
+
+    extern void gvconfig(GVC_t * gvc);
+    extern char *gvhostname(void);
+
+/* plugins */
+
+    extern boolean gvplugin_install(GVC_t * gvc, api_t api,
+                   char *typestr, int quality, char *packagename, char *path,
+                   gvplugin_installed_t * typeptr);
+    extern gvplugin_available_t *gvplugin_load(GVC_t * gvc, api_t api, char *type);
+    extern gvplugin_library_t *gvplugin_library_load(char *path);
+    extern const char *gvplugin_list(GVC_t * gvc, api_t api, char *str);
+    extern api_t gvplugin_api(char *str);
+    extern char * gvplugin_api_name(api_t api);
+
+/* job */
+
+    extern void gvrender_output_filename_job(GVC_t * gvc, char *name);
+    extern boolean gvrender_output_langname_job(GVC_t * gvc, char *name);
+    extern GVJ_t *gvrender_first_job(GVC_t * gvc);
+    extern GVJ_t *gvrender_next_job(GVC_t * gvc);
+    extern void gvrender_delete_jobs(GVC_t * gvc);
+
+/* emit */
+    extern void gvemit_graph(GVC_t * gvc, graph_t * g);
+
+/* textlayout */
+
+    extern int gvtextlayout_select(GVC_t * gvc, char *textlayout);
+    extern double gvtextlayout_width(GVC_t *gvc, textline_t *textline,
+                      char *fontname, double fontsize, char *fontpath);
+
+/* usershape */
+
+    extern int gvusershape_select(GVC_t * gvc, char *name);
+    extern void * gvusershape_getshape(GVC_t * gvc, char *usershape);
+    extern void gvusershape_freeshapes(GVC_t * gvc);
+    extern point gvusershape_size(GVC_t * gvc, char *usershape);
+
+/* device */
+
+    extern void gvdevice_initialize(GVC_t * gvc);
+    extern void gvdevice_finalize(GVC_t * gvc);
+    extern void gvdevice_begin_job(GVJ_t * job);
+    extern void gvdevice_end_job(GVJ_t * job);
+
+/* render */
+
+    extern void gvrender_begin_job(GVJ_t * job);
+    extern void gvrender_end_job(GVJ_t * job);
+    extern int gvrender_select(GVJ_t * job, char *lang);
+    extern int gvrender_features(GVJ_t * job);
+    extern void gvrender_begin_graph(GVJ_t * job, graph_t * g);
+    extern void gvrender_end_graph(GVJ_t * job);
+    extern void gvrender_begin_page(GVJ_t * job);
+    extern void gvrender_end_page(GVJ_t * job);
+    extern void gvrender_begin_layer(GVJ_t * job);
+    extern void gvrender_end_layer(GVJ_t * job);
+    extern void gvrender_begin_cluster(GVJ_t * job, graph_t * sg);
+    extern void gvrender_end_cluster(GVJ_t * job, graph_t *g);
+    extern void gvrender_begin_nodes(GVJ_t * job);
+    extern void gvrender_end_nodes(GVJ_t * job);
+    extern void gvrender_begin_edges(GVJ_t * job);
+    extern void gvrender_end_edges(GVJ_t * job);
+    extern void gvrender_begin_node(GVJ_t * job, node_t * n);
+    extern void gvrender_end_node(GVJ_t * job);
+    extern void gvrender_begin_edge(GVJ_t * job, edge_t * e);
+    extern void gvrender_end_edge(GVJ_t * job);
+    extern void gvrender_begin_context(GVJ_t * job);
+    extern void gvrender_end_context(GVJ_t * job);
+    extern void gvrender_begin_anchor(GVJ_t * job, char *href,
+                                     char *tooltip, char *target);
+    extern void gvrender_end_anchor(GVJ_t * job);
+    extern void gvrender_set_font(GVJ_t * job, char *fontname,
+                                 double fontsize);
+    extern void gvrender_textline(GVJ_t * job, pointf p, textline_t * str);
+    extern void gvrender_set_pencolor(GVJ_t * job, char *name);
+    extern void gvrender_set_fillcolor(GVJ_t * job, char *name);
+    extern void gvrender_set_style(GVJ_t * job, char **s);
+    extern void gvrender_ellipse(GVJ_t * job, point p, int rx, int ry,
+                                int filled);
+    extern void gvrender_polygon(GVJ_t * job, point * A, int n,
+                                int filled);
+    extern void gvrender_beziercurve(GVJ_t * job, pointf * AF, int n,
+                                    int arrow_at_start, int arrow_at_end, int);
+    extern void gvrender_polyline(GVJ_t * job, point * A, int n);
+    extern void gvrender_comment(GVJ_t * job, char *str);
+    extern void gvrender_user_shape(GVJ_t * job, char *name, point * A,
+                                   int sides, int filled);
+
+/* layout */
+
+    extern int gvlayout_select(GVC_t * gvc, char *str);
+    extern void gvlayout_layout(GVC_t * gvc, graph_t * g);
+    extern void gvlayout_cleanup(GVC_t * gvc, graph_t * g);
+
+#ifdef __cplusplus
+}
+#endif
+#endif                         /* GVCPROC_H */
index 6d7a60103a30ab873a7d5a36072ad3e839b738fc..4f1dfb0fcc91931afd8a9e284e08309c41dc9928 100644 (file)
@@ -32,7 +32,9 @@
 #include "macros.h"
 
 #include "gvplugin_device.h"
-#include "gvc.h"
+#include "gvplugin.h"
+#include "gvcint.h"
+#include "gvcproc.h"
 
 int gvdevice_select(GVJ_t * job, char *str)
 {
index 5113909dd47877a04bf5de46c2ca1a7eb1acd505..9dcd17afa2070114f59e894f3df076b349205064 100644 (file)
 *              AT&T Research, Florham Park NJ             *
 **********************************************************/
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <stdio.h>
-
-/*
-#include "const.h"
-#include "types.h"
-#include "macros.h"
-*/
-
 #include "render.h"
-
-#include "gvc.h"
+#include "gvplugin.h"
+#include "gvcint.h"
+#include "gvcproc.h"
 
 #define PANFACTOR 10
 #define ZOOMFACTOR 1.1
index c6d062f500c0054cf6e09b50e5170e14e083088e..1be6f42e02eb320b479a9393aabdc655a1263d5d 100644 (file)
@@ -22,7 +22,9 @@
 #include       <stdlib.h>
 
 #include       "types.h"
-#include       "gvc.h"
+#include        "gvplugin.h"
+#include        "gvcint.h"
+#include        "gvcproc.h"
 
 /* from common/utils.c */
 extern void *zmalloc(size_t);
index e497d097b2d410e5166e213ff21249015b9998ac..f3a30d363cde3e4ebfe77af98ae98767c92d2577 100644 (file)
@@ -32,7 +32,9 @@
 #include "cdt.h"
 
 #include "gvplugin_layout.h"
-#include "gvc.h"
+#include "gvplugin.h"
+#include "gvcint.h"
+#include "gvcproc.h"
 
 extern void graph_init(graph_t *g, boolean use_rankdir);
 extern void graph_cleanup(graph_t *g);
index a28e152f985c4f0dabe498645ff7a522a307a95a..754b156c452ab5cc6599094d91e4803b26ce5b42 100644 (file)
 
 #include        "types.h"
 #include        "macros.h"
-#include        "gvc.h"
 #include        "graph.h"
+#include        "gvplugin.h"
+#include        "gvcint.h"
+#include        "gvcproc.h"
 
 #ifndef DISABLE_LTDL
 static char *libdir = GVLIBDIR;
index 6193c9bfc0974275aa634c519b39c50fe75c2937..2f3ee59d777d8a4b16eb154294dfb062f4db420b 100644 (file)
@@ -37,7 +37,9 @@
 #include "cdt.h"
 
 #include "gvplugin_render.h"
-#include "gvc.h"
+#include "gvplugin.h"
+#include "gvcint.h"
+#include "gvcproc.h"
 
 #ifndef DISABLE_CODEGENS
 extern codegen_t PS_CodeGen;
index 6cf223d7ebd8d0edc0acbd106ec86e37f7224177..0972a362dd6d3f538955acc9f6f07e3803b86b92 100644 (file)
@@ -29,7 +29,9 @@
 #include "macros.h"
 
 #include "gvplugin_textlayout.h"
-#include "gvc.h"
+#include "gvplugin.h"
+#include "gvcint.h"
+#include "gvcproc.h"
 
 int gvtextlayout_select(GVC_t * gvc, char *textlayout)
 {
index 33a4d675b8713b414f081cf1fd7bfc548413bb58..a967f4e9ab3688fbae4de071ba4edd0de0f7f128 100644 (file)
@@ -44,7 +44,9 @@
 #include "graph.h"
 
 #include "gvplugin_usershape.h"
-#include "gvc.h"
+#include "gvplugin.h"
+#include "gvcint.h"
+#include "gvcproc.h"
 
 extern point gd_image_size(graph_t * g, char *shapeimagefile);
 extern point ps_image_size(graph_t * g, char *shapeimagefile);
index ef65d86169dc107c416055667f2fe615e4911422..520042c409fe5116fad87335af2aa261360e5c03 100644 (file)
@@ -2,9 +2,9 @@ prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@/@PACKAGE@
 includedir=@includedir@/@PACKAGE@
-
+                                                                                       
 Name: libgvc
-Description: Graphviz context library for plugins
+Description: The GraphVizContext library 
 Version: @VERSION@
 Libs: -L${libdir} -lgvc
 Cflags: -I${includedir}
index 5ec36bb94cd807f97c1e93cfdae34cd68657e106..d27ae9d37f4da302f26aba033be61949190d0836 100644 (file)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-pkgconfigdir = $(libdir)/pkgconfig
-
 AM_CPPFLAGS = \
         -I$(top_srcdir) \
         -I$(top_srcdir)/lib/common \
diff --git a/lib/neatogen/libneatogen.pc.in b/lib/neatogen/libneatogen.pc.in
deleted file mode 100644 (file)
index 775ebdd..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-
-Name: libneatogen
-Description: Undirected layout library
-Version: @VERSION@
-Libs: -L${libdir} -lneatogen
-Cflags: -I${includedir}
index 925c27202fbcdbf106435b9e3d968d88e8e29b66..24ed9b1a9c4152c9235b454d79c30ec7b67110c0 100644 (file)
@@ -1,7 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
 pdfdir = $(pkgdatadir)/doc/pdf
-pkgconfigdir = $(libdir)/pkgconfig
 
 AM_CPPFLAGS = -I$(top_srcdir) \
         -I$(top_srcdir)/lib/common \
@@ -13,7 +12,6 @@ AM_CPPFLAGS = -I$(top_srcdir) \
 
 pkginclude_HEADERS = pack.h
 pkglib_LTLIBRARIES = libpack.la
-pkgconfig_DATA = libpack.pc
 man_MANS = pack.3
 pdf_DATA = pack.pdf
 
diff --git a/lib/pack/libpack.pc.in b/lib/pack/libpack.pc.in
deleted file mode 100644 (file)
index b4d96c7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-                                                                                       
-Name: libpack
-Description: Graph layout packer library
-Version: @VERSION@
-Libs: -L${libdir} -lcommon -lgvrender -lpack -lgraph -lcdt
-Cflags: -I${includedir}
index 35f28488518b8884df44cd2266a2cf479e1f1716..24a7492df097016f5263226315e779ccf91e9453 100644 (file)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-pkgconfigdir = $(libdir)/pkgconfig
-
 AM_CPPFLAGS = \
         -I$(top_srcdir) \
         -I$(top_srcdir)/lib/common \
diff --git a/lib/twopigen/libtwopigen.pc.in b/lib/twopigen/libtwopigen.pc.in
deleted file mode 100644 (file)
index 0b0d423..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@/@PACKAGE@
-includedir=@includedir@/@PACKAGE@
-
-Name: libtwopigen
-Description: Circular layout library
-Version: @VERSION@
-Libs: -L${libdir} -ltwopigen
-Cflags: -I${includedir}
index 8dfb42ba839a9c8a55bc35f3fd3cd73fbfa253b5..f9dd1b26683bae13c69de486d11d5d75789a2f49 100644 (file)
@@ -10,20 +10,7 @@ AM_CPPFLAGS = \
 
 LIBS =  @LIBS@ -lc
 
-if DISABLE_LTDL
-BASELIBS = \
-       $(top_builddir)/lib/graph/libgraph.la \
-       $(top_builddir)/lib/common/libcommon.la \
-       $(top_builddir)/lib/gvc/libgvc.la \
-       $(top_builddir)/plugin/libplugins.la
-else
-BASELIBS = \
-       $(top_builddir)/lib/graph/libgraph.la \
-       $(top_builddir)/lib/common/libcommon.la \
-       $(top_builddir)/lib/gvc/libgvc.la @LIBGEN_LIBS@
-endif
-
-noinst_HEADERS = gv.h
+BASELIBS =  $(top_builddir)/lib/gvc/libgvc.la
 
 pkglib_LTLIBRARIES = 
 TESTS =
index f190e1c9d233a8f30ed8dde1f4202ee41e7569b3..bf76b0df0d7692ce0d0f6e9c806e28ee338fb32b 100644 (file)
@@ -14,7 +14,7 @@
 *              AT&T Research, Florham Park NJ             *
 **********************************************************/
 
-#include "gv.h"
+#include "gvc.h"
 
 GVC_t *gvc;
 
diff --git a/tclpkg/gv/gv.h b/tclpkg/gv/gv.h
deleted file mode 100644 (file)
index d972ea1..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/* $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 "render.h"
index ccf7d78e04251a86ec9f0db2bbc0c2382354cf66..cbb6d2129b1613c4e47335d9144f417000a03589 100644 (file)
@@ -16,7 +16,7 @@
 
 %module gv
 %{
-#include "gv.h"
+#include "gvc.h"
 %}
 
 /* new graph objects */
index 2cdc38c70fe2c3b801cf29227721d3450e0a4b51..ac3bd5c4d9bf61b024a6b72eb8529f5464e17ff4 100644 (file)
@@ -31,22 +31,10 @@ html_DATA = $(html)
 endif
 
 libtcldot_la_SOURCES = tcldot.c tkgen.c $(top_srcdir)/tclpkg/gdtclft/gdtclft.c
-if DISABLE_LTDL
 libtcldot_la_LIBADD = \
        $(top_builddir)/tclpkg/tclhandle/libtclhandle.la \
        $(top_builddir)/tclpkg/tclstubs/libtclstubs.la \
-        $(top_builddir)/lib/graph/libgraph.la \
-       $(top_builddir)/lib/common/libcommon.la \
-       $(top_builddir)/lib/gvc/libgvc.la \
-       $(top_builddir)/plugin/libplugins.la
-else
-libtcldot_la_LIBADD = \
-       $(top_builddir)/tclpkg/tclhandle/libtclhandle.la \
-       $(top_builddir)/tclpkg/tclstubs/libtclstubs.la \
-        $(top_builddir)/lib/graph/libgraph.la \
-       $(top_builddir)/lib/common/libcommon.la \
-       $(top_builddir)/lib/gvc/libgvc.la @LIBGEN_LIBS@
-endif
+       $(top_builddir)/lib/gvc/libgvc.la
 
 if WITH_TCL
 all-local: pkgIndex.tcl
index bf5c8d6bd8800f1f9a1f3532814ea3221ce8f777..568fcd280b6aeca0c6eaf8a9eaa48645066cb26f 100644 (file)
 **********************************************************/
 
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 /* avoid compiler warnings with template changes in Tcl8.4 */
 /*    specifically just the change to Tcl_CmdProc */
 #define USE_NON_CONST
index 5572673de4e770eb55ab690f6b63c93bc6767522..34e5eef1b8d3de0a6a69871304465dbd717de82d 100644 (file)
@@ -18,9 +18,9 @@
 extern "C" {
 #endif
 
+#include "gvc.h"
 #include "tcl.h"
 #include "tclhandle.h"
-#include "render.h"
 
     typedef struct tkgendata_s {
        Tcl_Interp *interp;
index 24e2360279eb76540f21e53067de7e73b4997cd1..00c3836e24aaee5fba720ada6fc322f8c9868398 100644 (file)
  * tkgen.c generate canvas commands to display a graph
  */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 #include "tcldot.h"
 
 #ifdef DMALLOC