diff options
Diffstat (limited to 'tools/build/v2/example/libraries')
-rw-r--r-- | tools/build/v2/example/libraries/app/app.cpp | 15 | ||||
-rw-r--r-- | tools/build/v2/example/libraries/app/jamfile.jam | 9 | ||||
-rw-r--r-- | tools/build/v2/example/libraries/jamroot.jam | 4 | ||||
-rw-r--r-- | tools/build/v2/example/libraries/util/foo/bar.cpp | 13 | ||||
-rw-r--r-- | tools/build/v2/example/libraries/util/foo/include/lib1.h | 10 | ||||
-rw-r--r-- | tools/build/v2/example/libraries/util/foo/jamfile.jam | 9 |
6 files changed, 60 insertions, 0 deletions
diff --git a/tools/build/v2/example/libraries/app/app.cpp b/tools/build/v2/example/libraries/app/app.cpp new file mode 100644 index 0000000000..f62c1c35db --- /dev/null +++ b/tools/build/v2/example/libraries/app/app.cpp @@ -0,0 +1,15 @@ +// 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 <lib1.h> + +int main() +{ + foo(); +} diff --git a/tools/build/v2/example/libraries/app/jamfile.jam b/tools/build/v2/example/libraries/app/jamfile.jam new file mode 100644 index 0000000000..ed2054e130 --- /dev/null +++ b/tools/build/v2/example/libraries/app/jamfile.jam @@ -0,0 +1,9 @@ +# 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) + + +# Declare a executable file, which uses a library. Note that +# includes that for library will be automatically used +# when compiling 'app.cpp' +exe app : app.cpp /library-example/foo//bar ; diff --git a/tools/build/v2/example/libraries/jamroot.jam b/tools/build/v2/example/libraries/jamroot.jam new file mode 100644 index 0000000000..5e0dc48148 --- /dev/null +++ b/tools/build/v2/example/libraries/jamroot.jam @@ -0,0 +1,4 @@ + +use-project /library-example/foo : util/foo ; + +build-project app ; diff --git a/tools/build/v2/example/libraries/util/foo/bar.cpp b/tools/build/v2/example/libraries/util/foo/bar.cpp new file mode 100644 index 0000000000..e6339ee9bb --- /dev/null +++ b/tools/build/v2/example/libraries/util/foo/bar.cpp @@ -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(dllexport) +#endif +void foo() {} diff --git a/tools/build/v2/example/libraries/util/foo/include/lib1.h b/tools/build/v2/example/libraries/util/foo/include/lib1.h new file mode 100644 index 0000000000..50f5e19d20 --- /dev/null +++ b/tools/build/v2/example/libraries/util/foo/include/lib1.h @@ -0,0 +1,10 @@ +// 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 +// + +void foo(); diff --git a/tools/build/v2/example/libraries/util/foo/jamfile.jam b/tools/build/v2/example/libraries/util/foo/jamfile.jam new file mode 100644 index 0000000000..7b6359ea4e --- /dev/null +++ b/tools/build/v2/example/libraries/util/foo/jamfile.jam @@ -0,0 +1,9 @@ +# Copyright 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) + + +project + : usage-requirements <include>include ; + +lib bar : bar.cpp ; |