]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/static_and_shared_library.py
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / test / static_and_shared_library.py
CommitLineData
7c673cae
FG
1#!/usr/bin/python
2
3# Copyright 2002, 2003 Dave Abrahams
4# Copyright 2002, 2003, 2005 Vladimir Prus
5# Distributed under the Boost Software License, Version 1.0.
6# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
7
8import BoostBuild
9
10t = BoostBuild.Tester(use_test_config=False)
11t.write("jamroot.jam", "")
12t.write("lib/c.cpp", "int bar() { return 0; }\n")
13t.write("lib/jamfile.jam", """\
14static-lib auxilliary1 : c.cpp ;
15lib auxilliary2 : c.cpp ;
16""")
17
18def reset():
19 t.rm("lib/bin")
20
21t.run_build_system(subdir='lib')
b32b8144 22t.expect_addition("lib/bin/$toolset/debug*/" * BoostBuild.List("c.obj "
7c673cae
FG
23 "auxilliary1.lib auxilliary2.dll"))
24t.expect_nothing_more()
25
26reset()
27t.run_build_system(["link=shared"], subdir="lib")
b32b8144 28t.expect_addition("lib/bin/$toolset/debug*/" * BoostBuild.List("c.obj "
7c673cae
FG
29 "auxilliary1.lib auxilliary2.dll"))
30t.expect_nothing_more()
31
32reset()
33t.run_build_system(["link=static"], subdir="lib")
b32b8144 34t.expect_addition("lib/bin/$toolset/debug/link-static*/" * BoostBuild.List(
7c673cae
FG
35 "c.obj auxilliary1.lib auxilliary2.lib"))
36t.expect_nothing_more()
37
38t.cleanup()