Skip to content

Commit

Permalink
v1_32_0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Dec 23, 2010
1 parent 727d410 commit a26a388
Show file tree
Hide file tree
Showing 9,960 changed files with 615,394 additions and 166,443 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
65 changes: 57 additions & 8 deletions Jamfile 100755 → 100644
@@ -1,7 +1,6 @@
#~ Copyright 2003, Rene Rivera. #~ Copyright 2003-2004, Rene Rivera.
#~ Use, modification and distribution are subject to the #~ Distributed under the Boost Software License, Version 1.0.
#~ Boost Software License, Version 1.0. (See accompanying file #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
#~ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


if --help in $(ARGV) if --help in $(ARGV)
{ {
Expand All @@ -14,32 +13,62 @@ Usage:


Options: Options:
--help This message. --help This message.

-sTOOLS=<toolsets> Indicates the tools to build with. -sTOOLS=<toolsets> Indicates the tools to build with.

--layout=<layout> Determines what kind of build layout to use. This
allows one to control the naming of the resulting
libraries, and the locations of the installed
files. Default is 'versioned'. Possible values:

versioned - Uses the Boost standard names
which include version number for Boost the
release and version and name of the
compiler as part of the library names. Also
installs the includes to a versioned
sub-directory.

system - Builds an install without the
Boost standard names, and does not install
includes to a versioned sub-directory. This
is intended for system integrators to build
for packaging of distributions.


Locations: Locations:
--prefix=PREFIX Install architecture independent files here. --prefix=PREFIX Install architecture independent files here.
Default; C:\\Boost on Win32 Default; C:\\Boost on Win32
Default; /usr/local on Unix. Linux, etc. Default; /usr/local on Unix. Linux, etc.

--exec-prefix=EPREFIX Install architecture dependent files here. --exec-prefix=EPREFIX Install architecture dependent files here.
Default; PREFIX Default; PREFIX

--libdir=DIR Install libraries here. --libdir=DIR Install libraries here.
Default; EPREFIX/lib Default; EPREFIX/lib

--includedir=DIR Install source headers here. --includedir=DIR Install source headers here.
Default; PREFIX/include Default; PREFIX/include

--builddir=DIR Build in this location instead of building --builddir=DIR Build in this location instead of building
within the distribution tree. Recomended! within the distribution tree. Recomended!

--stagedir=DIR When staging only, stage to the location. --stagedir=DIR When staging only, stage to the location.
Default; ./stage Default; ./stage


Features: Features:
--with-<library> Build, stage, or install the specified <library>
If used, teh default becomes to only build
indicated libraries.

--without-<library> Do not build, stage, or install the specified --without-<library> Do not build, stage, or install the specified
<library>. By default all libraries attempt to build. <library>. By default all libraries attempt to build.

--with-python-root[=PYTHON_ROOT] --with-python-root[=PYTHON_ROOT]
Build Boost.Python libraries with the Python Build Boost.Python libraries with the Python
devel packages located at PYTHON_ROOT. devel packages located at PYTHON_ROOT.
Default PYTHON_ROOT; C:\\tools\\python on Win32. Default PYTHON_ROOT; C:\\tools\\python on Win32.
Default PYTHON_ROOT; /usr/local on Unix, Linux, etc. Default PYTHON_ROOT; /usr/local on Unix, Linux, etc.
Default PYTHON_ROOT; /usr on Cygwin. Default PYTHON_ROOT; /usr on Cygwin.

--with-pydebug Build Boost.Python libraries using the --with-pydebug Build Boost.Python libraries using the
Python debug runtime. Python debug runtime.
" ; " ;
Expand All @@ -63,6 +92,11 @@ if stage in $(ARGV)
with-install = ; with-install = ;
} }


# what kind of layout are we doing?
local layout = [ MATCH "^--layout=(.*)" : $(ARGV) ] ;
layout ?= versioned ;
layout-$(layout) = true ;

# possible stage only location # possible stage only location
local stage-locate = [ MATCH "^--stagedir=(.*)" : $(ARGV) ] ; local stage-locate = [ MATCH "^--stagedir=(.*)" : $(ARGV) ] ;
stage-locate ?= stage ; stage-locate ?= stage ;
Expand Down Expand Up @@ -102,6 +136,20 @@ if --with-pydebug in $(ARGV)
# libraries to disable building, etc. # libraries to disable building, etc.
local without-libraries = [ MATCH "^--without-(.*)" : $(ARGV) ] ; local without-libraries = [ MATCH "^--without-(.*)" : $(ARGV) ] ;


# libraries to enable
local with-libraries ;
for local arg in $(ARGV)
{
switch $(arg)
{
case --with-python-root=* : local _ ;
case --with-pydebug : local _ ;

case --with-* :
with-libraries += [ MATCH "^--with-(.*)" : $(arg) ] ;
}
}

# #
project-root ; project-root ;


Expand All @@ -115,13 +163,14 @@ version-tag = $(version-tag:J="_") ;
# #
install-subinclude install-subinclude
[ MATCH ^(.*build[/\\:]$(JAMFILE))$ : [ glob-tree $(BOOST_ROOT)/libs : $(JAMFILE) ] ] [ MATCH ^(.*build[/\\:]$(JAMFILE))$ : [ glob-tree $(BOOST_ROOT)/libs : $(JAMFILE) ] ]
: <exclude>$(without-libraries) ; : <exclude>$(without-libraries) <include>$(with-libraries) ;


