diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /boost/tools/build/example/variant | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/tools/build/example/variant')
| -rw-r--r-- | boost/tools/build/example/variant/a.cpp | 7 | ||||
| -rw-r--r-- | boost/tools/build/example/variant/jamfile.jam | 11 | ||||
| -rw-r--r-- | boost/tools/build/example/variant/jamroot.jam | 14 | ||||
| -rw-r--r-- | boost/tools/build/example/variant/libs/jamfile.jam | 6 | ||||
| -rw-r--r-- | boost/tools/build/example/variant/libs/l.cpp | 9 | ||||
| -rw-r--r-- | boost/tools/build/example/variant/readme.txt | 11 |
6 files changed, 58 insertions, 0 deletions
diff --git a/boost/tools/build/example/variant/a.cpp b/boost/tools/build/example/variant/a.cpp new file mode 100644 index 00000000..42b69f33 --- /dev/null +++ b/boost/tools/build/example/variant/a.cpp @@ -0,0 +1,7 @@ +// Copyright Vladimir Prus 2004. +// 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) + +void l(); +int main() { l(); return 0; } diff --git a/boost/tools/build/example/variant/jamfile.jam b/boost/tools/build/example/variant/jamfile.jam new file mode 100644 index 00000000..9f8c580b --- /dev/null +++ b/boost/tools/build/example/variant/jamfile.jam @@ -0,0 +1,11 @@ +# Copyright 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) + + +# By default, build the project with the two variants we have defined in +# jamroot.jam. + +project : default-build crazy super_release ; + +exe a : a.cpp libs//l ; diff --git a/boost/tools/build/example/variant/jamroot.jam b/boost/tools/build/example/variant/jamroot.jam new file mode 100644 index 00000000..e19476cc --- /dev/null +++ b/boost/tools/build/example/variant/jamroot.jam @@ -0,0 +1,14 @@ +# Copyright 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) + + +# Define a build variant which is just combination +# of four properties. +variant crazy : <optimization>speed <inlining>off + <debug-symbols>on <profiling>on ; + +# Define a built variant inherited from 'release'. +# It defines one new property and get all properties +# from parent variant. +variant super_release : release : <define>USE_ASM ; diff --git a/boost/tools/build/example/variant/libs/jamfile.jam b/boost/tools/build/example/variant/libs/jamfile.jam new file mode 100644 index 00000000..4366b762 --- /dev/null +++ b/boost/tools/build/example/variant/libs/jamfile.jam @@ -0,0 +1,6 @@ +# Copyright 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) + + +lib l : l.cpp ; diff --git a/boost/tools/build/example/variant/libs/l.cpp b/boost/tools/build/example/variant/libs/l.cpp new file mode 100644 index 00000000..26cb4b1e --- /dev/null +++ b/boost/tools/build/example/variant/libs/l.cpp @@ -0,0 +1,9 @@ +// Copyright Vladimir Prus 2002-2004. +// 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) + +#ifdef _WIN32 +__declspec(dllexport) +#endif +void l() {} diff --git a/boost/tools/build/example/variant/readme.txt b/boost/tools/build/example/variant/readme.txt new file mode 100644 index 00000000..5ab1b938 --- /dev/null +++ b/boost/tools/build/example/variant/readme.txt @@ -0,0 +1,11 @@ +Copyright 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) + + +This example shows how user can create his own build variants. Two variants are +defined: "crazy", which is just a random combination of properties, and +"super-release", which is inherited from "release", and differs by a single +define. + +See the jamroot.jam for the definitions. |
