2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-10 23:32:20 +00:00
Files
build/test/tag.py
Vladimir Prus 34b0c5d51d Correct the copyright.
[SVN r19325]
2003-07-28 08:25:29 +00:00

61 lines
1.8 KiB
Python

#!/usr/bin/python
# Copyright (C) Pedro Ferreira 2003. Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears in
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
from BoostBuild import Tester, List
t = Tester()
t.write("project-root.jam", "")
t.write("Jamfile", """
local tags = <variant>debug:<tag>_d <variant>release:<tag>_r <variant>profile:<tag>_p <link>shared:<tag>s <link>static:<tag>t ;
exe a : a.cpp : $(tags) ;
lib b : a.cpp : $(tags) ;
stage c : a ;
""")
t.write("a.cpp", """
int main()
{
return 0;
}
#ifdef _MSC_VER
__declspec (dllexport) void x () {}
#endif
""")
file_list = \
List("bin/$toolset/debug/main-target-a/a_ds.exe") + \
List("bin/$toolset/debug/main-target-b/b_ds.dll") + \
List("c/a_ds.exe") + \
List("bin/$toolset/release/main-target-a/a_rs.exe") + \
List("bin/$toolset/release/main-target-b/b_rs.dll") + \
List("c/a_rs.exe") + \
List("bin/$toolset/profile/main-target-a/a_ps.exe") + \
List("bin/$toolset/profile/main-target-b/b_ps.dll") + \
List("c/a_ps.exe") + \
List("bin/$toolset/debug/link-static/main-target-a/a_dt.exe") + \
List("bin/$toolset/debug/link-static/main-target-b/b_dt.lib") + \
List("c/a_dt.exe") + \
List("bin/$toolset/release/link-static/main-target-a/a_rt.exe") + \
List("bin/$toolset/release/link-static/main-target-b/b_rt.lib") + \
List("c/a_rt.exe") + \
List("bin/$toolset/profile/link-static/main-target-a/a_pt.exe") + \
List("bin/$toolset/profile/link-static/main-target-b/b_pt.lib") + \
List("c/a_pt.exe") \
variants = "debug release profile link=static,shared"
t.run_build_system(variants)
t.expect_addition(file_list)
t.run_build_system(variants + " clean")
t.expect_removal(file_list)
t.cleanup()