Jamfile.v2 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Boost Endian Library test Jamfile
  2. # Copyright Beman Dawes 2006, 2013
  3. # Copyright 2018, 2019 Peter Dimov
  4. # Distributed under the Boost Software License, Version 1.0.
  5. # See http://www.boost.org/LICENSE_1_0.txt
  6. # See library home page at http://www.boost.org/libs/endian
  7. import testing ;
  8. project
  9. : default-build
  10. <warnings>all
  11. : requirements
  12. <toolset>msvc:<warnings-as-errors>on
  13. <toolset>gcc:<cxxflags>-Wno-long-long
  14. <toolset>gcc-4.4.7:<cxxflags>-Wno-strict-aliasing
  15. <toolset>gcc-4.4.7:<cxxflags>-Wno-sign-compare
  16. <toolset>gcc:<warnings-as-errors>on
  17. <toolset>clang:<cxxflags>-Wno-long-long
  18. <toolset>clang:<warnings-as-errors>on
  19. ;
  20. local rule endian-run ( sources + )
  21. {
  22. local result ;
  23. result += [ run $(sources) ] ;
  24. result += [ run $(sources) : : : <define>BOOST_ENDIAN_NO_INTRINSICS : $(sources[1]:B)_ni ] ;
  25. return $(result) ;
  26. }
  27. endian-run buffer_test.cpp ;
  28. endian-run endian_test.cpp ;
  29. endian-run endian_operations_test.cpp ;
  30. run endian_in_union_test.cpp ;
  31. endian-run conversion_test.cpp ;
  32. run intrinsic_test.cpp ;
  33. run quick.cpp ;
  34. local allow-warnings =
  35. "-<toolset>msvc:<warnings-as-errors>on"
  36. "-<toolset>gcc:<warnings-as-errors>on"
  37. "-<toolset>clang:<warnings-as-errors>on" ;
  38. compile spirit_conflict_test.cpp
  39. : $(allow-warnings) ;
  40. endian-run endian_reverse_test.cpp ;
  41. endian-run endian_load_test.cpp ;
  42. endian-run endian_store_test.cpp ;
  43. endian-run endian_ld_st_roundtrip_test.cpp ;
  44. endian-run endian_arithmetic_test.cpp ;
  45. run deprecated_test.cpp ;
  46. compile endian_reverse_cx_test.cpp ;
  47. compile endian_reverse_cx_test.cpp : <define>BOOST_ENDIAN_NO_INTRINSICS : endian_reverse_cx_test_ni ;
  48. endian-run load_convenience_test.cpp ;
  49. endian-run store_convenience_test.cpp ;
  50. endian-run float_typedef_test.cpp ;
  51. endian-run data_test.cpp ;
  52. endian-run endian_hpp_test.cpp ;