From 6a918fb0a4279ee10b54cc4d2eb4ffaabc8fef49 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 14 Jul 2002 20:03:56 +0000 Subject: [PATCH] Regression example for Rene [SVN r14457] --- examples/property_rule/Jamfile | 9 +++++++++ examples/property_rule/bar.cpp | 7 +++++++ examples/property_rule/foo.cpp | 7 +++++++ examples/property_rule/inc/foo.hpp | 11 +++++++++++ examples/property_rule/project-root.jam | 1 + v1/example/property_rule/Jamfile | 9 +++++++++ v1/example/property_rule/bar.cpp | 7 +++++++ v1/example/property_rule/foo.cpp | 7 +++++++ v1/example/property_rule/inc/foo.hpp | 11 +++++++++++ v1/example/property_rule/project-root.jam | 1 + 10 files changed, 70 insertions(+) create mode 100644 examples/property_rule/Jamfile create mode 100644 examples/property_rule/bar.cpp create mode 100644 examples/property_rule/foo.cpp create mode 100644 examples/property_rule/inc/foo.hpp create mode 100644 examples/property_rule/project-root.jam create mode 100644 v1/example/property_rule/Jamfile create mode 100644 v1/example/property_rule/bar.cpp create mode 100644 v1/example/property_rule/foo.cpp create mode 100644 v1/example/property_rule/inc/foo.hpp create mode 100644 v1/example/property_rule/project-root.jam diff --git a/examples/property_rule/Jamfile b/examples/property_rule/Jamfile new file mode 100644 index 000000000..cd920d8a6 --- /dev/null +++ b/examples/property_rule/Jamfile @@ -0,0 +1,9 @@ +subproject tools/build/examples/property_rule ; + +rule add-include ( toolset variant : properties * ) +{ + return $(properties) $($(gTOP))/inc ; +} + +lib foo : foo.cpp : add-include on ; +exe bar : bar.cpp foo : add-include ; diff --git a/examples/property_rule/bar.cpp b/examples/property_rule/bar.cpp new file mode 100644 index 000000000..e84b8be7a --- /dev/null +++ b/examples/property_rule/bar.cpp @@ -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 +int main() { foo(); return 0; } diff --git a/examples/property_rule/foo.cpp b/examples/property_rule/foo.cpp new file mode 100644 index 000000000..0694c41f3 --- /dev/null +++ b/examples/property_rule/foo.cpp @@ -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 +void foo() {} diff --git a/examples/property_rule/inc/foo.hpp b/examples/property_rule/inc/foo.hpp new file mode 100644 index 000000000..62f6bd892 --- /dev/null +++ b/examples/property_rule/inc/foo.hpp @@ -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 diff --git a/examples/property_rule/project-root.jam b/examples/property_rule/project-root.jam new file mode 100644 index 000000000..1bb8bf6d7 --- /dev/null +++ b/examples/property_rule/project-root.jam @@ -0,0 +1 @@ +# empty diff --git a/v1/example/property_rule/Jamfile b/v1/example/property_rule/Jamfile new file mode 100644 index 000000000..cd920d8a6 --- /dev/null +++ b/v1/example/property_rule/Jamfile @@ -0,0 +1,9 @@ +subproject tools/build/examples/property_rule ; + +rule add-include ( toolset variant : properties * ) +{ + return $(properties) $($(gTOP))/inc ; +} + +lib foo : foo.cpp : add-include on ; +exe bar : bar.cpp foo : add-include ; diff --git a/v1/example/property_rule/bar.cpp b/v1/example/property_rule/bar.cpp new file mode 100644 index 000000000..e84b8be7a --- /dev/null +++ b/v1/example/property_rule/bar.cpp @@ -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 +int main() { foo(); return 0; } diff --git a/v1/example/property_rule/foo.cpp b/v1/example/property_rule/foo.cpp new file mode 100644 index 000000000..0694c41f3 --- /dev/null +++ b/v1/example/property_rule/foo.cpp @@ -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 +void foo() {} diff --git a/v1/example/property_rule/inc/foo.hpp b/v1/example/property_rule/inc/foo.hpp new file mode 100644 index 000000000..62f6bd892 --- /dev/null +++ b/v1/example/property_rule/inc/foo.hpp @@ -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 diff --git a/v1/example/property_rule/project-root.jam b/v1/example/property_rule/project-root.jam new file mode 100644 index 000000000..1bb8bf6d7 --- /dev/null +++ b/v1/example/property_rule/project-root.jam @@ -0,0 +1 @@ +# empty