[serialization] Patch for building with borland & Boost.Build v.2

Hallo, Robert. The enclosed patch makes it possible to build the serialization library with Borland's 5.6.4 and 5.8.2 compilers with BBv2, provided SPIRIT_ROOT is correctly set. I only tested it in the 1.34 release branch. Let me know what you think of it. Cheers, Nicola Musatti Index: Jamfile.v2 =================================================================== RCS file: /cvsroot/boost/boost/libs/serialization/build/Jamfile.v2,v retrieving revision 1.7 diff -d -u -r1.7 Jamfile.v2 --- Jamfile.v2 6 Mar 2006 08:20:39 -0000 1.7 +++ Jamfile.v2 25 Nov 2006 16:24:58 -0000 @@ -10,6 +10,28 @@ : source-location ../src ; +rule include-spirit ( properties * ) +{ + local result ; + local SPIRIT_ROOT = [ modules.peek : SPIRIT_ROOT ] ; + for tset in borland # vc iw + { + if ( <toolset>$(tset) in $(properties) ) + { + if ( $(SPIRIT_ROOT) ) + { + result = <cxxflags>-I$(SPIRIT_ROOT) ; + } + else + { + echo **** spirit 1.6x required to build library with this compiler **** ; + result = <build>no ; + } + } + } + return $(result) ; +} + SOURCES = basic_archive basic_archive_impl @@ -56,15 +78,17 @@ lib boost_serialization : $(SOURCES).cpp : <toolset>msvc:<cxxflags>/Gy - <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 + <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 + <conditional>@include-spirit : : <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 ; lib boost_wserialization - : $(WSOURCES).cpp boost_serialization + : $(WSOURCES).cpp boost_serialization : <toolset>msvc:<cxxflags>/Gy - <link>shared:<define>BOOST_WSERIALIZATION_DYN_LINK=1 - : + <link>shared:<define>BOOST_WSERIALIZATION_DYN_LINK=1 + <conditional>@include-spirit + : : <link>shared:<define>BOOST_SERIALIZATION_DYN_LINK=1 ;

Nicola Musatti wrote:
+rule include-spirit ( properties * ) +{ + local result ; + local SPIRIT_ROOT = [ modules.peek : SPIRIT_ROOT ] ; + for tset in borland # vc iw
Just a precaution... change that to "for local tset in ..." -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
participants (2)
-
Nicola Musatti
-
Rene Rivera