]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # copyright John Maddock 2008 |
2 | # Distributed under the Boost Software License, Version 1.0. | |
3 | # (See accompanying file LICENSE_1_0.txt or copy at | |
4 | # http://www.boost.org/LICENSE_1_0.txt. | |
5 | ||
6 | import testing ; | |
7 | import pch ; | |
8 | ||
9 | project | |
10 | : requirements | |
11 | <toolset>intel-win:<cxxflags>-nologo | |
12 | <toolset>intel-win:<linkflags>-nologo | |
13 | #<toolset>intel-linux:<pch>off | |
14 | <toolset>intel-darwin:<pch>off | |
15 | <toolset>msvc-7.1:<pch>off | |
16 | <toolset>gcc,<target-os>windows:<pch>off | |
17 | #<toolset>gcc:<cxxflags>-fvisibility=hidden | |
18 | <toolset>intel-linux:<cxxflags>-fvisibility=hidden | |
19 | #<toolset>sun:<cxxflags>-xldscope=hidden | |
20 | [ check-target-builds ../config//has_gcc_visibility "gcc visibility" : <toolset>gcc:<cxxflags>-fvisibility=hidden : ] | |
21 | ; | |
22 | ||
23 | cpp-pch pch : ../src/tr1/pch.hpp : <include>../src/tr1 <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 ; | |
24 | ||
25 | C99_SOURCES = acosh | |
26 | asinh | |
27 | atanh | |
28 | cbrt | |
29 | copysign | |
30 | erfc | |
31 | erf | |
32 | expm1 | |
33 | fmax | |
34 | fmin | |
35 | fpclassify | |
36 | hypot | |
37 | lgamma | |
38 | llround | |
39 | log1p | |
40 | lround | |
41 | nextafter | |
42 | nexttoward | |
43 | round | |
44 | tgamma | |
45 | trunc ; | |
46 | ||
47 | TR1_SOURCES = | |
48 | assoc_laguerre | |
49 | assoc_legendre | |
50 | beta | |
51 | comp_ellint_1 | |
52 | comp_ellint_2 | |
53 | comp_ellint_3 | |
54 | cyl_bessel_i | |
55 | cyl_bessel_j | |
56 | cyl_bessel_k | |
57 | cyl_neumann | |
58 | ellint_1 | |
59 | ellint_2 | |
60 | ellint_3 | |
61 | expint | |
62 | hermite | |
63 | laguerre | |
64 | legendre | |
65 | riemann_zeta | |
66 | sph_bessel | |
67 | sph_legendre | |
68 | sph_neumann | |
69 | ; | |
70 | ||
71 | # Configure checks. | |
72 | ||
73 | import project ; | |
74 | import configure ; | |
75 | import property ; | |
76 | import property-set ; | |
77 | import targets ; | |
78 | ||
79 | obj long_double_check : ../config/has_long_double_support.cpp ; | |
80 | explicit long_double_check ; | |
81 | ||
82 | # Library targets | |
83 | lib boost_math_tr1 : ../src/tr1/$(TR1_SOURCES).cpp pch | |
84 | : | |
85 | <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 | |
86 | <include>../src/tr1 | |
87 | ; | |
88 | ||
89 | lib boost_math_tr1f : ../src/tr1/$(TR1_SOURCES)f.cpp pch | |
90 | : | |
91 | <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 | |
92 | <include>../src/tr1 | |
93 | ; | |
94 | ||
95 | lib boost_math_tr1l : ../src/tr1/$(TR1_SOURCES)l.cpp pch | |
96 | : | |
97 | <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 | |
98 | <dependency>../config//has_long_double_support | |
99 | <include>../src/tr1 | |
100 | [ check-target-builds ../config//has_long_double_support "long double support" : : <build>no ] | |
101 | ; | |
102 | ||
103 | lib boost_math_c99 : ../src/tr1/$(C99_SOURCES).cpp pch | |
104 | : | |
105 | <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 | |
106 | <include>../src/tr1 | |
107 | ; | |
108 | ||
109 | lib boost_math_c99f : ../src/tr1/$(C99_SOURCES)f.cpp pch | |
110 | : | |
111 | <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 | |
112 | <include>../src/tr1 | |
113 | ; | |
114 | ||
115 | lib boost_math_c99l : ../src/tr1/$(C99_SOURCES)l.cpp pch | |
116 | : | |
117 | <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 | |
118 | <dependency>../config//has_long_double_support | |
119 | <include>../src/tr1 | |
120 | [ check-target-builds ../config//has_long_double_support "long double support" : : <build>no ] | |
121 | ; | |
122 | ||
123 | boost-install boost_math_c99 boost_math_c99f boost_math_c99l boost_math_tr1 boost_math_tr1f boost_math_tr1l ; |