Jamfile.v2 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # copyright John Maddock 2003
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # (See accompanying file LICENSE_1_0.txt or copy at
  4. # http://www.boost.org/LICENSE_1_0.txt.
  5. project
  6. : requirements
  7. <threading>multi
  8. <link>shared:<define>BOOST_REGEX_DYN_LINK=1
  9. # There are unidentified linker problems on these platforms:
  10. <toolset>mipspro-7.4:<link>static
  11. <toolset>sun-5.9:<link>static
  12. <toolset>msvc:<warnings>all
  13. <toolset>gcc:<warnings>all
  14. <toolset>gcc:<cxxflags>-Wextra
  15. <define>U_USING_ICU_NAMESPACE=0
  16. #<toolset>gcc-mw:<link>static
  17. #<toolset>gcc-mingw:<link>static
  18. <toolset>gcc-cygwin:<link>static
  19. ;
  20. rule regex-test-run ( sources + : input * : name * )
  21. {
  22. return [
  23. run
  24. # sources
  25. $(sources)
  26. # dependencies
  27. ../build//boost_regex
  28. : # additional args
  29. $(input)
  30. : # test-files
  31. : # requirements
  32. <toolset>msvc-7.1:<define>TEST_MFC=1 <toolset>msvc-7.0:<define>TEST_MFC=1
  33. : # test name
  34. $(name)
  35. ] ;
  36. }
  37. test-suite regex-examples :
  38. [ regex-test-run timer/regex_timer.cpp : $(BOOST_ROOT)/libs/regex/example/timer/input_script.txt ]
  39. [ regex-test-run grep/grep.cpp ../../program_options/build//boost_program_options/<link>static : -n -b $(BOOST_ROOT)/boost/regex.hpp $(BOOST_ROOT)/boost/type_traits.hpp : test_grep ]
  40. [ regex-test-run snippets/credit_card_example.cpp ]
  41. [ regex-test-run snippets/mfc_example.cpp ]
  42. [ regex-test-run snippets/icu_example.cpp ]
  43. [ regex-test-run snippets/partial_regex_grep.cpp : $(BOOST_ROOT)/libs/regex/index.htm ]
  44. [ regex-test-run snippets/partial_regex_iterate.cpp : $(BOOST_ROOT)/libs/regex/index.htm ]
  45. [ regex-test-run snippets/partial_regex_match.cpp : 1234-5678-8765-4 ]
  46. [ regex-test-run snippets/regex_grep_example_1.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  47. [ regex-test-run snippets/regex_grep_example_2.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  48. [ regex-test-run snippets/regex_grep_example_3.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  49. [ regex-test-run snippets/regex_grep_example_4.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  50. [ regex-test-run snippets/regex_match_example.cpp : -auto ]
  51. [ regex-test-run snippets/regex_merge_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  52. [ regex-test-run snippets/regex_replace_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  53. [ regex-test-run snippets/regex_search_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  54. [ regex-test-run snippets/regex_split_example_1.cpp : -auto ]
  55. [ regex-test-run snippets/regex_split_example_2.cpp : $(BOOST_ROOT)/libs/regex/doc/html/index.html ]
  56. [ regex-test-run snippets/regex_token_iterator_eg_1.cpp : -auto ]
  57. [ regex-test-run snippets/regex_token_iterator_eg_2.cpp : $(BOOST_ROOT)/libs/regex/doc/html/index.html ]
  58. [ regex-test-run snippets/regex_iterator_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
  59. [ run snippets/captures_example.cpp
  60. ../test/captures//boost_regex_extra
  61. : : : <threading>multi <define>BOOST_REGEX_MATCH_EXTRA=1 ]
  62. ;