Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/v2/test/project_dependencies.py @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

  • Property svn:executable set to *
File size: 937 bytes
Line 
1#!/usr/bin/python
2
3# Test that we can specify a dependency property
4# in project requirements, and that it won't
5# cause every main target in the project to
6# be generated in it's own subdirectory.
7
8# The whole test is somewhat moot now.
9
10from BoostBuild import Tester, List
11
12t = Tester()
13
14t.write("Jamroot", "build-project src ;")
15t.write("lib/Jamfile", "lib lib1 : lib1.cpp ;")
16t.write("lib/lib1.cpp", """
17#ifdef _WIN32
18__declspec(dllexport)
19#endif
20void foo() {}\n
21""")
22t.write("src/Jamfile", """
23project
24    : requirements <library>../lib//lib1
25    ;
26   
27exe a : a.cpp ;
28exe b : b.cpp ;   
29""")
30t.write("src/a.cpp", """
31#ifdef _WIN32
32__declspec(dllimport)
33#endif
34void foo();
35int main() { foo(); return 0; }
36""")
37t.copy("src/a.cpp", "src/b.cpp")
38
39t.run_build_system()
40
41# Test that there's no "main-target-a" part.
42# t.expect_addition("src/bin/$toolset/debug/a.exe")
43# t.expect_addition("src/bin/$toolset/debug/b.exe")
44
45
46t.cleanup()
Note: See TracBrowser for help on using the repository browser.