]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/chrono/stopwatches/test/Jamfile.v2
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / chrono / stopwatches / test / Jamfile.v2
1 # Boost Chrono Library test Jamfile
2
3 # Copyright Vicente J. Botet Escriba 2014
4
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 # See library home page at http://www.boost.org/libs/chrono/stopwatch
9
10 import os ;
11 import feature ;
12
13 project
14 : requirements
15 <target-os>freebsd:<linkflags>"-lrt"
16 <target-os>linux:<linkflags>"-lrt -lpthread"
17 <toolset>clang/<target-os>linux:<linkflags>"-lpthread"
18 <toolset>pgi:<linkflags>"-lrt"
19 #<threading>single:<define>BOOST_CHRONO_THREAD_DISABLED
20 <toolset>msvc:<asynch-exceptions>on
21 <define>BOOST_CHRONO_USES_MPL_ASSERT
22 <define>BOOST_SYSTEM_NO_DEPRECATED
23 #<toolset>sun:<define>BOOST_COMMON_TYPE_DONT_USE_TYPEOF
24 #<toolset>sun:<define>BOOST_TYPEOF_EMULATION
25 <toolset>sun:<define>__typeof__=__typeof__
26 <warnings>all
27 <toolset>gcc:<cxxflags>-Wextra
28 <toolset>gcc:<cxxflags>-pedantic
29 <toolset>gcc:<cxxflags>-Wno-long-long
30 <toolset>gcc:<cxxflags>-Wno-variadic-macros
31 <toolset>darwin:<cxxflags>-Wextra
32 <toolset>darwin:<cxxflags>-pedantic
33 <toolset>darwin:<cxxflags>-Wno-long-long
34 <toolset>darwin:<cxxflags>-Wno-variadic-macros
35 #<toolset>pathscale:<cxxflags>-Wextra
36 <toolset>pathscale:<cxxflags>-Wno-long-long
37 <toolset>pathscale:<cxxflags>-pedantic
38 <toolset>clang:<cxxflags>-Wextra
39 <toolset>clang:<cxxflags>-pedantic
40 <toolset>clang:<cxxflags>-Wno-long-long
41 <toolset>clang:<cxxflags>-Wno-variadic-macros
42 <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-Wno-missing-field-initializers
43 <toolset>gcc-4.5.0,<target-os>windows:<cxxflags>-fdiagnostics-show-option
44 <toolset>msvc:<cxxflags>/wd4127
45 <toolset>msvc:<cxxflags>/wd4512
46 # Note: Some of the remarks from the Intel compiler are disabled
47 # remark #193: zero used for undefined preprocessing identifier "XXX"
48 # remark #304: access control not specified ("public" by default)
49 # remark #383: value copied to temporary, reference to temporary used
50 # remark #444: destructor for base class "XXX" (declared at line YYY") is not virtual
51 # remark #593: variable "XXX" was set but never used
52 # remark #981: operands are evaluated in unspecified order
53 # remark #1418: external function definition with no prior declaration
54 # remark #2415: variable "XXX" of static storage duration was declared but never referenced
55
56 <toolset>intel:<cxxflags>-wd193,304,383,444
57 <toolset>intel:<cxxflags>-wd593,981
58 <toolset>intel:<cxxflags>-wd1418
59 <toolset>intel:<cxxflags>-wd2415
60 ;
61
62
63
64 rule stopwatch-run ( sources + )
65 {
66 return
67 [ run $(sources)
68 : :
69 :
70 <library>/boost/chrono//boost_chrono
71 <library>/boost/system//boost_system
72 <define>BOOST_CHRONO_VERSION=2
73 : $(sources[1]:B)_d ]
74 [ run $(sources)
75 : :
76 : <define>BOOST_CHRONO_HEADER_ONLY
77 <define>BOOST_ERROR_CODE_HEADER_ONLY
78 #<define>BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
79 <define>BOOST_CHRONO_VERSION=2
80 : $(name)_h ]
81 ;
82 }
83
84 rule stopwatch-run2 ( sources + : name )
85 {
86 return
87 [ run $(sources)
88 : :
89 :
90 <library>/boost/chrono//boost_chrono
91 <library>/boost/system//boost_system
92 <define>BOOST_CHRONO_VERSION=2
93 : $(name)_d ]
94 [ run $(sources)
95 : :
96 : <define>BOOST_CHRONO_HEADER_ONLY
97 <define>BOOST_ERROR_CODE_HEADER_ONLY
98 #<define>BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
99 <define>BOOST_CHRONO_VERSION=2
100 : $(name)_h ]
101 ;
102 }
103
104
105
106 test-suite "stopwatch"
107 :
108 [ stopwatch-run2 stopwatch/simple_stopwatch_pass.cpp : simple_stopwatch_p ]
109 [ stopwatch-run2 stopwatch/basic_stopwatch_pass.cpp : basic_stopwatch_p ]
110 [ stopwatch-run2 stopwatch/basic_stopwatch_last_lap_pass.cpp : basic_stopwatch_last_lap_p ]
111 [ stopwatch-run2 stopwatch/basic_stopwatch_laps_accumulator_set_pass.cpp : basic_stopwatch_laps_accumulator_set_p ]
112 [ stopwatch-run2 stopwatch/basic_stopwatch_laps_container_pass.cpp : basic_stopwatch_laps_container_p ]
113
114 [ stopwatch-run2 stopwatch/suspendable_stopwatch_pass.cpp : suspendable_stopwatch_p ]
115 ;
116
117 test-suite "stopwatch_ex"
118 :
119 [ stopwatch-run2 ../example/stopwatch_example.cpp : stopwatch_example ]
120 ;
121
122 test-suite "stopclock"
123 :
124 [ stopwatch-run2 stopwatch/basic_stopwatch_reporter_laps_accumulator_set_pass.cpp : basic_stopwatch_reporter_laps_accumulator_set_p ]
125 #[ stopwatch-run2 stopwatch/basic_stopwatch_reporter_laps_container_pass.cpp : basic_stopwatch_reporter_laps_container_p ]
126 #[ stopwatch-run2 stopwatch/basic_stopwatch_reporter_last_lap_pass.cpp : basic_stopwatch_reporter_last_lap_p ]
127 #[ stopwatch-run2 stopwatch/basic_stopwatch_reporter_last_lap_pass.cpp : basic_stopwatch_reporter_last_lap_p ]
128 [ stopwatch-run2 stopwatch/basic_stopwatch_reporter_pass.cpp : basic_stopwatch_reporter_p ]
129 [ stopwatch-run2 stopwatch/laps_stopclock_pass.cpp : laps_stopclock_p ]
130 [ stopwatch-run2 stopwatch/laps_stopclock_laps_accumulator_set_pass.cpp : laps_stopclock_laps_accumulator_set_p ]
131 [ stopwatch-run2 stopwatch/simple_stopclock_pass.cpp : simple_stopclock_p ]
132 [ stopwatch-run2 stopwatch/simple_stopwatch_reporter_pass.cpp : simple_stopwatch_reporter_p ]
133
134 ;
135 test-suite "stopclock_ex"
136 :
137 [ stopwatch-run2 ../example/stopwatch_reporter_example.cpp : stopwatch_reporter_example ]
138 ;
139
140
141 explicit ts_ ;
142 test-suite ts_
143 :
144 ;
145