mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Inspection report fixes.
[SVN r41212]
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# (C) Copyright David Abrahams 2002. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
# Copyright 2002 Dave Abrahams
|
||||
# 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)
|
||||
|
||||
import sequence ;
|
||||
import set ;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# (C) Copyright Rene Rivera, 2003.
|
||||
#
|
||||
# See accompanying license for terms and conditions of use.
|
||||
#
|
||||
# Copyright 2003 Rene Rivera
|
||||
# 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)
|
||||
|
||||
# Modifiers are generalized generators that mutate targets in specific ways.
|
||||
# This structure allows for grouping a variety of functionality in an
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright 2004,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)
|
||||
|
||||
import quickbook
|
||||
;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright 2007 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)
|
||||
|
||||
import common ;
|
||||
import "class" : new ;
|
||||
@@ -7,26 +10,26 @@ rule generate-example ( project name : property-set : sources * )
|
||||
local result ;
|
||||
for local s in $(sources)
|
||||
{
|
||||
#local ea = [ $(s).action ] ;
|
||||
#local ep = [ $(ea).properties ] ;
|
||||
|
||||
# Create a new action, that takes the source target
|
||||
# and runs 'common.copy' comamnd on it.
|
||||
local a = [
|
||||
new non-scanning-action $(s) : common.copy : $(property-set) ] ;
|
||||
|
||||
local source-name = [ $(s).name ] ;
|
||||
|
||||
# Create the target to represent the result of the action.
|
||||
# The target has the name that was specified in Jamfile
|
||||
# and passed here via the 'name' parameter,
|
||||
# and the same type and project as the source.
|
||||
result += [ new file-target $(name)
|
||||
: [ $(s).type ]
|
||||
: $(project)
|
||||
: $(a) ] ;
|
||||
}
|
||||
#local ea = [ $(s).action ] ;
|
||||
#local ep = [ $(ea).properties ] ;
|
||||
|
||||
# Create a new action, that takes the source target
|
||||
# and runs 'common.copy' comamnd on it.
|
||||
local a = [
|
||||
new non-scanning-action $(s) : common.copy : $(property-set) ] ;
|
||||
|
||||
local source-name = [ $(s).name ] ;
|
||||
|
||||
# Create the target to represent the result of the action.
|
||||
# The target has the name that was specified in Jamfile
|
||||
# and passed here via the 'name' parameter,
|
||||
# and the same type and project as the source.
|
||||
result += [ new file-target $(name)
|
||||
: [ $(s).type ]
|
||||
: $(project)
|
||||
: $(a) ] ;
|
||||
}
|
||||
return $(result) ;
|
||||
}
|
||||
|
||||
generate a2 : a.cpp : <generating-rule>@generate-example ;
|
||||
generate a2 : a.cpp : <generating-rule>@generate-example ;
|
||||
|
||||
@@ -10,3 +10,6 @@ flexible.
|
||||
|
||||
Please consult the docs for more explanations.
|
||||
|
||||
# Copyright 2007 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)
|
||||
|
||||
@@ -2,3 +2,9 @@
|
||||
int main()
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
Copyright 2007 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)
|
||||
*/
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright 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)
|
||||
|
||||
import soap ;
|
||||
exe foo : foo.gci : <server>on ;
|
||||
exe foo : foo.gci : <server>on ;
|
||||
|
||||
@@ -2,3 +2,6 @@
|
||||
This example shows how to declare a new generator class. It's necessary
|
||||
when generator's logic is more complex that just running a single tool.
|
||||
|
||||
# Copyright 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)
|
||||
|
||||
@@ -2,4 +2,9 @@
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*
|
||||
Copyright 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)
|
||||
*/
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright 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)
|
||||
|
||||
# This is example of a fictional code generator tool.
|
||||
# It accepts a single input of type '.gci' and produces
|
||||
@@ -19,47 +22,47 @@ feature.feature server : off on : incidental ;
|
||||
class soap-generator : generator
|
||||
{
|
||||
import "class" : new ;
|
||||
|
||||
|
||||
rule __init__ ( * : * )
|
||||
{
|
||||
generator.__init__ $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ;
|
||||
}
|
||||
|
||||
|
||||
rule run ( project name ? : property-set : sources * )
|
||||
{
|
||||
if ! $(sources[2])
|
||||
{
|
||||
# Accept only single source.
|
||||
local t = [ $(sources[1]).type ] ;
|
||||
if $(t) = GCI
|
||||
if $(t) = GCI
|
||||
{
|
||||
# The type is correct.
|
||||
|
||||
|
||||
# If no output name is specified, guess it from sources.
|
||||
if ! $(name)
|
||||
{
|
||||
name = [ generator.determine-output-name $(sources) ] ;
|
||||
}
|
||||
|
||||
|
||||
# Produce one output, using just copy.
|
||||
local a = [ new action $(sources[1])
|
||||
local a = [ new action $(sources[1])
|
||||
: common.copy : $(property-set) ] ;
|
||||
local t = [ new file-target $(name) : CPP : $(project)
|
||||
: $(a) ] ;
|
||||
|
||||
|
||||
# If in server mode, create another output -- an
|
||||
# empty file. If this were a real SOAP generator, we
|
||||
# might have created a single action, and two targets
|
||||
# both using that action.
|
||||
local t2 ;
|
||||
if [ $(property-set).get <server> ] = "on"
|
||||
{
|
||||
local t2 ;
|
||||
if [ $(property-set).get <server> ] = "on"
|
||||
{
|
||||
local a = [ new action : soap.touch : $(property-set) ] ;
|
||||
t2 = [ new file-target $(name)_server : CPP : $(project)
|
||||
: $(a) ] ;
|
||||
}
|
||||
return [ virtual-target.register $(t) ]
|
||||
[ virtual-target.register $(t2) ] ;
|
||||
return [ virtual-target.register $(t) ]
|
||||
[ virtual-target.register $(t2) ] ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# Copyright 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)
|
||||
|
||||
import python_helpers ;
|
||||
|
||||
ECHO "test1:" [ python_helpers.test1 ] ;
|
||||
ECHO "test2:" [ python_helpers.test2 1234 : 5678 ] ;
|
||||
ECHO "test2:" [ python_helpers.test2 1234 : 5678 ] ;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright 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)
|
||||
|
||||
# Import the Python rules to Boost.Build
|
||||
PYTHON_IMPORT_RULE python_helpers : test1 : python_helpers : test1 ;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright 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)
|
||||
|
||||
# Declare a couple of functions called from Boost.Build
|
||||
#
|
||||
@@ -10,6 +13,6 @@
|
||||
|
||||
def test1(l):
|
||||
return ["foo", "bar"]
|
||||
|
||||
|
||||
def test2(l, l2):
|
||||
return [l[0], l2[0]]
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
# Copyright 2003 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)
|
||||
|
||||
# Regression test: virtual targets with different dependency properties
|
||||
# were considered different by 'virtual-target.register', but the code
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright 2003 Dave Abrahams
|
||||
# Copyright 2002, 2003, 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)
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
|
||||
t = Tester()
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
# Copyright 2003 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)
|
||||
|
||||
from BoostBuild import Tester, List
|
||||
import string
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2004. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
# Copyright 2004 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)
|
||||
|
||||
# This test tries to stage the same file to the same location by *two*
|
||||
# different stage rules, in two different projects. This is not exactly
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Copyright 2001 Dave Abrahams
|
||||
# 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)
|
||||
|
||||
rule echo_args ( a b ? c ? : d + : e * )
|
||||
{
|
||||
ECHO a= $(a) b= $(b) c= $(c) ":" d= $(d) ":" e= $(e) ;
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
# This file is empty; it just suppresses warnings
|
||||
# This file is empty; it just suppresses warnings
|
||||
|
||||
# Copyright 2001 Dave Abrahams
|
||||
# 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)
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
# Copyright 2003 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)
|
||||
|
||||
# This file is template for Boost.Build tests. It creates a simple
|
||||
# project that builds one exe from one source, and checks that the exe
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
# Copyright 2003 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)
|
||||
|
||||
# This file is template for Boost.Build tests. It creates a simple
|
||||
# project that builds one exe from one source, and checks that the exe
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
# Copyright (C) Vladimir Prus 2004. Permission to copy, use, modify, sell and
|
||||
# distribute this software is granted provided this copyright notice appears in
|
||||
# all copies. This software is provided "as is" without express or implied
|
||||
# warranty, and with no claim as to its suitability for any purpose.
|
||||
# Copyright 2004 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)
|
||||
|
||||
# Tests that on gcc, we correctly report problem when static runtime
|
||||
# is requested when building DLL.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright 2003, 2005 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)
|
||||
|
||||
# This project-root.jam also serves the role of Jamfile
|
||||
project lib3 ;
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
Comprehensive tests for Boost.Build v2; requires Python. To test, execute:
|
||||
|
||||
python test_all.py
|
||||
|
||||
# Copyright 2002 Dave Abrahams
|
||||
# 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)
|
||||
|
||||
@@ -545,11 +545,9 @@ t.cleanup()
|
||||
|
||||
<p class="revision">Last modified: Mar 11, 2005</p>
|
||||
|
||||
<p>© Copyright Vladimir Prus 2002, 2003, 2004, 2005. Permission to
|
||||
copy, use, modify, sell and distribute this document is granted provided
|
||||
this copyright notice appears in all copies. This document is provided
|
||||
``as is'' without express or implied warranty, and with no claim as to
|
||||
its suitability for any purpose.</p>
|
||||
<p>© Copyright Vladimir Prus 2002, 2003, 2004, 2005.
|
||||
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)</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user