Commit 5b87fa62 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Build doxygen pictures with libgd to reduce their size.

Doxygen only knows how to call dot with -Tpng, while using
-Tpng:gd produces pictures that are 10 times smaller.  Use a
simple wrapper around dot to simplify this.

* doc/dot.in: New file, that wrap the system's dot and replace
-Tpng by -Tpng:gd.
* doc/Makefile.am ($(srcdir)/stamp): Depend on dot.
* doc/Doxyfile.in: Update to 1.6.2.
(DOT_PATH): Set to @srcdir@ to use doc/dot instead of the
system's dot.
* configure.ac: Find the absolute path of dot, and generate
the doc/dot script.
parent c63923fa
2010-01-31 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Build doxygen pictures with libgd to reduce their size.
Doxygen only knows how to call dot with -Tpng, while using
-Tpng:gd produces pictures that are 10 times smaller. Use a
simple wrapper around dot to simplify this.
* doc/dot.in: New file, that wrap the system's dot and replace
-Tpng by -Tpng:gd.
* doc/Makefile.am ($(srcdir)/stamp): Depend on dot.
* doc/Doxyfile.in: Update to 1.6.2.
(DOT_PATH): Set to @srcdir@ to use doc/dot instead of the
system's dot.
* configure.ac: Find the absolute path of dot, and generate
the doc/dot script.
2010-01-31 Alexandre Duret-Lutz <adl@lrde.epita.fr>
More Doxygen fixes.
......
......@@ -60,7 +60,9 @@ ad_GCC_OPTIM
adl_NDEBUG
AM_CONDITIONAL([NEVER], [false])
AC_CHECK_PROG([DOT], [dot], [dot])
# We need the absolute path for dot in the "doc/dot" script. Other place
# only require a relative path.
AC_PATH_PROG([DOT], [dot])
AC_CHECK_PROG([LBT], [lbt], [lbt])
AC_CHECK_PROG([LTL2BA], [ltl2ba], [ltl2ba])
AC_CHECK_PROG([MODELLA], [modella], [modella])
......@@ -127,5 +129,6 @@ AC_CONFIG_FILES([
])
AC_CONFIG_FILES([bench/ltl2tgba/ltl2baw.pl:bench/ltl2tgba/ltl2baw.in],
[chmod +x bench/ltl2tgba/ltl2baw.pl])
AC_CONFIG_FILES([doc/dot], [chmod +x doc/dot])
AC_CONFIG_FILES([wrap/python/tests/run], [chmod +x wrap/python/tests/run])
AC_OUTPUT
This diff is collapsed.
......@@ -34,7 +34,7 @@ fast-doc:
$(DOXYGEN)
touch $(srcdir)/stamp
$(srcdir)/stamp: $(srcdir)/Doxyfile.in $(top_srcdir)/configure.ac
$(srcdir)/stamp: $(srcdir)/Doxyfile.in $(top_srcdir)/configure.ac dot
$(MAKE) Doxyfile
-rm -rf spot.html spot.latex
$(DOXYGEN)
......
#!/bin/sh
# Copyright (C) 2010 Laboratoire de Recherche et Développement de
# l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
#
# Spot is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Spot is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Spot; see the file COPYING. If not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Rewrite any -Tpng argument as -Tpng:gd, the resulting files are 10
# times smaller because they are not anti-aliased.
for arg
do
case $arg in
-Tpng) set x "$@" -Tpng:gd;;
*) set x "$@" "$arg";;
esac
shift # x
shift # $arg
done
@DOT@ "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment