Jamfile.v2
1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# (C) Copyright 2010: Tim Blechmann
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
import testing ;
lib boost_chrono ;
lib boost_interprocess ;
lib boost_system ;
lib boost_thread ;
lib boost_unit_test_framework ;
project
: source-location .
: requirements
<library>../../test/build//boost_unit_test_framework
<library>../../atomic/build//boost_atomic
;
rule test_all
{
local all_rules = ;
for local fileb in [ glob *.cpp ]
{
all_rules += [ run $(fileb)
: # additional args
: # test-files
: # requirements
<toolset>acc:<linkflags>-lrt
<toolset>acc-pa_risc:<linkflags>-lrt
<target-os>windows,<toolset>gcc:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
<host-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
<host-os>linux,<toolset>clang:<linkflags>"-latomic"
<library>../../thread/build//boost_thread/
<threading>multi
<link>static
] ;
}
return $(all_rules) ;
}
test-suite lockfree : [ test_all r ] : <threading>multi ;