|
Graphviz
2.29.20120524.0446
|
00001 /* $Id$ $Revision$ */ 00002 /* vim:set shiftwidth=4 ts=8: */ 00003 00004 /************************************************************************* 00005 * Copyright (c) 2011 AT&T Intellectual Property 00006 * All rights reserved. This program and the accompanying materials 00007 * are made available under the terms of the Eclipse Public License v1.0 00008 * which accompanies this distribution, and is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * 00011 * Contributors: See CVS logs. Details at http://www.graphviz.org/ 00012 *************************************************************************/ 00013 00014 00015 #ifdef HAVE_CONFIG_H 00016 #include "config.h" 00017 #endif 00018 00019 #include "gvplugin_layout.h" 00020 00021 typedef enum { LAYOUT_DOT, } layout_type; 00022 00023 #ifdef WIN32 /*dependencies*/ 00024 #pragma comment( lib, "gvc.lib" ) 00025 #pragma comment( lib, "ingraphs.lib" ) 00026 #pragma comment( lib, "cdt.lib" ) 00027 #pragma comment( lib, "gvortho.lib" ) 00028 00029 #endif 00030 00031 00032 #ifdef WITH_CGRAPH 00033 #pragma comment( lib, "cgraph.lib" ) 00034 #pragma comment( lib, "dotgen2.lib" ) 00035 extern void dot_layout(graph_t * g); 00036 extern void dot_cleanup(graph_t * g); 00037 00038 gvlayout_engine_t dotgen_engine = { 00039 dot_layout, 00040 dot_cleanup, 00041 }; 00042 00043 00044 #else 00045 #pragma comment( lib, "graph.lib" ) 00046 #pragma comment( lib, "dotgen.lib" ) 00047 extern void dot_layout(graph_t * g); 00048 extern void dot_cleanup(graph_t * g); 00049 00050 gvlayout_engine_t dotgen_engine = { 00051 dot_layout, 00052 dot_cleanup, 00053 }; 00054 00055 #endif 00056 00057 00058 00059 00060 00061 gvlayout_features_t dotgen_features = { 00062 LAYOUT_USES_RANKDIR, 00063 }; 00064 00065 gvplugin_installed_t gvlayout_dot_layout[] = { 00066 {LAYOUT_DOT, "dot", 0, &dotgen_engine, &dotgen_features}, 00067 {0, NULL, 0, NULL, NULL} 00068 };
1.7.5