From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/boost/tools/build/test/prebuilt/ext/a.cpp | 17 ++++++++ src/boost/tools/build/test/prebuilt/ext/debug/a.h | 13 ++++++ .../tools/build/test/prebuilt/ext/jamfile.jam | 13 ++++++ .../tools/build/test/prebuilt/ext/jamfile2.jam | 41 ++++++++++++++++++ .../tools/build/test/prebuilt/ext/jamfile3.jam | 48 ++++++++++++++++++++++ .../tools/build/test/prebuilt/ext/jamroot.jam | 5 +++ .../tools/build/test/prebuilt/ext/release/a.h | 13 ++++++ src/boost/tools/build/test/prebuilt/hello.cpp | 20 +++++++++ src/boost/tools/build/test/prebuilt/jamfile.jam | 13 ++++++ src/boost/tools/build/test/prebuilt/jamroot.jam | 4 ++ 10 files changed, 187 insertions(+) create mode 100644 src/boost/tools/build/test/prebuilt/ext/a.cpp create mode 100644 src/boost/tools/build/test/prebuilt/ext/debug/a.h create mode 100644 src/boost/tools/build/test/prebuilt/ext/jamfile.jam create mode 100644 src/boost/tools/build/test/prebuilt/ext/jamfile2.jam create mode 100644 src/boost/tools/build/test/prebuilt/ext/jamfile3.jam create mode 100644 src/boost/tools/build/test/prebuilt/ext/jamroot.jam create mode 100644 src/boost/tools/build/test/prebuilt/ext/release/a.h create mode 100644 src/boost/tools/build/test/prebuilt/hello.cpp create mode 100644 src/boost/tools/build/test/prebuilt/jamfile.jam create mode 100644 src/boost/tools/build/test/prebuilt/jamroot.jam (limited to 'src/boost/tools/build/test/prebuilt') diff --git a/src/boost/tools/build/test/prebuilt/ext/a.cpp b/src/boost/tools/build/test/prebuilt/ext/a.cpp new file mode 100644 index 000000000..c49a04153 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/a.cpp @@ -0,0 +1,17 @@ +// 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 +// + +#ifdef _WIN32 +__declspec(dllexport) +#endif +#ifdef RELEASE +void release() {} +#else +void debug() {} +#endif diff --git a/src/boost/tools/build/test/prebuilt/ext/debug/a.h b/src/boost/tools/build/test/prebuilt/ext/debug/a.h new file mode 100644 index 000000000..31b318226 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/debug/a.h @@ -0,0 +1,13 @@ +// 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 +// + +#ifdef _WIN32 +__declspec(dllimport) +#endif +void debug(); diff --git a/src/boost/tools/build/test/prebuilt/ext/jamfile.jam b/src/boost/tools/build/test/prebuilt/ext/jamfile.jam new file mode 100644 index 000000000..e563f0d74 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/jamfile.jam @@ -0,0 +1,13 @@ +# 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 ext + : requirements release:RELEASE + ; + +lib a : a.cpp ; + +install dist : a : release:release + debug:debug ; diff --git a/src/boost/tools/build/test/prebuilt/ext/jamfile2.jam b/src/boost/tools/build/test/prebuilt/ext/jamfile2.jam new file mode 100644 index 000000000..6481808c6 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/jamfile2.jam @@ -0,0 +1,41 @@ + +import os ; + +local dll-suffix = so ; +local prefix = "lib" ; +if [ os.name ] in NT +{ + if [ MATCH ^(gcc) : $toolset ] + { + dll-suffix = dll.a ; + prefix = lib ; + } + else + { + dll-suffix = lib ; + prefix = "" ; + } +} +else if [ os.name ] in CYGWIN +{ + dll-suffix = dll ; +} +else if [ os.name ] in MACOSX +{ + dll-suffix = dylib ; +} + +project ext ; + +lib a : + : debug/$(prefix)a.$(dll-suffix) debug + : + : debug + ; + +lib a : + : release/$(prefix)a.$(dll-suffix) release + : + : release + ; + diff --git a/src/boost/tools/build/test/prebuilt/ext/jamfile3.jam b/src/boost/tools/build/test/prebuilt/ext/jamfile3.jam new file mode 100644 index 000000000..be2257fa2 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/jamfile3.jam @@ -0,0 +1,48 @@ + +# This Jamfile is the same as Jamfile2, except that +# it tries to access prebuilt targets using absolute +# paths. It used to be broken on Windows. + +import os ; + +local dll-suffix = so ; +local prefix = "lib" ; +if [ os.name ] in NT +{ + if [ MATCH ^(gcc) : $toolset ] + { + dll-suffix = dll.a ; + prefix = lib ; + } + else + { + dll-suffix = lib ; + prefix = "" ; + } +} +else if [ os.name ] in CYGWIN +{ + dll-suffix = dll ; +} +else if [ os.name ] in MACOSX +{ + dll-suffix = dylib ; +} + +project ext ; + +# Assumed bjam was invoked from the project root +local pwd = [ PWD ] ; + +lib a : + : $(pwd)/ext/debug/$(prefix)a.$(dll-suffix) debug + : + : debug + ; + +lib a : + : $(pwd)/ext/release/$(prefix)a.$(dll-suffix) release + : + : release + ; + diff --git a/src/boost/tools/build/test/prebuilt/ext/jamroot.jam b/src/boost/tools/build/test/prebuilt/ext/jamroot.jam new file mode 100644 index 000000000..c7617d5d3 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/jamroot.jam @@ -0,0 +1,5 @@ +# Copyright 2002, 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) + + diff --git a/src/boost/tools/build/test/prebuilt/ext/release/a.h b/src/boost/tools/build/test/prebuilt/ext/release/a.h new file mode 100644 index 000000000..9ab71d88c --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/release/a.h @@ -0,0 +1,13 @@ +// 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 +// + +#ifdef _WIN32 +__declspec(dllimport) +#endif +void release(); diff --git a/src/boost/tools/build/test/prebuilt/hello.cpp b/src/boost/tools/build/test/prebuilt/hello.cpp new file mode 100644 index 000000000..4c1ab7036 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/hello.cpp @@ -0,0 +1,20 @@ +// 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 +// + +#include + +int main() +{ + #ifdef RELEASE + release(); + #else + debug(); + #endif + return 0; +} diff --git a/src/boost/tools/build/test/prebuilt/jamfile.jam b/src/boost/tools/build/test/prebuilt/jamfile.jam new file mode 100644 index 000000000..18b731ae1 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/jamfile.jam @@ -0,0 +1,13 @@ +# 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 release:RELEASE + ; + +use-project /ext : ext ; + +exe hello : hello.cpp /ext//a ; + diff --git a/src/boost/tools/build/test/prebuilt/jamroot.jam b/src/boost/tools/build/test/prebuilt/jamroot.jam new file mode 100644 index 000000000..f022c0d64 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/jamroot.jam @@ -0,0 +1,4 @@ +# Copyright 2002, 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) + -- cgit v1.2.3