Jamfile.v2 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # Boost Ratio Library test Jamfile
  2. # Copyright Beman Dawes 2003, 2006, 2008
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt
  5. # See library home page at http://www.boost.org/libs/ratio
  6. # uncomment one if the above lines if you build outside the Boost release
  7. #local BOOST_ROOT = /boost_1_41_0 ;
  8. #local BOOST_ROOT = c:/cygwin/boost_1_41_0 ;
  9. if ! $(BOOST_ROOT)
  10. {
  11. BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
  12. }
  13. project
  14. : requirements
  15. #<os>LINUX:<threading>multi
  16. # uncomment the line above if you build outside the Boost release
  17. #<include>$(BOOST_ROOT)
  18. # uncomment the line above if you build outside the Boost release
  19. #<include>../../..
  20. <toolset>msvc:<asynch-exceptions>on
  21. <define>BOOST_ENABLE_WARNINGS
  22. <define>BOOST_RATIO_USES_MPL_ASSERT
  23. <define>BOOST_RATIO_VERSION=2
  24. <define>BOOST_MPL_NEXT_PRIOR_EXT
  25. #<toolset>sun:<define>BOOST_COMMON_TYPE_DONT_USE_TYPEOF
  26. #<toolset>sun:<define>BOOST_TYPEOF_EMULATION
  27. <toolset>sun:<define>__typeof__=__typeof__
  28. <warnings>all
  29. <toolset>gcc:<cxxflags>-Wextra
  30. <toolset>gcc:<cxxflags>-Wno-long-long
  31. <toolset>gcc:<cxxflags>-pedantic
  32. <toolset>darwin:<cxxflags>-Wextra
  33. <toolset>darwin:<cxxflags>-Wno-long-long
  34. <toolset>darwin:<cxxflags>-pedantic
  35. #<toolset>pathscale:<cxxflags>-Wextra
  36. <toolset>pathscale:<cxxflags>-Wno-long-long
  37. <toolset>pathscale:<cxxflags>-pedantic
  38. <toolset>clang:<cxxflags>-Wextra
  39. <toolset>clang:<cxxflags>-pedantic
  40. <toolset>clang:<cxxflags>-Wno-long-long
  41. #<toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers
  42. #<toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
  43. #<toolset>gcc-mingw-4.6.0:<cxxflags>-fdiagnostics-show-option
  44. <toolset>msvc:<cxxflags>/wd4127
  45. # Note: Some of the remarks from the Intel compiler are disabled
  46. # remark #1418: external function definition with no prior declaration
  47. # remark #304: access control not specified ("public" by default)
  48. <toolset>intel:<cxxflags>-wd304,1418
  49. ;
  50. test-suite "ratio_ratio"
  51. :
  52. [ compile typedefs_pass.cpp ]
  53. [ compile ratio_ratio/ratio_pass.cpp ]
  54. [ compile-fail ratio_ratio/ratio1_fail.cpp ]
  55. [ compile-fail ratio_ratio/ratio2_fail.cpp ]
  56. [ compile-fail ratio_ratio/ratio3_fail.cpp ]
  57. [ compile-fail ratio_ratio/ratio4_fail.cpp ]
  58. ;
  59. test-suite "ratio_io"
  60. :
  61. [ compile-fail ratio_io/ratio_io_fail.cpp ]
  62. [ run ratio_io/ratio_io_pass.cpp ]
  63. ;
  64. test-suite "ratio_arithmetic"
  65. :
  66. [ compile ratio_arithmetic/ratio_add_pass.cpp ]
  67. [ compile ratio_arithmetic/ratio_subtract_pass.cpp ]
  68. [ compile ratio_arithmetic/ratio_multiply_pass.cpp ]
  69. [ compile ratio_arithmetic/ratio_divide_pass.cpp ]
  70. [ compile-fail ratio_arithmetic/ratio_add_fail.cpp ]
  71. [ compile-fail ratio_arithmetic/ratio_add_2_fail.cpp ]
  72. [ compile-fail ratio_arithmetic/ratio_add_3_fail.cpp ]
  73. [ compile-fail ratio_arithmetic/ratio_subtract_fail.cpp ]
  74. [ compile-fail ratio_arithmetic/ratio_multiply_fail.cpp ]
  75. [ compile-fail ratio_arithmetic/ratio_divide_fail.cpp ]
  76. [ compile ratio_arithmetic/ratio_negate_pass.cpp ]
  77. [ compile ratio_arithmetic/ratio_sign_pass.cpp ]
  78. [ compile ratio_arithmetic/ratio_abs_pass.cpp ]
  79. [ compile ratio_arithmetic/ratio_power_pass.cpp ]
  80. ;
  81. test-suite "ratio_comparison"
  82. :
  83. [ compile ratio_comparison/ratio_equal_pass.cpp ]
  84. [ compile ratio_comparison/ratio_not_equal_pass.cpp ]
  85. [ compile ratio_comparison/ratio_less_pass.cpp ]
  86. [ compile ratio_comparison/ratio_less_equal_pass.cpp ]
  87. [ compile ratio_comparison/ratio_greater_pass.cpp ]
  88. [ compile ratio_comparison/ratio_greater_equal_pass.cpp ]
  89. ;
  90. test-suite "examples"
  91. :
  92. [ run ../example/si_physics.cpp ]
  93. [ run ../example/display_ex.cpp ]
  94. ;
  95. test-suite "ratio_ext"
  96. :
  97. [ run ratio_extensions/ratio_ext_pass.cpp ]
  98. [ compile ratio_extensions/mpl_plus_pass.cpp ]
  99. [ compile ratio_extensions/mpl_minus_pass.cpp ]
  100. [ compile ratio_extensions/mpl_times_pass.cpp ]
  101. [ compile ratio_extensions/mpl_divides_pass.cpp ]
  102. [ compile ratio_extensions/mpl_negate_pass.cpp ]
  103. [ compile ratio_extensions/mpl_sign_pass.cpp ]
  104. [ compile ratio_extensions/mpl_abs_pass.cpp ]
  105. [ compile ratio_extensions/mpl_equal_to_pass.cpp ]
  106. [ compile ratio_extensions/mpl_not_equal_to_pass.cpp ]
  107. [ compile ratio_extensions/mpl_less_pass.cpp ]
  108. [ compile ratio_extensions/mpl_less_equal_pass.cpp ]
  109. [ compile ratio_extensions/mpl_greater_pass.cpp ]
  110. [ compile ratio_extensions/mpl_greater_equal_pass.cpp ]
  111. [ compile ratio_extensions/mpl_arithmetic_pass.cpp ]
  112. [ compile ratio_extensions/mpl_comparison_pass.cpp ]
  113. [ compile ratio_extensions/mpl_rational_constant_pass.cpp ]
  114. ;
  115. #test-suite "tickets"
  116. # :
  117. # [ run test_6498_pass.cpp ]
  118. # ;