Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83220 - in sandbox/contract: . doc/pdf doc/test
From: lorcaminiti_at_[hidden]
Date: 2013-02-28 18:37:12


Author: lcaminiti
Date: 2013-02-28 18:37:10 EST (Thu, 28 Feb 2013)
New Revision: 83220
URL: http://svn.boost.org/trac/boost/changeset/83220

Log:
Adding files like from Boost trunk/.
Added:
   sandbox/contract/Jamroot (contents, props changed)
   sandbox/contract/doc/pdf/build (contents, props changed)
   sandbox/contract/doc/test/test.mml (contents, props changed)
   sandbox/contract/index.html (contents, props changed)

Added: sandbox/contract/Jamroot
==============================================================================
--- (empty file)
+++ sandbox/contract/Jamroot 2013-02-28 18:37:10 EST (Thu, 28 Feb 2013)
@@ -0,0 +1,260 @@
+# Copyright Vladimir Prus 2002-2006.
+# Copyright Dave Abrahams 2005-2006.
+# Copyright Rene Rivera 2005-2007.
+# Copyright Douglas Gregor 2005.
+#
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+# Usage:
+#
+# bjam [options] [properties] [install|stage]
+#
+# Builds and installs Boost.
+#
+# Targets and Related Options:
+#
+# install Install headers and compiled library files to the
+# ======= configured locations (below).
+#
+# --prefix=<PREFIX> Install architecture independent files here.
+# Default; C:\Boost on Win32
+# Default; /usr/local on Unix. Linux, etc.
+#
+# --exec-prefix=<EPREFIX> Install architecture dependent files here.
+# Default; <PREFIX>
+#
+# --libdir=<DIR> Install library files here.
+# Default; <EPREFIX>/lib
+#
+# --includedir=<HDRDIR> Install header files here.
+# Default; <PREFIX>/include
+#
+# stage Build and install only compiled library files to the
+# ===== stage directory.
+#
+# --stagedir=<STAGEDIR> Install library files here
+# Default; ./stage
+#
+# Other Options:
+#
+# --build-type=<type> Build the specified pre-defined set of variations of
+# the libraries. Note, that which variants get built
+# depends on what each library supports.
+#
+# -- minimal -- (default) Builds a minimal set of
+# variants. On Windows, these are static
+# multithreaded libraries in debug and release
+# modes, using shared runtime. On Linux, these are
+# static and shared multithreaded libraries in
+# release mode.
+#
+# -- complete -- Build all possible variations.
+#
+# --build-dir=DIR Build in this location instead of building within
+# the distribution tree. Recommended!
+#
+# --show-libraries Display the list of Boost libraries that require
+# build and installation steps, and then exit.
+#
+# --layout=<layout> Determine whether to choose library names and header
+# locations such that multiple versions of Boost or
+# multiple compilers can be used on the same system.
+#
+# -- versioned -- Names of boost binaries include
+# the Boost version number, name and version of
+# the compiler and encoded build properties. Boost
+# headers are installed in a subdirectory of
+# <HDRDIR> whose name contains the Boost version
+# number.
+#
+# -- tagged -- Names of boost binaries include the
+# encoded build properties such as variant and
+# threading, but do not including compiler name
+# and version, or Boost version. This option is
+# useful if you build several variants of Boost,
+# using the same compiler.
+#
+# -- system -- Binaries names do not include the
+# Boost version number or the name and version
+# number of the compiler. Boost headers are
+# installed directly into <HDRDIR>. This option is
+# intended for system integrators building
+# distribution packages.
+#
+# The default value is 'versioned' on Windows, and
+# 'system' on Unix.
+#
+# --buildid=ID Add the specified ID to the name of built libraries.
+# The default is to not add anything.
+#
+# --python-buildid=ID Add the specified ID to the name of built libraries
+# that depend on Python. The default is to not add
+# anything. This ID is added in addition to --buildid.
+#
+# --help This message.
+#
+# --with-<library> Build and install the specified <library>. If this
+# option is used, only libraries specified using this
+# option will be built.
+#
+# --without-<library> Do not build, stage, or install the specified
+# <library>. By default, all libraries are built.
+#
+# Properties:
+#
+# toolset=toolset Indicate the toolset to build with.
+#
+# variant=debug|release Select the build variant
+#
+# link=static|shared Whether to build static or shared libraries
+#
+# threading=single|multi Whether to build single or multithreaded binaries
+#
+# runtime-link=static|shared
+# Whether to link to static or shared C and C++
+# runtime.
+#
+
+# TODO:
+# - handle boost version
+# - handle python options such as pydebug
+
+import boostcpp ;
+import package ;
+
+import sequence ;
+import xsltproc ;
+import set ;
+import path ;
+
+path-constant BOOST_ROOT : . ;
+constant BOOST_VERSION : 1.54.0 ;
+constant BOOST_JAMROOT_MODULE : $(__name__) ;
+
+boostcpp.set-version $(BOOST_VERSION) ;
+
+project boost
+ : requirements <include>.
+ # Disable auto-linking for all targets here, primarily because it caused
+ # troubles with V2.
+ <define>BOOST_ALL_NO_LIB=1
+ # Used to encode variant in target name. See the 'tag' rule below.
+ <tag>@$(__name__).tag
+ <conditional>@handle-static-runtime
+ # The standard library Sun compilers use by default has no chance
+ # of working with Boost. Override it.
+ <toolset>sun:<stdlib>sun-stlport
+ # Comeau does not support shared lib
+ <toolset>como:<link>static
+ <toolset>como-linux:<define>_GNU_SOURCE=1
+ # When building docs within Boost, we want the standard Boost style
+ <xsl:param>boost.defaults=Boost
+ : usage-requirements <include>.
+ : build-dir bin.v2
+ ;
+
+# This rule is called by Boost.Build to determine the name of target. We use it
+# to encode the build variant, compiler name and boost version in the target
+# name.
+#
+rule tag ( name : type ? : property-set )
+{
+ return [ boostcpp.tag $(name) : $(type) : $(property-set) ] ;
+}
+
+rule handle-static-runtime ( properties * )
+{
+ # Using static runtime with shared libraries is impossible on Linux, and
+ # dangerous on Windows. Therefore, we disallow it. This might be drastic,
+ # but it was disabled for a while without anybody complaining.
+
+ # For CW, static runtime is needed so that std::locale works.
+ if <link>shared in $(properties) && <runtime-link>static in $(properties) &&
+ ! ( <toolset>cw in $(properties) )
+ {
+ ECHO "error: link=shared together with runtime-link=static is not allowed" ;
+ ECHO "error: such property combination is either impossible " ;
+ ECHO "error: or too dangerious to be of any use" ;
+ EXIT ;
+ }
+}
+
+all-libraries = [ MATCH .*libs/(.*)/build/.* : [ glob libs/*/build/Jamfile.v2 ]
+ [ glob libs/*/build/Jamfile ] ] ;
+
+all-libraries = [ sequence.unique $(all-libraries) ] ;
+# The function_types library has a Jamfile, but it's used for maintenance
+# purposes, there's no library to build and install.
+all-libraries = [ set.difference $(all-libraries) : function_types ] ;
+
+# Setup convenient aliases for all libraries.
+
+local rule explicit-alias ( id : targets + )
+{
+ alias $(id) : $(targets) ;
+ explicit $(id) ;
+}
+
+# First, the complicated libraries: where the target name in Jamfile is
+# different from its directory name.
+explicit-alias prg_exec_monitor : libs/test/build//boost_prg_exec_monitor ;
+explicit-alias test_exec_monitor : libs/test/build//boost_test_exec_monitor ;
+explicit-alias unit_test_framework : libs/test/build//boost_unit_test_framework ;
+explicit-alias bgl-vis : libs/graps/build//bgl-vis ;
+explicit-alias serialization : libs/serialization/build//boost_serialization ;
+explicit-alias wserialization : libs/serialization/build//boost_wserialization ;
+for local l in $(all-libraries)
+{
+ if ! $(l) in test graph serialization
+ {
+ explicit-alias $(l) : libs/$(l)/build//boost_$(l) ;
+ }
+}
+
+alias headers : : : : <include>. ;
+explicit headers ;
+
+# Make project ids of all libraries known.
+for local l in $(all-libraries)
+{
+ use-project /boost/$(l) : libs/$(l)/build ;
+}
+
+# This rule should be called from libraries' Jamfiles and will create two
+# targets, "install" and "stage", that will install or stage that library. The
+# --prefix option is respected, but --with and --without options, naturally, are
+# ignored.
+#
+# - libraries -- list of library targets to install.
+#
+rule boost-install ( libraries * )
+{
+ package.install install
+ : <dependency>/boost//install-proper-headers $(install-requirements)
+ : # No binaries
+ : $(libraries)
+ : # No headers, it is handled by the dependency.
+ ;
+
+ install stage : $(libraries) : <location>$(BOOST_STAGE_LOCATE) ;
+
+ module [ CALLER_MODULE ]
+ {
+ explicit stage ;
+ explicit install ;
+ }
+}
+
+headers =
+ # The .SUNWCCh files are present in tr1 include directory and have to be
+ # installed (see http://lists.boost.org/Archives/boost/2007/05/121430.php).
+ [ path.glob-tree $(BOOST_ROOT)/boost : *.hpp *.ipp *.h *.inc *.SUNWCCh : CVS .svn ]
+ [ path.glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* : CVS .svn ]
+ [ path.glob boost/tr1/tr1 : * : bcc32 sun CVS .svn ]
+ ;
+
+# Declare special top-level targets that build and install the desired variants
+# of the libraries.
+boostcpp.declare-targets $(all-libraries) : $(headers) ;

