Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/thread/test/Jamfile @ 12

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

added boost

File size: 3.4 KB
Line 
1# Copyright (C) 2001-2003
2# William E. Kempf
3#
4# Permission to use, copy, modify, distribute and sell this software
5# and its documentation for any purpose is hereby granted without fee,
6# provided that the above copyright notice appear in all copies and
7# that both that copyright notice and this permission notice appear
8# in supporting documentation.  William E. Kempf makes no representations
9# about the suitability of this software for any purpose.
10# It is provided "as is" without express or implied warranty.
11#
12# Boost.Threads test Jamfile
13#
14# Additional configuration variables used:
15#   See threads.jam.
16
17# Declare the location of this subproject relative to the root.
18subproject libs/thread/test ;
19
20# Include threads.jam for Boost.Threads global build information.
21# This greatly simplifies the Jam code needed to configure the build
22# for the various Win32 build types.
23import ../build/threads ;
24
25# bring in rules for testing
26import testing ;
27
28{
29     template boost_thread_test_lib
30         : ## sources ##
31             <template>thread_base
32             ../src/tss_null.cpp
33             <lib>../build/boost_thread
34             <lib>../../test/build/boost_unit_test_framework
35             #<lib>../../test/build/boost_test_exec_monitor
36         : ## requirements ##
37             <sysinclude>$(BOOST_ROOT) #:should be unnecessary (because already included in thread_base)
38             <define>BOOST_ALL_NO_LIB=1
39             <define>BOOST_THREAD_USE_LIB=1
40             <define>BOOST_THREAD_TEST=1
41             #<runtime-link>static
42             <threading>multi
43         : ## default build ##
44     ;
45   
46     template boost_thread_test_dll
47         : ## sources ##
48             <template>thread_base
49             ../src/tss_null.cpp
50             <dll>../build/boost_thread
51             <lib>../../test/build/boost_unit_test_framework
52             #<lib>../../test/build/boost_test_exec_monitor
53         : ## requirements ##
54             <sysinclude>$(BOOST_ROOT) #:should be unnecessary (because already included in thread_base)
55             <define>BOOST_ALL_NO_LIB=1
56             <define>BOOST_THREAD_USE_DLL=1
57             <define>BOOST_THREAD_TEST=1
58             <runtime-link>dynamic
59             <threading>multi
60         : ## default build ##
61     ;
62
63     test-suite "threads"
64         :
65           [ run test_thread.cpp <template>boost_thread_test_dll ]
66           [ run test_mutex.cpp <template>boost_thread_test_dll ]
67           [ run test_condition.cpp <template>boost_thread_test_dll ]
68           [ run test_tss.cpp <template>boost_thread_test_dll ]
69           [ run test_once.cpp <template>boost_thread_test_dll ]
70           [ run test_xtime.cpp <template>boost_thread_test_dll ]
71           [ run test_barrier.cpp <template>boost_thread_test_dll ]
72           
73           [ run test_thread.cpp <template>boost_thread_test_lib           : : : : test_thread_lib ]
74           [ run test_mutex.cpp <template>boost_thread_test_lib            : : : : test_mutex_lib  ]
75           [ run test_condition.cpp <template>boost_thread_test_lib        : : : : test_condition_lib  ]
76           [ run test_tss.cpp <template>boost_thread_test_lib              : : : : test_tss_lib  ]
77           [ run test_once.cpp <template>boost_thread_test_lib             : : : : test_once_lib  ]
78           [ run test_xtime.cpp <template>boost_thread_test_lib            : : : : test_xtime_lib  ]
79           [ run test_barrier.cpp <template>boost_thread_test_lib          : : : : test_barrier_lib  ]
80     ;
81}
Note: See TracBrowser for help on using the repository browser.