Jamfile.v2
5.21 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Boost Ratio Library test Jamfile
# Copyright Beman Dawes 2003, 2006, 2008
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt
# See library home page at http://www.boost.org/libs/ratio
# uncomment one if the above lines if you build outside the Boost release
#local BOOST_ROOT = /boost_1_41_0 ;
#local BOOST_ROOT = c:/cygwin/boost_1_41_0 ;
if ! $(BOOST_ROOT)
{
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
}
project
: requirements
#<os>LINUX:<threading>multi
# uncomment the line above if you build outside the Boost release
#<include>$(BOOST_ROOT)
# uncomment the line above if you build outside the Boost release
#<include>../../..
<toolset>msvc:<asynch-exceptions>on
<define>BOOST_ENABLE_WARNINGS
<define>BOOST_RATIO_USES_MPL_ASSERT
<define>BOOST_RATIO_VERSION=2
<define>BOOST_MPL_NEXT_PRIOR_EXT
#<toolset>sun:<define>BOOST_COMMON_TYPE_DONT_USE_TYPEOF
#<toolset>sun:<define>BOOST_TYPEOF_EMULATION
<toolset>sun:<define>__typeof__=__typeof__
<warnings>all
<toolset>gcc:<cxxflags>-Wextra
<toolset>gcc:<cxxflags>-Wno-long-long
<toolset>gcc:<cxxflags>-pedantic
<toolset>darwin:<cxxflags>-Wextra
<toolset>darwin:<cxxflags>-Wno-long-long
<toolset>darwin:<cxxflags>-pedantic
#<toolset>pathscale:<cxxflags>-Wextra
<toolset>pathscale:<cxxflags>-Wno-long-long
<toolset>pathscale:<cxxflags>-pedantic
<toolset>clang:<cxxflags>-Wextra
<toolset>clang:<cxxflags>-pedantic
<toolset>clang:<cxxflags>-Wno-long-long
#<toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers
#<toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
#<toolset>gcc-mingw-4.6.0:<cxxflags>-fdiagnostics-show-option
<toolset>msvc:<cxxflags>/wd4127
# Note: Some of the remarks from the Intel compiler are disabled
# remark #1418: external function definition with no prior declaration
# remark #304: access control not specified ("public" by default)
<toolset>intel:<cxxflags>-wd304,1418
;
test-suite "ratio_ratio"
:
[ compile typedefs_pass.cpp ]
[ compile ratio_ratio/ratio_pass.cpp ]
[ compile-fail ratio_ratio/ratio1_fail.cpp ]
[ compile-fail ratio_ratio/ratio2_fail.cpp ]
[ compile-fail ratio_ratio/ratio3_fail.cpp ]
[ compile-fail ratio_ratio/ratio4_fail.cpp ]
;
test-suite "ratio_io"
:
[ compile-fail ratio_io/ratio_io_fail.cpp ]
[ run ratio_io/ratio_io_pass.cpp ]
;
test-suite "ratio_arithmetic"
:
[ compile ratio_arithmetic/ratio_add_pass.cpp ]
[ compile ratio_arithmetic/ratio_subtract_pass.cpp ]
[ compile ratio_arithmetic/ratio_multiply_pass.cpp ]
[ compile ratio_arithmetic/ratio_divide_pass.cpp ]
[ compile-fail ratio_arithmetic/ratio_add_fail.cpp ]
[ compile-fail ratio_arithmetic/ratio_add_2_fail.cpp ]
[ compile-fail ratio_arithmetic/ratio_add_3_fail.cpp ]
[ compile-fail ratio_arithmetic/ratio_subtract_fail.cpp ]
[ compile-fail ratio_arithmetic/ratio_multiply_fail.cpp ]
[ compile-fail ratio_arithmetic/ratio_divide_fail.cpp ]
[ compile ratio_arithmetic/ratio_negate_pass.cpp ]
[ compile ratio_arithmetic/ratio_sign_pass.cpp ]
[ compile ratio_arithmetic/ratio_abs_pass.cpp ]
[ compile ratio_arithmetic/ratio_power_pass.cpp ]
;
test-suite "ratio_comparison"
:
[ compile ratio_comparison/ratio_equal_pass.cpp ]
[ compile ratio_comparison/ratio_not_equal_pass.cpp ]
[ compile ratio_comparison/ratio_less_pass.cpp ]
[ compile ratio_comparison/ratio_less_equal_pass.cpp ]
[ compile ratio_comparison/ratio_greater_pass.cpp ]
[ compile ratio_comparison/ratio_greater_equal_pass.cpp ]
;
test-suite "examples"
:
[ run ../example/si_physics.cpp ]
[ run ../example/display_ex.cpp ]
;
test-suite "ratio_ext"
:
[ run ratio_extensions/ratio_ext_pass.cpp ]
[ compile ratio_extensions/mpl_plus_pass.cpp ]
[ compile ratio_extensions/mpl_minus_pass.cpp ]
[ compile ratio_extensions/mpl_times_pass.cpp ]
[ compile ratio_extensions/mpl_divides_pass.cpp ]
[ compile ratio_extensions/mpl_negate_pass.cpp ]
[ compile ratio_extensions/mpl_sign_pass.cpp ]
[ compile ratio_extensions/mpl_abs_pass.cpp ]
[ compile ratio_extensions/mpl_equal_to_pass.cpp ]
[ compile ratio_extensions/mpl_not_equal_to_pass.cpp ]
[ compile ratio_extensions/mpl_less_pass.cpp ]
[ compile ratio_extensions/mpl_less_equal_pass.cpp ]
[ compile ratio_extensions/mpl_greater_pass.cpp ]
[ compile ratio_extensions/mpl_greater_equal_pass.cpp ]
[ compile ratio_extensions/mpl_arithmetic_pass.cpp ]
[ compile ratio_extensions/mpl_comparison_pass.cpp ]
[ compile ratio_extensions/mpl_rational_constant_pass.cpp ]
;
#test-suite "tickets"
# :
# [ run test_6498_pass.cpp ]
# ;