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 | |
---|
10 | from BoostBuild import Tester, List |
---|
11 | |
---|
12 | t = Tester() |
---|
13 | |
---|
14 | t.write("Jamroot", "build-project src ;") |
---|
15 | t.write("lib/Jamfile", "lib lib1 : lib1.cpp ;") |
---|
16 | t.write("lib/lib1.cpp", """ |
---|
17 | #ifdef _WIN32 |
---|
18 | __declspec(dllexport) |
---|
19 | #endif |
---|
20 | void foo() {}\n |
---|
21 | """) |
---|
22 | t.write("src/Jamfile", """ |
---|
23 | project |
---|
24 | : requirements <library>../lib//lib1 |
---|
25 | ; |
---|
26 | |
---|
27 | exe a : a.cpp ; |
---|
28 | exe b : b.cpp ; |
---|
29 | """) |
---|
30 | t.write("src/a.cpp", """ |
---|
31 | #ifdef _WIN32 |
---|
32 | __declspec(dllimport) |
---|
33 | #endif |
---|
34 | void foo(); |
---|
35 | int main() { foo(); return 0; } |
---|
36 | """) |
---|
37 | t.copy("src/a.cpp", "src/b.cpp") |
---|
38 | |
---|
39 | t.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 | |
---|
46 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.