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