if DISABLE_GVRENDER
BASELIBS = \
$(top_builddir)/lib/common/libcommon.la \
- $(top_builddir)/lib/gvc/libgvc.la @LIBGEN_LIBS@
+ $(top_builddir)/lib/gvc/libgvc.la \
+ $(top_builddir)/plugin/layout/libgvplugin_layout.la @LIBGEN_LIBS@
else
BASELIBS = \
$(top_builddir)/lib/common/libcommon.la \
noinst_HEADERS = gv.h
-pkglib_DATA =
-pkglib_DATA += \
- java/SWIGTYPE_p_Agraph_t.java \
- java/SWIGTYPE_p_Agnode_t.java \
- java/SWIGTYPE_p_Agedge_t.java \
- java/gv.java java/gvJNI.java
-pkglib_DATA += perl/gv.pm
-pkglib_DATA += python/gv.py
-
pkglib_LTLIBRARIES =
-if WITH_SWIG
if WITH_JAVA
pkglib_LTLIBRARIES += libgv_java.la
endif
if WITH_TCL
pkglib_LTLIBRARIES += libgv_tcl.la
endif
-endif
libgv_java_la_SOURCES = gv.cpp gv_java.cpp plugins.c
libgv_java_la_LIBADD = $(BASELIBS) @JAVA_LIBS@
libgv_tcl_la_SOURCES = gv.cpp gv_tcl.cpp plugins.c
libgv_tcl_la_LIBADD = $(BASELIBS) @TCL_LIBS@
-java/SWIGTYPE_p_Agraph_t.java \
-java/SWIGTYPE_p_Agnode_t.java \
-java/SWIGTYPE_p_Agedge_t.java \
-java/gv.java java/gvJNI.java \
gv_java.cpp: gv.i
- $(SWIG) -c++ -java -outdir java -o gv_java.cpp gv.i
+ $(SWIG) -c++ -java -o gv_java.cpp gv.i
-perl/gv.pm \
gv_perl.cpp: gv.i
- $(SWIG) -c++ -perl -outdir perl -o gv_perl.cpp gv.i
+ $(SWIG) -c++ -perl -o gv_perl.cpp gv.i
-python/gv.py \
gv_python.cpp: gv.i
- $(SWIG) -c++ -python -outdir python -o gv_python.cpp gv.i
+ $(SWIG) -c++ -python -o gv_python.cpp gv.i
gv_ruby.cpp: gv.i
- $(SWIG) -c++ -ruby -outdir ruby -o gv_ruby.cpp gv.i
+ $(SWIG) -c++ -ruby -o gv_ruby.cpp gv.i
gv_tcl.cpp: gv.i
- $(SWIG) -c++ -tcl -namespace -outdir tcl -o gv_tcl.cpp gv.i
+ $(SWIG) -c++ -tcl -namespace -o gv_tcl.cpp gv.i
+install-exec-hook:
+ cp $(top_srcdir)/tclpkg/gv/*.java $(DESTDIR)/$(libdir)/@PACKAGE@/
+ cp $(top_srcdir)/tclpkg/gv/*.pm $(DESTDIR)/$(libdir)/@PACKAGE@/
+ cp $(top_srcdir)/tclpkg/gv/*.py $(DESTDIR)/$(libdir)/@PACKAGE@/
+
if WITH_TCL
all-local: pkgIndex.tcl
test: test_java test_perl test_python test_ruby test_tcl
-test_java:
+test_java: libgv_java.la
(cd java; \
ln -fs ../.libs/libgv_java.so libgv.so; \
+ cp -f ../*.java .; \
javac *.java; \
LD_LIBRARY_PATH=. java test)
-test_perl:
+test_perl: libgv_perl.la
(cd perl; \
ln -fs ../.libs/libgv_perl.so gv.so; \
+ cp -f ../*.pl ../*.pm .; \
./test.pl)
-test_python:
+test_python: libgv_python.la
(cd python; \
ln -fs ../.libs/libgv_python.so _gv.so; \
+ cp -f ../*.py .; \
PYTHONPATH=. ./test.py)
-test_ruby:
+test_ruby: libgv_ruby.la
(cd ruby; \
ln -fs ../.libs/libgv_ruby.so gv.so; \
+ cp -f ../*.rb .; \
./test.rb)
-test_tcl:
+test_tcl: libgv_tcl.la
(cd tcl; \
ln -fs ../.libs/libgv_tcl.so libgv_tcl.so; \
+ cp -f ../*.tcl .; \
./test.tcl)
EXTRA_DIST = gv.i \
- java/test.java
- perl/test.pl \
- python/test.py \
- ruby/test.rb \
- tcl/test.tcl \
- java/SWIGTYPE_p_Agraph_t.java \
- java/SWIGTYPE_p_Agnode_t.java \
- java/SWIGTYPE_p_Agedge_t.java \
- java/gv.java \
- java/gvJNI.java \
- perl/gv.pm \
- python/gv.py
-
-CLEANFILES = gv_java.cpp gv_perl.cpp gv_python.cpp gv_ruby.cpp gv_tcl.cpp \
- java/SWIG*.java java/gv*.java java/*.class java/*.so \
- java/*.dot java/*.png \
+ SWIGTYPE_p_Agraph_t.java SWIGTYPE_p_Agnode_t.java SWIGTYPE_p_Agedge_t.java \
+ gv.java gvJNI.java gv.pm gv.py
+
+
+CLEANFILES = java/*.dot java/*.png java/SWIG*.java java/gv*.java java/*.class java/*.so \
perl/gv.pm perl/gv.so perl/*.dot perl/*.png \
python/gv.py python/gv.pyc python/_gv.so python/*.dot python/*.png \
ruby/gv.so ruby/*.dot ruby/*.png \
tcl/libgv_tcl.so tcl/*.dot tcl/*.png pkgIndex.tcl
-DISTCLEANFILES =
+DISTCLEANFILES = gv_java.cpp gv_perl.cpp gv_python.cpp gv_ruby.cpp gv_tcl.cpp \
+ SWIG*.java gv.java gvJNI.java gv.pm gv.py
#include "macros.h"
#include "gvc.h"
+#ifndef DISABLE_GVRENDER
extern gvplugin_t gvplugin_cairo_LTX_plugin,
gvplugin_gd_LTX_plugin,
- gvplugin_text_LTX_plugin,
- gvplugin_layout_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
};