Jamfile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Boost.Variant2 Library Test Jamfile
  2. #
  3. # Copyright 2015-2019 Peter Dimov
  4. #
  5. # Distributed under the Boost Software License, Version 1.0.
  6. # See accompanying file LICENSE_1_0.txt or copy at
  7. # http://www.boost.org/LICENSE_1_0.txt
  8. import testing ;
  9. import ../../config/checks/config : requires ;
  10. project
  11. : default-build
  12. <warnings>all
  13. : requirements
  14. [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr ]
  15. <toolset>msvc:<warnings-as-errors>on
  16. <toolset>gcc:<warnings-as-errors>on
  17. <toolset>clang:<warnings-as-errors>on
  18. ;
  19. run variant_size.cpp ;
  20. run variant_alternative.cpp ;
  21. run variant_holds_alternative.cpp ;
  22. compile variant_holds_alternative_cx.cpp ;
  23. run variant_get_by_index.cpp ;
  24. compile variant_get_by_index_cx.cpp ;
  25. run variant_get_by_type.cpp ;
  26. compile variant_get_by_type_cx.cpp ;
  27. run variant_default_construct.cpp ;
  28. compile variant_default_construct_cx.cpp ;
  29. run variant_copy_construct.cpp ;
  30. compile variant_copy_construct_cx.cpp : <toolset>msvc-14.0:<build>no ;
  31. run variant_move_construct.cpp ;
  32. compile variant_move_construct_cx.cpp : [ requires cxx14_constexpr ] ;
  33. run variant_value_construct.cpp ;
  34. compile variant_value_construct_cx.cpp ;
  35. run variant_in_place_index_construct.cpp ;
  36. compile variant_in_place_index_construct_cx.cpp ;
  37. run variant_in_place_type_construct.cpp ;
  38. compile variant_in_place_type_construct_cx.cpp ;
  39. run variant_copy_assign.cpp ;
  40. compile variant_copy_assign_cx.cpp : [ requires cxx14_constexpr ] ;
  41. run variant_move_assign.cpp ;
  42. compile variant_move_assign_cx.cpp : [ requires cxx14_constexpr ] ;
  43. run variant_value_assign.cpp ;
  44. compile variant_value_assign_cx.cpp : [ requires cxx14_constexpr ] ;
  45. run variant_emplace_index.cpp ;
  46. compile variant_emplace_index_cx.cpp : [ requires cxx14_constexpr ] ;
  47. run variant_emplace_type.cpp ;
  48. compile variant_emplace_type_cx.cpp : [ requires cxx14_constexpr ] ;
  49. run variant_swap.cpp ;
  50. run variant_eq_ne.cpp ;
  51. compile variant_eq_ne_cx.cpp : [ requires cxx14_constexpr ] ;
  52. run variant_lt_gt.cpp ;
  53. compile variant_lt_gt_cx.cpp : [ requires cxx14_constexpr ] ;
  54. run variant_destroy.cpp ;
  55. run variant_visit.cpp ;
  56. run variant_convert_construct.cpp ;
  57. run variant_subset.cpp ;
  58. run variant_valueless.cpp ;
  59. run variant_copy_construct_throw.cpp ;
  60. run variant_move_construct_throw.cpp ;
  61. run variant_convert_construct_throw.cpp ;
  62. run variant_copy_assign_throw.cpp ;
  63. run variant_move_assign_throw.cpp ;
  64. local NX =
  65. <exception-handling>off
  66. <toolset>msvc:<cxxflags>/wd4530
  67. <toolset>msvc:<cxxflags>/wd4577
  68. ;
  69. run variant_get_by_index.cpp throw_exception.cpp : : : $(NX) : variant_get_by_index_nx ;
  70. compile variant_get_by_index_cx.cpp : $(NX) : variant_get_by_index_cx_nx ;
  71. run variant_get_by_type.cpp throw_exception.cpp : : : $(NX) : variant_get_by_type_nx ;
  72. compile variant_get_by_type_cx.cpp : $(NX) : variant_get_by_type_cx_nx ;
  73. run variant_subset.cpp throw_exception.cpp : : : $(NX) : variant_subset_nx ;