]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/lexical_cast/test/Jamfile.v2
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / lexical_cast / test / Jamfile.v2
1 # Copyright (C) 2001-2003 Douglas Gregor
2 # Copyright (C) 2011-2014 Antony Polukhin
3 #
4 # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #
7
8 import testing ;
9 import feature ;
10
11 project
12 : requirements
13 <library>/boost/test//boost_unit_test_framework
14 <link>static
15 <toolset>gcc-4.7:<cxxflags>-ftrapv
16 <toolset>gcc-4.6:<cxxflags>-ftrapv
17 <toolset>clang:<cxxflags>-ftrapv
18 # default to all warnings on:
19 <warnings>all
20 # set warnings as errors for those compilers we know we get warning free:
21 <toolset>gcc:<cxxflags>-Wextra
22 <toolset>gcc:<cxxflags>-Wno-uninitialized
23 ;
24
25 # Thanks to Steven Watanabe for helping with <nowchar> feature
26 feature.feature nowchar : on :
27 composite optional propagated link-incompatible ;
28 feature.compose <nowchar>on : <cxxflags>/Zc:wchar_t- ;
29
30 test-suite conversion
31 : [ run lexical_cast_test.cpp ]
32 [ run lexical_cast_loopback_test.cpp ]
33 [ run lexical_cast_abstract_test.cpp ]
34 [ run lexical_cast_noncopyable_test.cpp ]
35 [ run lexical_cast_vc8_bug_test.cpp ]
36 [ run lexical_cast_wchars_test.cpp ]
37 [ run lexical_cast_float_types_test.cpp ]
38 [ run lexical_cast_inf_nan_test.cpp ]
39 [ run lexical_cast_containers_test.cpp : : : <toolset>gcc:<cxxflags>-Wno-long-long <toolset>clang:<cxxflags>-Wno-long-long ]
40 [ run lexical_cast_empty_input_test.cpp ]
41 [ run lexical_cast_pointers_test.cpp ]
42 [ compile lexical_cast_typedefed_wchar_test.cpp : <toolset>msvc:<nowchar>on ]
43 [ run lexical_cast_typedefed_wchar_test_runtime.cpp : : : <toolset>msvc:<nowchar>on <toolset>msvc,<stdlib>stlport:<build>no ]
44 [ run lexical_cast_no_locale_test.cpp : : : <define>BOOST_NO_STD_LOCALE <define>BOOST_LEXICAL_CAST_ASSUME_C_LOCALE ]
45 [ run lexical_cast_no_exceptions_test.cpp : : : <define>BOOST_NO_EXCEPTIONS
46 <toolset>gcc-4.3:<cxxflags>-fno-exceptions
47 <toolset>gcc-4.4:<cxxflags>-fno-exceptions
48 <toolset>gcc-4.5:<cxxflags>-fno-exceptions
49 <toolset>gcc-4.6:<cxxflags>-fno-exceptions
50 <toolset>gcc-4.7:<cxxflags>-fno-exceptions
51 <toolset>gcc-4.8:<cxxflags>-fno-exceptions
52 <toolset>clang:<cxxflags>-fno-exceptions
53 ]
54 [ run lexical_cast_iterator_range_test.cpp ]
55 [ run lexical_cast_arrays_test.cpp ]
56 [ run lexical_cast_integral_types_test.cpp ]
57 [ run lexical_cast_stream_detection_test.cpp ]
58 [ run lexical_cast_stream_traits_test.cpp ]
59 [ compile-fail lexical_cast_to_pointer_test.cpp ]
60 [ run lexical_cast_filesystem_test.cpp ../../filesystem/build//boost_filesystem/<link>static ]
61 [ run lexical_cast_try_lexical_convert.cpp ]
62 [ run lexical_cast_no_comp_time_prcision.cpp ]
63 ;
64
65 # Assuring that examples compile and run. Adding sources from `example` directory to the `conversion` test suite.
66 for local p in [ glob ../example/*.cpp ]
67 {
68 conversion += [ run $(p) ] ;
69 }
70
71