mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Regression example for Rene
[SVN r14457]
This commit is contained in:
9
examples/property_rule/Jamfile
Normal file
9
examples/property_rule/Jamfile
Normal file
@@ -0,0 +1,9 @@
|
||||
subproject tools/build/examples/property_rule ;
|
||||
|
||||
rule add-include ( toolset variant : properties * )
|
||||
{
|
||||
return $(properties) <sysinclude>$($(gTOP))/inc ;
|
||||
}
|
||||
|
||||
lib foo : foo.cpp : add-include <inlining>on ;
|
||||
exe bar : bar.cpp <lib>foo : add-include ;
|
||||
7
examples/property_rule/bar.cpp
Normal file
7
examples/property_rule/bar.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
// 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.
|
||||
#include <foo.hpp>
|
||||
int main() { foo(); return 0; }
|
||||
7
examples/property_rule/foo.cpp
Normal file
7
examples/property_rule/foo.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
// 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.
|
||||
#include <foo.hpp>
|
||||
void foo() {}
|
||||
11
examples/property_rule/inc/foo.hpp
Normal file
11
examples/property_rule/inc/foo.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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.
|
||||
#ifndef FOO_DWA2002712_HPP
|
||||
# define FOO_DWA2002712_HPP
|
||||
|
||||
void foo();
|
||||
|
||||
#endif // FOO_DWA2002712_HPP
|
||||
1
examples/property_rule/project-root.jam
Normal file
1
examples/property_rule/project-root.jam
Normal file
@@ -0,0 +1 @@
|
||||
# empty
|
||||
9
v1/example/property_rule/Jamfile
Normal file
9
v1/example/property_rule/Jamfile
Normal file
@@ -0,0 +1,9 @@
|
||||
subproject tools/build/examples/property_rule ;
|
||||
|
||||
rule add-include ( toolset variant : properties * )
|
||||
{
|
||||
return $(properties) <sysinclude>$($(gTOP))/inc ;
|
||||
}
|
||||
|
||||
lib foo : foo.cpp : add-include <inlining>on ;
|
||||
exe bar : bar.cpp <lib>foo : add-include ;
|
||||
7
v1/example/property_rule/bar.cpp
Normal file
7
v1/example/property_rule/bar.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
// 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.
|
||||
#include <foo.hpp>
|
||||
int main() { foo(); return 0; }
|
||||
7
v1/example/property_rule/foo.cpp
Normal file
7
v1/example/property_rule/foo.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
// 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.
|
||||
#include <foo.hpp>
|
||||
void foo() {}
|
||||
11
v1/example/property_rule/inc/foo.hpp
Normal file
11
v1/example/property_rule/inc/foo.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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.
|
||||
#ifndef FOO_DWA2002712_HPP
|
||||
# define FOO_DWA2002712_HPP
|
||||
|
||||
void foo();
|
||||
|
||||
#endif // FOO_DWA2002712_HPP
|
||||
1
v1/example/property_rule/project-root.jam
Normal file
1
v1/example/property_rule/project-root.jam
Normal file
@@ -0,0 +1 @@
|
||||
# empty
|
||||
Reference in New Issue
Block a user