Blame view

3rdparty/boost_1_81_0/libs/convert/test/jamfile.v2 2.45 KB
977ed18d   Hu Chunming   提交三方库
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
  # Convert Jamfile
  # Copyright (c) Vladimir Batov 2009-2014
  # Distributed under the Boost Software License, Version 1.0.
  # See copy at http://www.boost.org/LICENSE_1_0.txt.
  
  # bring in the rules for testing
  import testing ;
  import ../../config/checks/config : requires ;
  
  project convert_test 
      : requirements
          <warnings>on
          <toolset>icpc:<cxxflags>"-std=c++11"
          <toolset>clang:<cxxflags>"-std=c++11"
          <toolset>gcc:<warnings>all
          <toolset>gcc:<cxxflags>"-O3 -std=c++0x -Wno-unused-variable -Wno-unused-local-typedefs -Wno-long-long -Wno-nonnull"
          <toolset>msvc:<warnings>all
          <toolset>msvc:<cxxflags>"/wd4996 /wd4512 /wd4610 /wd4510 /wd4127 /wd4701 /wd4127 /wd4305 /wd4244 /wd4714 /wd4189"
          <toolset>msvc:<asynch-exceptions>on
          <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
          <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
          <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
          <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
          <include>../include
      ;  
  
  exe convert_test_performance : performance.cpp /boost/timer//boost_timer /boost/chrono//boost_chrono 
      : [ requires cxx17_hdr_charconv cxx17_structured_bindings cxx17_if_constexpr ] ;
  exe convert_test_performance_spirit : performance_spirit.cpp ;
  
  run callable.cpp         :  :  :  : convert_test_callable ;
  run fallbacks.cpp        :  :  :  : convert_test_fallbacks ;
  run spirit_converter.cpp :  :  :  : convert_test_spirit_converter ;
  run strtol_converter.cpp :  :  :  : convert_test_strtol_converter ;
  run lcast_converter.cpp  :  :  :  : convert_test_lcast_converter ;
  run encryption.cpp       :  :  :  : convert_test_encryption ;
  run user_type.cpp        :  :  :  : convert_test_user_type ;
  run str_to_int.cpp       :  :  :  : convert_test_str_to_int ;
  run sfinae.cpp           :  :  :  : convert_test_sfinae ;
  run has_member.cpp       :  :  :  : convert_test_has_member ;
  run printf_converter.cpp : 
        /boost/test/included_unit_test_framework  :  :  : convert_test_printf_converter ;
  run stream_converter.cpp :
        /boost/test/included_unit_test_framework  :  :  : convert_test_stream_converter ;
  
  # these tests require C++17
  run charconv_converter.cpp 
      : /boost/test//included_unit_test_framework
      :  
      : [ requires cxx17_hdr_charconv cxx17_structured_bindings cxx17_if_constexpr ]
        <toolset>gcc:<cxxflags>"-O3 -std=c++17 -Wno-unused-variable -Wno-unused-local-typedefs -Wno-long-long -Wno-nonnull"
      : convert_test_charconv_converter ;