|
Last change
on this file since 45 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #!/usr/bin/python |
|---|
| 2 | |
|---|
| 3 | # Copyright 2003 Dave Abrahams |
|---|
| 4 | # Copyright 2002, 2003, 2004 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 | |
|---|
| 8 | # Test that we can specify a dependency property |
|---|
| 9 | # in project requirements, and that it won't |
|---|
| 10 | # cause every main target in the project to |
|---|
| 11 | # be generated in it's own subdirectory. |
|---|
| 12 | |
|---|
| 13 | # The whole test is somewhat moot now. |
|---|
| 14 | |
|---|
| 15 | from BoostBuild import Tester, List |
|---|
| 16 | |
|---|
| 17 | t = Tester() |
|---|
| 18 | |
|---|
| 19 | t.write("Jamroot", "build-project src ;") |
|---|
| 20 | t.write("lib/Jamfile", "lib lib1 : lib1.cpp ;") |
|---|
| 21 | t.write("lib/lib1.cpp", """ |
|---|
| 22 | #ifdef _WIN32 |
|---|
| 23 | __declspec(dllexport) |
|---|
| 24 | #endif |
|---|
| 25 | void foo() {}\n |
|---|
| 26 | """) |
|---|
| 27 | t.write("src/Jamfile", """ |
|---|
| 28 | project |
|---|
| 29 | : requirements <library>../lib//lib1 |
|---|
| 30 | ; |
|---|
| 31 | |
|---|
| 32 | exe a : a.cpp ; |
|---|
| 33 | exe b : b.cpp ; |
|---|
| 34 | """) |
|---|
| 35 | t.write("src/a.cpp", """ |
|---|
| 36 | #ifdef _WIN32 |
|---|
| 37 | __declspec(dllimport) |
|---|
| 38 | #endif |
|---|
| 39 | void foo(); |
|---|
| 40 | int main() { foo(); return 0; } |
|---|
| 41 | """) |
|---|
| 42 | t.copy("src/a.cpp", "src/b.cpp") |
|---|
| 43 | |
|---|
| 44 | t.run_build_system() |
|---|
| 45 | |
|---|
| 46 | # Test that there's no "main-target-a" part. |
|---|
| 47 | # t.expect_addition("src/bin/$toolset/debug/a.exe") |
|---|
| 48 | # t.expect_addition("src/bin/$toolset/debug/b.exe") |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | t.cleanup() |
|---|
Note: See
TracBrowser
for help on using the repository browser.