Added: sandbox/contract/doc/pdf/build
==============================================================================
--- (empty file)
+++ sandbox/contract/doc/pdf/build 2013-02-28 18:37:10 EST (Thu, 28 Feb 2013)
@@ -0,0 +1,23 @@
+#!/bin/bash
+boost_version=$(grep 'define.*BOOST_LIB_VERSION' ../../boost/version.hpp | sed 's/.*"\([^"]*\)".*/\1/')
+echo Boost version tag = $boost_version
+(cd ../../libs/accumulators/doc && bjam -a) 2>&1 | tee build.log
+(cd ../../libs/container/doc && rm -rf *.pdf && bjam -a pdfinstall xsl:param=fop1.extensions=1 && cp *.pdf ../../../doc/pdf) 2>&1 | tee -a build.log
+(cd ../../libs/interprocess/doc && rm -rf *.pdf && bjam -a pdfinstall xsl:param=fop1.extensions=1 && cp *.pdf ../../../doc/pdf) 2>&1 | tee -a build.log
+(cd ../../libs/intrusive/doc && rm -rf *.pdf && bjam -a pdfinstall xsl:param=fop1.extensions=1 && cp *.pdf ../../../doc/pdf) 2>&1 | tee -a build.log
+(cd ../../libs/geometry/doc/src/docutils/tools/doxygen_xml2qbk && bjam release) 2>&1 | tee -a build.log
+(cd ../../libs/functional/overloaded_function/doc && rm -rf *.pdf && bjam -a pdfinstall && cp *.pdf ../../../../doc/pdf) 2>&1 | tee -a build.log
+(cd ../../libs/local_function/doc && rm -rf *.pdf && bjam -a pdfinstall && cp *.pdf ../../../doc/pdf) 2>&1 | tee -a build.log
+(cd ../../libs/utility/identity_type/doc && rm -rf *.pdf && bjam -a pdf_doc_install && cp *.pdf ../../../../doc/pdf) 2>&1 | tee -a build.log
+(cd ../../libs/numeric/odeint/doc && rm -rf *.pdf && bjam -a --hash --enable-index pdfinstall && cp *.pdf ../../../../doc/pdf) 2>&1 | tee -a build.log
+cp ../../dist/bin/doxygen_xml2qbk* /usr/local/bin
+(cd ../../libs/geometry/doc && rm -rf *.pdf && ./make_qbk.py && bjam pdfinstall -a xsl:param=fop1.extensions=1 xsl:param=xep.extensions=0 && cp *.pdf ../../../doc/pdf) 2>&1 | tee -a build.log
+bjam -a --enable-index pdf -d2 xsl:param=fop1.extensions=0 xsl:param=xep.extensions=1 2>&1 | tee -a build.log
+rm -rf boost_${boost_version}_pdf
+mkdir boost_${boost_version}_pdf
+mv *.pdf boost_${boost_version}_pdf
+
+
+
+
+

