Updated to latest boost headers and layout

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@748 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2014-05-29 10:17:19 +00:00
parent 897c0bdac3
commit 077e046641
7 changed files with 24 additions and 24 deletions

View file

@ -39,10 +39,9 @@ boostbook standalone
<xsl:param>nav.layout=horizontal
;
# not needed anymore once in boost
project example
: requirements
<include>../../../../..
<include>../include
;
rule compile-examples

View file

@ -8,7 +8,12 @@
import testing ;
project : requirements <define>BOOST_AUTO_TEST_MAIN <define>BOOST_ALL_NO_LIB ;
project
: requirements
<define>BOOST_AUTO_TEST_MAIN
<define>BOOST_ALL_NO_LIB
<include>../include
;
rule run-test ( name )
{

View file

@ -143,10 +143,9 @@
</presetdef>
<target name="boost.generate" description="generate boost.mock into ${boost.dir}">
<delete dir="${boost.dir}/boost/mock"/>
<delete dir="${boost.dir}/libs/mock"/>
<copy todir="${boost.dir}/boost/mock">
<fileset dir="${libraries.dir}/turtle" includes="**"/>
<copy todir="${boost.dir}/libs/mock/include/turtle">
<fileset dir="${libraries.dir}/turtle"/>
</copy>
<copy todir="${boostbook.dir}">
<fileset dir="${boost.root}/tools/boostbook" includes="xsl/**,dtd/**"/>
@ -168,45 +167,38 @@
</target>
<target name="boost.convert" description="convert boost.mock in ${boost.dir}">
<move file="${boost.dir}/libs/mock/include/turtle" tofile="${boost.dir}/libs/mock/include/boost/mock"/>
<replaceregexp match="MOCK" replace="BOOST_MOCK" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp,**/*.qbk"/>
</replaceregexp>
<replaceregexp match="BOOST_MOCK_BOOST_MOCK" replace="BOOST_MOCK" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp,**/*.qbk"/>
</replaceregexp>
<replaceregexp match='"([^"]+\.hpp)"' replace="&lt;boost/mock/\1&gt;" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp" excludes="**/detail/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock/include" includes="**/*.hpp" excludes="**/detail/*.hpp"/>
</replaceregexp>
<replaceregexp match='"\.\./([^"]+\.hpp)"' replace="&lt;boost/mock/\1&gt;" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock/include" includes="**/*.hpp"/>
</replaceregexp>
<replaceregexp match='"([^"]+\.hpp)"' replace="&lt;boost/mock/detail/\1&gt;" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/detail/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock/include" includes="**/detail/*.hpp"/>
</replaceregexp>
<replaceregexp match="&lt;turtle/([^&gt;]+)" replace="&lt;boost/mock/\1" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp,**/*.qbk"/>
</replaceregexp>
<replaceregexp match="(namespace mock)" replace="namespace boost${line.separator}{${line.separator}\1" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp,**/*.qbk"/>
</replaceregexp>
<replaceregexp match="} // mock" replace="}${line.separator}}" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp"/>
</replaceregexp>
<replaceregexp match=" mock::" replace=" boost::mock::" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp,**/*.qbk"/>
</replaceregexp>
<replaceregexp match="^mock::" replace="boost::mock::" flags="m">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp,**/*.qbk"/>
</replaceregexp>
<replaceregexp match="http://turtle.sourceforge.net" replace="Boost.Mock" flags="g">
<fileset dir="${boost.dir}/boost/mock" includes="**/*.hpp"/>
<fileset dir="${boost.dir}/libs/mock" includes="**/*.cpp,**/*.hpp"/>
</replaceregexp>
<replaceregexp match="reference.helpers." replace="reference.helpers.boost_" flags="g">
@ -238,15 +230,18 @@
<target name="boost.package" description="package boost.mock">
<zip destfile="${out.dir}/boost-mock.zip">
<fileset dir="${boost.dir}" includes="boost/mock/**"/>
<fileset dir="${boost.dir}" includes="libs/mock/**" excludes="**/bin/**"/>
<fileset dir="${boost.dir}" includes="LICENSE_1_0.txt,Jamroot.jam,Jamfile.v2"/>
<fileset dir="${boost.dir}" includes="LICENSE_1_0.txt"/>
</zip>
<tar destfile="${out.dir}/boost-mock.tar.bz2" compression="bzip2">
<fileset dir="${boost.dir}" includes="libs/mock/**" excludes="**/bin/**"/>
<fileset dir="${boost.dir}" includes="LICENSE_1_0.txt"/>
</tar>
</target>
<target name="documentation" depends="boost.generate,boost.doc" description="generate documentation"/>
<target name="boost" depends="boost.generate,boost.convert,boost.doc,boost.test" description="convert to boost with documentation and tests"/>
<target name="boost" depends="boost.generate,boost.convert,boost.doc,boost.test,boost.package" description="convert to boost with documentation and tests"/>
<target name="release" depends="documentation,package" description="produce release packages">
<fail unless="version" message="missing version property"/>

View file

@ -12,7 +12,7 @@
#pragma warning( push, 0 )
#endif
#include <boost/lambda/lambda.hpp>
#include <boost/spirit/home/phoenix.hpp>
#include <boost/phoenix/phoenix.hpp>
#ifdef BOOST_MSVC
#pragma warning( pop )
#endif

View file

@ -15,8 +15,8 @@
#ifdef BOOST_MSVC
#pragma warning( push, 0 )
#endif
#include <boost/spirit/home/phoenix.hpp>
#include <boost/spirit/home/phoenix/bind.hpp>
#include <boost/phoenix/phoenix.hpp>
#include <boost/phoenix/bind.hpp>
#ifndef BOOST_MSVC // this produces an ICE with all versions of MSVC
#include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp>

View file

@ -22,6 +22,7 @@
# define MOCK_MAX_ARGS 9
#elif BOOST_PP_LESS(9, MOCK_MAX_ARGS)
# define MOCK_USE_BOOST_PHOENIX
# define BOOST_PHOENIX_USE_V2_OVER_V3
#endif
#ifndef MOCK_MAX_SEQUENCES

View file

@ -11,7 +11,7 @@
#include "../config.hpp"
#ifdef MOCK_USE_BOOST_PHOENIX
#include <boost/spirit/home/phoenix/bind.hpp>
#include <boost/phoenix/bind.hpp>
#else
#include <boost/bind.hpp>
#endif