diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/boost/tools/build/test/project-test4 | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/tools/build/test/project-test4')
15 files changed, 150 insertions, 0 deletions
diff --git a/src/boost/tools/build/test/project-test4/a.cpp b/src/boost/tools/build/test/project-test4/a.cpp new file mode 100644 index 000000000..ccecbb414 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/a.cpp @@ -0,0 +1,8 @@ +// Copyright (c) 2003 Vladimir Prus +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// http://www.boost.org +// diff --git a/src/boost/tools/build/test/project-test4/a_gcc.cpp b/src/boost/tools/build/test/project-test4/a_gcc.cpp new file mode 100644 index 000000000..ccecbb414 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/a_gcc.cpp @@ -0,0 +1,8 @@ +// Copyright (c) 2003 Vladimir Prus +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// http://www.boost.org +// diff --git a/src/boost/tools/build/test/project-test4/jamfile.jam b/src/boost/tools/build/test/project-test4/jamfile.jam new file mode 100644 index 000000000..a34d5f2db --- /dev/null +++ b/src/boost/tools/build/test/project-test4/jamfile.jam @@ -0,0 +1,11 @@ +# Copyright 2003 Dave Abrahams +# Copyright 2002, 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) + + +project test : requirements <include>everything <threading>single ; + +make a.exe : a.obj lib//b.obj/<optimization>speed : yfc-link ; +make b.exe : a.obj : yfc-link : <define>MACROS ; +make a.obj : a.cpp : yfc-compile ; diff --git a/src/boost/tools/build/test/project-test4/jamfile3.jam b/src/boost/tools/build/test/project-test4/jamfile3.jam new file mode 100644 index 000000000..9770362d7 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/jamfile3.jam @@ -0,0 +1,5 @@ + +make a.exe : a.obj lib//b.obj/<optimization>on a_gcc.obj : yfc-link : <toolset>gcc ; +make a.exe : a.obj lib//b.obj/<optimization>on : yfc-link : <threading>multi ; +make a.obj : a.cpp : yfc-compile ; +make a_gcc.obj : a_gcc.cpp : yfc-compile ; diff --git a/src/boost/tools/build/test/project-test4/jamfile4.jam b/src/boost/tools/build/test/project-test4/jamfile4.jam new file mode 100644 index 000000000..e3257801a --- /dev/null +++ b/src/boost/tools/build/test/project-test4/jamfile4.jam @@ -0,0 +1,4 @@ + +project test : requirements <include>everything <threading>single ; + +build-project lib2 ; diff --git a/src/boost/tools/build/test/project-test4/jamfile5.jam b/src/boost/tools/build/test/project-test4/jamfile5.jam new file mode 100644 index 000000000..1010be5e4 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/jamfile5.jam @@ -0,0 +1,6 @@ + +project test : requirements <include>everything <threading>single ; + +make a.exe : a.obj lib//b.obj/<variant>release : yfc-link ; +make b.exe : a.obj : yfc-link : <define>MACROS ; +make a.obj : a.cpp : yfc-compile ; diff --git a/src/boost/tools/build/test/project-test4/jamroot.jam b/src/boost/tools/build/test/project-test4/jamroot.jam new file mode 100644 index 000000000..d8cf571ae --- /dev/null +++ b/src/boost/tools/build/test/project-test4/jamroot.jam @@ -0,0 +1,68 @@ +# Copyright 2002, 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) + +import os ; +import gcc ; +import property ; +import toolset ; + +rule properties-as-path ( properties * ) +{ + local r ; + for local p in $(properties) + { + if $(p:G) != <action> + { + r += $(p) ; + } + } + return [ property.as-path + [ property.remove incidental : $(r) ] ] ; +} + + +toolset.flags yfc-compile KNOWN-PROPERTIES : <toolset> <optimization> ; +toolset.flags yfc-link KNOWN-PROPERTIES : <toolset> <optimization> ; + + +rule yfc-compile ( target : sources * : property-set * ) +{ + PROPERTIES on $(target) = [ properties-as-path $(property-set) ] ; +} + +actions yfc-compile +{ + echo $(PROPERTIES) > $(<) + echo $(>) >> $(<) +} + +rule yfc-link ( target : sources * : property-set * ) +{ + PROPERTIES on $(target) = [ properties-as-path $(property-set) ] ; +} + +actions yfc-link +{ + echo $(PROPERTIES) > $(<) + echo $(>) >> $(<) +} + +if [ os.name ] = VMS +{ + actions yfc-compile + { + PIPE WRITE SYS$OUTPUT "$(PROPERTIES)" | TYPE SYS$INPUT /OUT=$(<:W) + PIPE WRITE SYS$OUTPUT "$(>:J= ",")" | APPEND /NEW SYS$INPUT $(<:W) + } + + actions yfc-link + { + PIPE WRITE SYS$OUTPUT "$(PROPERTIES)" | TYPE SYS$INPUT /OUT=$(<:W) + OPEN /APPEND FOUT $(<:W) + WRITE FOUT "$(>:J= ",")" + CLOSE FOUT + } +} + +#IMPORT $(__name__) : yfc-compile yfc-link : : yfc-compile yfc-link ; diff --git a/src/boost/tools/build/test/project-test4/lib/b.cpp b/src/boost/tools/build/test/project-test4/lib/b.cpp new file mode 100644 index 000000000..ccecbb414 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/lib/b.cpp @@ -0,0 +1,8 @@ +// Copyright (c) 2003 Vladimir Prus +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// http://www.boost.org +// diff --git a/src/boost/tools/build/test/project-test4/lib/jamfile.jam b/src/boost/tools/build/test/project-test4/lib/jamfile.jam new file mode 100644 index 000000000..1bdb7c122 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/lib/jamfile.jam @@ -0,0 +1,6 @@ +# Copyright 2002 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) + + +make b.obj : b.cpp : yfc-compile ; diff --git a/src/boost/tools/build/test/project-test4/lib/jamfile1.jam b/src/boost/tools/build/test/project-test4/lib/jamfile1.jam new file mode 100644 index 000000000..be2c3649a --- /dev/null +++ b/src/boost/tools/build/test/project-test4/lib/jamfile1.jam @@ -0,0 +1,2 @@ + +make b.obj : b.cpp : yfc-compile ; diff --git a/src/boost/tools/build/test/project-test4/lib/jamfile2.jam b/src/boost/tools/build/test/project-test4/lib/jamfile2.jam new file mode 100644 index 000000000..d47274bdf --- /dev/null +++ b/src/boost/tools/build/test/project-test4/lib/jamfile2.jam @@ -0,0 +1,4 @@ + +project lib : requirements <threading>multi ; + +make b.obj : b.cpp : yfc-compile ; diff --git a/src/boost/tools/build/test/project-test4/lib/jamfile3.jam b/src/boost/tools/build/test/project-test4/lib/jamfile3.jam new file mode 100644 index 000000000..73a78324b --- /dev/null +++ b/src/boost/tools/build/test/project-test4/lib/jamfile3.jam @@ -0,0 +1,2 @@ + +make b.obj : b.cpp : yfc-compile : <rtti>off ; diff --git a/src/boost/tools/build/test/project-test4/lib2/jamfile.jam b/src/boost/tools/build/test/project-test4/lib2/jamfile.jam new file mode 100644 index 000000000..389492bf0 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/lib2/jamfile.jam @@ -0,0 +1,8 @@ +# Copyright 2002 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) + + +project + : requirements <rtti>off + ; diff --git a/src/boost/tools/build/test/project-test4/lib2/jamfile2.jam b/src/boost/tools/build/test/project-test4/lib2/jamfile2.jam new file mode 100644 index 000000000..94b144d06 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/lib2/jamfile2.jam @@ -0,0 +1,4 @@ + +project mylib + : requirements <rtti>off + ; diff --git a/src/boost/tools/build/test/project-test4/readme.txt b/src/boost/tools/build/test/project-test4/readme.txt new file mode 100644 index 000000000..0c0ba2ca4 --- /dev/null +++ b/src/boost/tools/build/test/project-test4/readme.txt @@ -0,0 +1,6 @@ +Copyright 2002 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 checks for correct properties of generated and used targets. |