]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/example/Jamfile.v2
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / multiprecision / example / Jamfile.v2
1 # \libs\multiprecision\example\jamfile.v2
2 # Runs multiprecision examples.
3 # Copyright 2014 John Maddock
4 # Copyright Paul A. Bristow 2014.
5 # Copyright Christopher Kormanyos 2014
6
7 # Distributed under the Boost Software License, Version 1.0.
8 # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
10 # Bring in the rules for testing.
11 import testing ;
12 import modules ;
13 import path ;
14 import ../../config/checks/config : requires ;
15
16 local ntl-path = [ modules.peek : NTL_PATH ] ;
17 local gmp_path = [ modules.peek : GMP_PATH ] ;
18 local mpfr_path = [ modules.peek : MPFR_PATH ] ;
19 local mpfi_path = [ modules.peek : MPFI_PATH ] ;
20 local tommath_path = [ modules.peek : TOMMATH_PATH ] ;
21
22 project
23 : requirements
24 <include>$(gmp_path)
25 <include>$(gmp_path)/mpfr
26 <include>$(gmp_path)/gmpfrxx
27 <include>$(mpfr_path)
28 <include>$(mpfi_path)
29 <include>$(mpfi_path)/src
30 <include>$(tommath_path)
31 <include>../include
32 <include>../../..
33
34 <toolset>gcc:<cxxflags>-Wno-missing-braces
35 <toolset>darwin:<cxxflags>-Wno-missing-braces
36 <toolset>acc:<cxxflags>+W2068,2461,2236,4070
37 <toolset>intel:<cxxflags>-Qwd264,239
38 <toolset>msvc:<runtime-link>static
39 <toolset>msvc:<link>static
40 <toolset>msvc:<warnings>all
41 <toolset>msvc:<asynch-exceptions>on
42 <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
43 <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
44 <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
45 <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
46 <toolset>msvc:<cxxflags>/wd4996
47 <toolset>msvc:<cxxflags>/wd4512
48 <toolset>msvc:<cxxflags>/wd4610
49 <toolset>msvc:<cxxflags>/wd4510
50 <toolset>msvc:<cxxflags>/wd4127
51 <toolset>msvc:<cxxflags>/wd4701
52 <toolset>msvc:<cxxflags>/wd4127
53 <toolset>msvc:<cxxflags>/wd4305
54 <toolset>clang:<link>static
55
56 ;
57
58 lib gmp : : <search>$(gmp_path) ;
59 lib mpfr : : <search>$(gmp_path) <search>$(mpfr_path) <search>$(mpfr_path)/build.vc10/lib/Win32/Debug ;
60 lib mpfi : : <search>$(gmp_path) <search>$(mpfr_path) <search>$(mpfr_path)/build.vc10/lib/Win32/Debug <search>$(mpfi_path) <search>$(mpfi_path)/src ;
61 lib quadmath ;
62
63 if $(tommath_path)
64 {
65 lib tommath : [ GLOB $(tommath_path) : *.c ] : <visibility>global ;
66 TOMMATH = tommath ;
67 }
68 else
69 {
70 lib tommath : : <search>$(tommath_path) ;
71 TOMMATH = tommath ;
72 }
73
74 lib no_eh_eg_support : ../test/no_eh_test_support.cpp ;
75
76 test-suite examples :
77
78 [ run cpp_int_snips.cpp no_eh_eg_support ]
79 [ run cpp_int_import_export.cpp no_eh_eg_support ]
80 [ run cpp_bin_float_import_export.cpp no_eh_eg_support ]
81
82 [ run cpp_dec_float_snips.cpp no_eh_eg_support ]
83
84 [ run cpp_bin_float_snips.cpp no_eh_eg_support ]
85
86 [ run debug_adaptor_snips.cpp no_eh_eg_support ]
87 [ run float128_snips.cpp quadmath no_eh_eg_support : : : [ check-target-builds ../config//has_float128 : : <build>no ] ]
88
89 [ run floating_point_examples.cpp no_eh_eg_support : : : [ check-target-builds ../config//has_big_obj : <cxxflags>-Wa,-mbig-obj <debug-symbols>off ] ]
90 [ run gauss_laguerre_quadrature.cpp no_eh_eg_support : : : release [ requires cxx11_lambdas ] ]
91 [ run hypergeometric_luke_algorithms.cpp no_eh_eg_support ../../chrono/build//boost_chrono ../../system/build//boost_system : : : [ requires cxx11_nullptr ] ]
92 [ run integer_examples.cpp no_eh_eg_support ]
93 [ run logged_adaptor.cpp no_eh_eg_support mpfi mpfr gmp : : : [ check-target-builds ../config//has_mpfi : : <build>no ] ]
94 [ run mixed_integer_arithmetic.cpp no_eh_eg_support ]
95 [ run numeric_limits_snips.cpp no_eh_eg_support /boost//test_exec_monitor : : : [ requires cxx11_numeric_limits ] [ check-target-builds ../config//has_float128 : <source>quadmath ] ]
96 [ run random_snips.cpp gmp no_eh_eg_support : : : [ requires cxx11_explicit_conversion_operators ] [ check-target-builds ../config//has_gmp : : <build>no ] ]
97 [ run safe_prime.cpp no_eh_eg_support ]
98
99 [ run gmp_snips.cpp gmp no_eh_eg_support : : : [ check-target-builds ../config//has_gmp : : <build>no ] ]
100 [ run mpfi_snips.cpp mpfi mpfr gmp no_eh_eg_support : : : [ check-target-builds ../config//has_mpfi : : <build>no ] ]
101 [ run mpfr_snips.cpp mpfr gmp no_eh_eg_support : : : [ check-target-builds ../config//has_mpfr : : <build>no ] ]
102 [ run tommath_snips.cpp $(TOMMATH) no_eh_eg_support : : : [ check-target-builds ../config//has_tommath : : <build>no ] ]
103 [ compile constexpr_float_arithmetic_examples.cpp : [ requires cxx14_constexpr cxx17_if_constexpr ] ]
104
105 [ run big_seventh.cpp no_eh_eg_support ]
106
107 [ run exercise_threading_log_agm.cpp : : : <define>BOOST_MULTIPRECISION_EXERCISE_THREADING_BACKEND_TYPE=101 release [ requires cxx11_hdr_atomic cxx11_hdr_thread ] : exercise_threading_log_agm_cpp_dec_float ]
108 [ run exercise_threading_log_agm.cpp gmp : : : <define>BOOST_MULTIPRECISION_EXERCISE_THREADING_BACKEND_TYPE=102 release [ requires cxx11_hdr_atomic cxx11_hdr_thread ] [ check-target-builds ../config//has_gmp : : <build>no ] : exercise_threading_log_agm_gmp ]
109 [ run exercise_threading_log_agm.cpp mpfr gmp : : : <define>BOOST_MULTIPRECISION_EXERCISE_THREADING_BACKEND_TYPE=104 release [ requires cxx11_hdr_atomic cxx11_hdr_thread ] [ check-target-builds ../config//has_mpfr : : <build>no ] : exercise_threading_log_agm_mpfr ]
110 [ run exercise_threading_log_agm.cpp : : : <define>BOOST_MULTIPRECISION_EXERCISE_THREADING_BACKEND_TYPE=103 release [ requires cxx11_hdr_atomic cxx11_hdr_thread ] : exercise_threading_log_agm_cpp_bin_float ]
111
112 ;