Added: sandbox/contract/doc/test/test.mml
==============================================================================
--- (empty file)
+++ sandbox/contract/doc/test/test.mml 2013-02-28 18:37:10 EST (Thu, 28 Feb 2013)
@@ -0,0 +1,30 @@
+<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <mrow>
+ <mtext>asinh</mtext>
+ <mfenced>
+ <mrow>
+ <mi>x</mi>
+ </mrow>
+ </mfenced>
+ <mo>&#x2248;</mo>
+ <mi>x</mi>
+ <mo>&#x2212;</mo>
+ <mfrac>
+ <mrow>
+ <msup>
+ <mi>x</mi>
+ <mn>3</mn>
+ </msup>
+ </mrow>
+ <mn>6</mn>
+ </mfrac>
+ <mspace width="1em"></mspace>
+ <mo>;</mo>
+ <mspace width="1em"></mspace>
+ <mi>x</mi>
+ <mo>&lt;</mo>
+ <msqrt>
+ <mi>&#x03B5;</mi>
+ </msqrt>
+ </mrow>
+</math>

Added: sandbox/contract/index.html
==============================================================================
--- (empty file)
+++ sandbox/contract/index.html 2013-02-28 18:37:10 EST (Thu, 28 Feb 2013)
@@ -0,0 +1,125 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Boost C++ Libraries</title>
+ <link rel="stylesheet" href="doc/src/boostbook.css" type="text/css" />
+</head>
+
+<body>
+ <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
+ <tr>
+ <td width="277">
+ <a href="index.html">
+ <img src="boost.png" alt="boost.png (6897 bytes)" align="middle" width="277" height="86" border="0"/></a></td>
+ <td width="337" align="middle">
+ <h2 style="text-align: center">Release 1.54.0</h2>
+ </td>
+ </tr>
+ </table>
+
+ <table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#D7EEFF" height="26" width="671">
+ <tr>
+ <td height="16" width="661">Getting Started&nbsp;&nbsp;<font color="#FFFFFF">&nbsp;
+ </font>&nbsp; Libraries&nbsp;&nbsp;<font color="#FFFFFF">&nbsp;
+ </font>&nbsp; Tools &nbsp;<font color="#FFFFFF">&nbsp;
+ </font>&nbsp; Web Site&nbsp;&nbsp;<font color="#FFFFFF">&nbsp;
+ </font>&nbsp; News&nbsp;&nbsp;<font color="#FFFFFF">&nbsp;
+ </font>&nbsp; Community&nbsp;&nbsp;<font color="#FFFFFF">&nbsp;
+ </font>&nbsp; FAQ&nbsp;&nbsp;<font color="#FFFFFF">&nbsp;
+ </font>&nbsp; More Info</td>
+ </tr>
+ </table>
+
+
+ <h2 class="title">Welcome to the Boost C++ Libraries</h2>
+
+ <p>Boost provides free peer-reviewed portable C++ source libraries.</p>
+
+ <p>We emphasize libraries that work well with the C++ Standard Library.
+ Boost libraries are intended to be widely useful, and usable across a broad
+ spectrum of applications. The <a href=
+ "http://www.boost.org/users/license.html">Boost license</a> encourages both
+ commercial and non-commercial use.</p>
+
+ <p>We aim to establish "existing practice" and provide reference
+ implementations so that Boost libraries are suitable for eventual
+ standardization. Ten Boost libraries are already included in the <a href=
+ "http://www.open-std.org/jtc1/sc22/wg21/">C++ Standards Committee's</a>
+ Library Technical Report (<a href=
+ "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1745.pdf">TR1</a>)
+ and will be included in the upcoming revision of the C++ Standard. More
+ Boost libraries are proposed for the upcoming <a href=
+ "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1810.html">TR2</a>.</p>
+
+ <h3>Changes in this release</h3>
+
+ <p>This release includes five new libraries
+ (Atomic,
+ Coroutine,
+ Lockfree,
+ Multiprecision and
+ Numeric/Odeint),
+ as well as updates to many existing libraries. See
+ <a href="http://www.boost.org/users/history/version_1_54_0.html">Release
+ History</a> for more information.</p>
+
+ <h3>Getting Started</h3>
+
+ <p>If Boost hasn't already been installed on your system, follow the
+ Getting Started Guide to
+ complete the installation. But if you've reached to this point by
+ installing Boost from a Windows pre-build executable or a pre-built Linux
+ and Unix distribution package, that's already been completed. Likewise, if
+ you're reading this on your organization's internal web server, the
+ installation is probably already complete.</p>
+
+ <h3>Contents</h3>
+
+ <p>The release directory tree contains almost all of Boost; documentation,
+ sources, headers, scripts, tools, and everything else a Boost user might
+ need!</p>
+
+ <h3>Library Documentation</h3>
+
+ <p>The starting point for the documentation of individual libraries is the
+ Libraries page, which gives a brief
+ description of each library and links to its documentation.</p>
+
+ <h3>Web Site</h3>
+
+ <p>Some general interest or often changing Boost information lives only on
+ the Boost web site. The release contains
+ links to the site, so while browsing it you'll see occasional broken links
+ if you aren't connected to the Internet. But everything needed to use the
+ Boost libraries is contained within the release.</p>
+
+ <h3>Background</h3>
+
+ <p>Read the introductory material
+ to help you understand what Boost is about and to help in educating your
+ organization about Boost.</p>
+
+ <h3>Community</h3>
+
+ <p>Boost welcomes and thrives on participation from a variety of
+ individuals and organizations. Many avenues for participation are available
+ in the Boost Community.</p>
+
+ <div class="copyright-footer">
+ <p>Copyright &copy; 2008 Beman Dawes, Rene Rivera</p>
+
+ <p>Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or copy
+ at <a href=
+ "http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt>)</p>
+
+ <p>This software is <a href="
http://www.opensource.org/">Open Source
+ Initiative</a> approved Open Source Software.</p>
+
+ <p>Open Source Initiative Approved is a trademark of the Open Source
+ Initiative.</p>
+ </div>
+</body>
+</html>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk