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