[graph] patch to automatically build libbgl-viz.so and libbgl-viz.a
Hi,
I'm interested in helping make the BGL easier to use right
out-of-the-box. But, I'm not an expert at Boost (or Jamfiles) yet, so
please guide me if this is wrong. I tried to patch the Jamfile so
that it automatically builds the Graphgiz parser libraries
(libbgl-viz.so and libbgl-viz.a). I only tested Jamfile (not
Jamfile.v2) on some Gentoo boxes with gcc-4.1.1 and gcc-3.3.5 and it
worked nicely.
Some other future improvements I would like to do are to improve the
Graphviz parser (to be able to parse more varieties of .dot files) and
to review the documentation and check it for correctness (I already
submitted some patches about half a year ago for a couple mistakes
that I found). Please let me know what you think.
Without further ado, here's the patch:
Index: boost_1_33_1/libs/graph/build/Jamfile
===================================================================
--- boost_1_33_1.orig/libs/graph/build/Jamfile
+++ boost_1_33_1/libs/graph/build/Jamfile
@@ -33,6 +33,21 @@ GRAPHVIZ_DEFS(graphviz_digraph_parser) =
}
local gGENERATOR_FUNCTION(LIB) = bgl-lib-file ;
+ dll bgl-viz
+ : ../src/$(SOURCES).cpp
+ : <sysinclude>$(BOOST_ROOT) <define>YY_NO_UNISTD_H
+ <runtime-link>dynamic
+ <define>BOOST_ALL_DYN_LINK=1
+ # Darwin compiler ICEs if we turn optimization on
+ <darwin><*><debug-symbols>off
+ <darwin><*><optimization>off
+ # Intel compiler ICEs if we turn optimization on
+ <intel-win32><*><optimization>off
+
On 2/26/07, David Baird
+ : debug <inlining>on #inlining prevents linker name clashes due to truncation!
Oops, sorry, my gmail client wrapped this line... (it's not supposed to be wrapped).
participants (1)
-
David Baird