Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/project_dependencies.py @ 32

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