Jamfile.v2 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # (C) Copyright boost 2004-2014.
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)
  4. #
  5. # See http://www.boost.org/libs/test for the library home page.
  6. import os ;
  7. import ../../predef/check/predef
  8. : check
  9. : predef-check ;
  10. project boost/test
  11. : source-location ../src
  12. : requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1
  13. <toolset>borland:<cxxflags>-w-8080
  14. <target-os>cygwin:<define>_POSIX_C_SOURCE=200112L
  15. # Disable Warning about boost::noncopyable not being exported
  16. <link>shared,<toolset>msvc:<cxxflags>-wd4275
  17. <toolset>msvc:<cxxflags>-wd4671
  18. <toolset>msvc:<cxxflags>-wd4673
  19. [ predef-check "BOOST_COMP_GNUC >= 4.3.0" : : <cxxflags>-Wno-variadic-macros ]
  20. <toolset>clang:<cxxflags>-Wno-c99-extensions
  21. <toolset>clang:<cxxflags>-Wno-variadic-macros
  22. <warnings>all
  23. # <warnings-as-errors>on
  24. : usage-requirements
  25. <define>BOOST_TEST_NO_AUTO_LINK=1
  26. # Disable Warning about boost::noncopyable not being exported
  27. <link>shared,<toolset>msvc:<cxxflags>-wd4275
  28. ;
  29. PRG_EXEC_MON_SOURCES =
  30. execution_monitor
  31. debug
  32. cpp_main
  33. ;
  34. TEST_EXEC_MON_SOURCES =
  35. compiler_log_formatter
  36. debug
  37. decorator
  38. execution_monitor
  39. framework
  40. plain_report_formatter
  41. progress_monitor
  42. results_collector
  43. results_reporter
  44. test_framework_init_observer
  45. test_main
  46. test_tools
  47. test_tree
  48. unit_test_log
  49. unit_test_main
  50. unit_test_monitor
  51. unit_test_parameters
  52. junit_log_formatter
  53. xml_log_formatter
  54. xml_report_formatter
  55. ;
  56. UTF_SOURCES =
  57. compiler_log_formatter
  58. debug
  59. decorator
  60. execution_monitor
  61. framework
  62. plain_report_formatter
  63. progress_monitor
  64. results_collector
  65. results_reporter
  66. test_framework_init_observer
  67. test_tools
  68. test_tree
  69. unit_test_log
  70. unit_test_main
  71. unit_test_monitor
  72. unit_test_parameters
  73. junit_log_formatter
  74. xml_log_formatter
  75. xml_report_formatter
  76. ;
  77. lib boost_prg_exec_monitor
  78. : # sources
  79. $(PRG_EXEC_MON_SOURCES).cpp
  80. : # requirements
  81. : # default build
  82. : # usage-requirements
  83. <link>shared:<define>BOOST_TEST_DYN_LINK=1
  84. ;
  85. lib boost_test_exec_monitor
  86. : # sources
  87. $(TEST_EXEC_MON_SOURCES).cpp
  88. : # requirements
  89. <link>static
  90. : # default build
  91. : # usage-requirements
  92. <link>shared:<define>BOOST_TEST_DYN_LINK=1
  93. ;
  94. lib boost_unit_test_framework
  95. : # sources
  96. $(UTF_SOURCES).cpp
  97. : # requirements
  98. : # default build
  99. : # usage-requirements
  100. <link>shared:<define>BOOST_TEST_DYN_LINK=1
  101. ;
  102. alias minimal ;
  103. alias included ;
  104. boost-install boost_prg_exec_monitor
  105. boost_test_exec_monitor
  106. boost_unit_test_framework ;