|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79865 - in trunk/tools/build/v2: . build test
From: jurko.gospodnetic_at_[hidden]
Date: 2012-08-04 18:40:26
Author: jurko
Date: 2012-08-04 18:40:25 EDT (Sat, 04 Aug 2012)
New Revision: 79865
URL: http://svn.boost.org/trac/boost/changeset/79865
Log:
Boost Build cleanup - minor stylistic changes.
Text files modified:
trunk/tools/build/v2/build-system.jam | 1 -
trunk/tools/build/v2/build/project.jam | 3 +--
trunk/tools/build/v2/build/toolset.jam | 10 ++++++----
trunk/tools/build/v2/test/using.py | 20 +++++---------------
4 files changed, 12 insertions(+), 22 deletions(-)
Modified: trunk/tools/build/v2/build-system.jam
==============================================================================
--- trunk/tools/build/v2/build-system.jam (original)
+++ trunk/tools/build/v2/build-system.jam 2012-08-04 18:40:25 EDT (Sat, 04 Aug 2012)
@@ -559,7 +559,6 @@
current-project = [ project.target [ project.load "." ] ] ;
}
-
# Load the default toolset module if no other has already been specified.
if ! [ feature.values <toolset> ]
{
Modified: trunk/tools/build/v2/build/project.jam
==============================================================================
--- trunk/tools/build/v2/build/project.jam (original)
+++ trunk/tools/build/v2/build/project.jam 2012-08-04 18:40:25 EDT (Sat, 04 Aug 2012)
@@ -953,8 +953,7 @@
}
# If '--build-dir' is specified, change the build dir for the project.
- local global-build-dir =
- [ modules.peek project : .global-build-dir ] ;
+ local global-build-dir = [ modules.peek project : .global-build-dir ] ;
if $(global-build-dir)
{
Modified: trunk/tools/build/v2/build/toolset.jam
==============================================================================
--- trunk/tools/build/v2/build/toolset.jam (original)
+++ trunk/tools/build/v2/build/toolset.jam 2012-08-04 18:40:25 EDT (Sat, 04 Aug 2012)
@@ -2,7 +2,8 @@
# Copyright 2005 Rene Rivera
# Copyright 2002, 2003, 2004, 2005, 2006 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
# Support for toolset definition.
@@ -36,7 +37,8 @@
rule using ( toolset-module : * )
{
import $(toolset-module) ;
- $(toolset-module).init $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
+ $(toolset-module).init $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9)
+ ;
}
@@ -497,8 +499,8 @@
local rule-or-module = $(.rule-or-module.$(f)) ;
if ( [ set.difference
$(.$(rule-or-module).condition.$(f)) :
- $(prohibited-properties) ]
- || ! $(.$(rule-or-module).condition.$(f))
+ $(prohibited-properties) ]
+ || ! $(.$(rule-or-module).condition.$(f))
) && ( ! $(.$(rule-or-module).variable.$(f)) in $(prohibited-vars) )
{
local rule_ = [ MATCH "[^.]*\.(.*)" : $(rule-or-module) ] ;
Modified: trunk/tools/build/v2/test/using.py
==============================================================================
--- trunk/tools/build/v2/test/using.py (original)
+++ trunk/tools/build/v2/test/using.py 2012-08-04 18:40:25 EDT (Sat, 04 Aug 2012)
@@ -9,32 +9,22 @@
t = BoostBuild.Tester()
-t.write("sub/a.cpp", """
-int main() {}
-""")
-
-t.write("jamroot.jam", """
-using some_tool ;
-""")
-
-t.write("some_tool.jam", """
+t.write("jamroot.jam", "using some_tool ;")
+t.write("some_tool.jam", """\
import project ;
project.initialize $(__name__) ;
rule init ( ) { }
""")
-t.write("some_tool.py", """
+t.write("some_tool.py", """\
from b2.manager import get_manager
-
get_manager().projects().initialize(__name__)
-
def init():
pass
""")
-t.write("sub/jamfile.jam", """
-exe a : a.cpp ;
-""")
+t.write("sub/a.cpp", "int main() {}\n")
+t.write("sub/jamfile.jam", "exe a : a.cpp ;")
t.run_build_system(subdir="sub")
t.expect_addition("sub/bin/$toolset/debug/a.exe")
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