diff options
Diffstat (limited to 'src/boost/tools/build/test/prebuilt/ext')
-rw-r--r-- | src/boost/tools/build/test/prebuilt/ext/a.cpp | 14 | ||||
-rw-r--r-- | src/boost/tools/build/test/prebuilt/ext/debug/a.h | 10 | ||||
-rw-r--r-- | src/boost/tools/build/test/prebuilt/ext/jamfile.jam | 13 | ||||
-rw-r--r-- | src/boost/tools/build/test/prebuilt/ext/jamfile2.jam | 41 | ||||
-rw-r--r-- | src/boost/tools/build/test/prebuilt/ext/jamfile3.jam | 48 | ||||
-rw-r--r-- | src/boost/tools/build/test/prebuilt/ext/jamroot.jam | 5 | ||||
-rw-r--r-- | src/boost/tools/build/test/prebuilt/ext/release/a.h | 10 |
7 files changed, 141 insertions, 0 deletions
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..cb6e14e03 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/a.cpp @@ -0,0 +1,14 @@ +// Copyright (c) 2003 Vladimir Prus +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE.txt or copy at +// https://www.bfgroup.xyz/b2/LICENSE.txt) + +#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..2691a8b42 --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/debug/a.h @@ -0,0 +1,10 @@ +// Copyright (c) 2003 Vladimir Prus +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE.txt or copy at +// https://www.bfgroup.xyz/b2/LICENSE.txt) + +#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..62cf00313 --- /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.txt or https://www.bfgroup.xyz/b2/LICENSE.txt) + + +project ext + : requirements <variant>release:<define>RELEASE + ; + +lib a : a.cpp ; + +install dist : a : <variant>release:<location>release + <variant>debug:<location>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 : + : <file>debug/$(prefix)a.$(dll-suffix) <variant>debug + : + : <include>debug + ; + +lib a : + : <file>release/$(prefix)a.$(dll-suffix) <variant>release + : + : <include>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 : + : <file>$(pwd)/ext/debug/$(prefix)a.$(dll-suffix) <variant>debug + : + : <include>debug + ; + +lib a : + : <file>$(pwd)/ext/release/$(prefix)a.$(dll-suffix) <variant>release + : + : <include>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..67160ada5 --- /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.txt or https://www.bfgroup.xyz/b2/LICENSE.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..2e35f4bcb --- /dev/null +++ b/src/boost/tools/build/test/prebuilt/ext/release/a.h @@ -0,0 +1,10 @@ +// Copyright (c) 2003 Vladimir Prus +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE.txt or copy at +// https://www.bfgroup.xyz/b2/LICENSE.txt) + +#ifdef _WIN32 +__declspec(dllimport) +#endif +void release(); |