local lib-sources = [ install-sources lib ] ; local lib-sources = [ install-sources lib ] ;


if $(lib-sources) if $(lib-sources)
{ {
local gNOWARN_INCOMPATIBLE_BUILDS = TRUE ; local gNOWARN_INCOMPATIBLE_BUILDS = TRUE ;
local gUNVERSIONED_VARIANT_TAG = [ cond $(layout-system) : TRUE ] ;


local lib-build = local lib-build =
debug release debug release
Expand All @@ -145,7 +194,7 @@ if $(lib-sources)
$(lib-build) $(lib-build)
[ unless $(with-install) $(with-stage) : <suppress>true ] [ unless $(with-install) $(with-stage) : <suppress>true ]
] ; ] ;
if ! $(gIN_LIB_INCLUDE) if ! $(gIN_LIB_INCLUDE) && $(layout-versioned)
{ {
local unversioned-files ; local unversioned-files ;
if $(with-install) || $(with-stage) if $(with-install) || $(with-stage)
Expand Down Expand Up @@ -187,10 +236,10 @@ if $(lib-sources)
} }
} }


stage $(include-locate:D=)/boost-$(version-tag) stage [ cond $(layout-versioned) : $(include-locate:D=)/boost-$(version-tag) : $(include-locate:D=) ]
: :
[ glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* ] [ glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* ]
[ glob-tree $(BOOST_ROOT)/boost : *.hpp *.ipp *.h ] [ glob-tree $(BOOST_ROOT)/boost : *.hpp *.ipp *.h *.inc ]
: :
<locate>$(include-locate:D) <locate>$(include-locate:D)
<tree-subdirs>$(BOOST_ROOT) <tree-subdirs>$(BOOST_ROOT)
Expand Down
11 changes: 8 additions & 3 deletions Jamfile.v2 100755 → 100644
Expand Up @@ -10,9 +10,14 @@




project boost project boost
: requirements <include>. : requirements <include>$(BOOST_ROOT)
: usage-requirements <include>. # disable auto-linking for all targets here,
# primarily because it caused troubles with V2
<define>BOOST_ALL_NO_LIB=1
: usage-requirements <include>$(BOOST_ROOT)
: build-dir bin.v2
; ;



build-project libs/test/build ; build-project libs/test/build ;
build-project libs/date_time/build ; build-project libs/date_time/build ;
Expand All @@ -24,4 +29,4 @@ build-project libs/graph/build ;
build-project libs/python/build ; build-project libs/python/build ;
build-project libs/thread/build ; build-project libs/thread/build ;
build-project libs/filesystem/build ; build-project libs/filesystem/build ;

build-project libs/program_options/build ;
3 changes: 2 additions & 1 deletion Jamrules 100755 → 100644
Expand Up @@ -11,4 +11,5 @@ project boost ;
path-global BOOST_ROOT : . ; path-global BOOST_ROOT : . ;


# The current version of Boost. # The current version of Boost.
BOOST_VERSION ?= 1.31.0 ; BOOST_VERSION ?= 1.32.0 ;

Empty file modified LICENSE_1_0.txt 100755 → 100644
Empty file.
Empty file modified README 100755 → 100644
Empty file.
Empty file modified boost-build.jam 100755 → 100644
Empty file.
9 changes: 7 additions & 2 deletions boost.css 100755 → 100644
Expand Up @@ -23,11 +23,16 @@ BODY
PRE PRE
{ {
MARGIN-LEFT: 2em; MARGIN-LEFT: 2em;
FONT-FAMILY: Courier; FONT-FAMILY: Courier,
monospace;
} }
CODE CODE
{ {
FONT-FAMILY: Courier; FONT-FAMILY: Courier,
monospace;
}
CODE.as_pre
{
white-space: pre; white-space: pre;
} }
.index .index
Expand Down
Binary file added boost.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions boost/algorithm/minmax.hpp
@@ -0,0 +1,47 @@
// (C) Copyright Herve Bronnimann 2004.
// Use, modification and distribution are subject to 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)

/*
Revision history:
1 July 2004
Split the code into two headers to lessen dependence on
Boost.tuple. (Herve)
26 June 2004
Added the code for the boost minmax library. (Herve)
*/

#ifndef BOOST_ALGORITHM_MINMAX_HPP
#define BOOST_ALGORITHM_MINMAX_HPP

/* PROPOSED STANDARD EXTENSIONS:
*
* minmax(a, b)
* Effect: (b<a) ? std::make_pair(b,a) : std::make_pair(a,b);
*
* minmax(a, b, comp)
* Effect: comp(b,a) ? std::make_pair(b,a) : std::make_pair(a,b);
*
*/

#include <boost/tuple/tuple.hpp> // for using pairs with boost::cref
#include <boost/ref.hpp>

namespace boost {

template <typename T>
tuple< T const&, T const& >
minmax(T const& a, T const& b) {
return (b<a) ? make_tuple(cref(b),cref(a)) : make_tuple(cref(a),cref(b));
}

template <typename T, class BinaryPredicate>
tuple< T const&, T const& >
minmax(T const& a, T const& b, BinaryPredicate comp) {
return comp(b,a) ? make_tuple(cref(b),cref(a)) : make_tuple(cref(a),cref(b));
}

} // namespace boost

#endif // BOOST_ALGORITHM_MINMAX_HPP

0 comments on commit a26a388

Please sign in to comment.