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
6project
7    : requirements
8      <threading>multi
9      <link>shared:<define>BOOST_REGEX_DYN_LINK=1
10      # There are unidentified linker problems on these platforms:
11      <toolset>mipspro-7.4:<link>static
12      <toolset>sun-5.9:<link>static
13      <toolset>msvc:<warnings>all
14      <toolset>gcc:<warnings>all
15      <toolset>gcc:<cxxflags>-Wextra
16      <define>U_USING_ICU_NAMESPACE=0
17      #<toolset>gcc-mw:<link>static
18	  #<toolset>gcc-mingw:<link>static
19	  <toolset>gcc-cygwin:<link>static
20    ;
21
22rule regex-test-run ( sources + : input * : name * )
23{
24        return [
25           run
26             # sources
27             $(sources)
28             # dependencies
29             ../build//boost_regex
30         :  # additional args
31            $(input)
32         :  # test-files
33         :  # requirements
34            <toolset>msvc-7.1:<define>TEST_MFC=1 <toolset>msvc-7.0:<define>TEST_MFC=1
35         :  # test name
36            $(name)
37        ] ;
38}
39
40test-suite regex-examples :
41
42[ regex-test-run timer/regex_timer.cpp : $(BOOST_ROOT)/libs/regex/example/timer/input_script.txt ]
43[ 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 ]
44[ regex-test-run snippets/credit_card_example.cpp ]
45[ regex-test-run snippets/mfc_example.cpp ]
46[ regex-test-run snippets/icu_example.cpp ]
47[ regex-test-run snippets/partial_regex_grep.cpp : $(BOOST_ROOT)/libs/regex/index.htm ]
48[ regex-test-run snippets/partial_regex_iterate.cpp : $(BOOST_ROOT)/libs/regex/index.htm ]
49[ regex-test-run snippets/partial_regex_match.cpp : 1234-5678-8765-4 ]
50[ regex-test-run snippets/regex_grep_example_1.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
51[ regex-test-run snippets/regex_grep_example_2.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
52[ regex-test-run snippets/regex_grep_example_3.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
53[ regex-test-run snippets/regex_grep_example_4.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
54[ regex-test-run snippets/regex_match_example.cpp : -auto ]
55[ regex-test-run snippets/regex_merge_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
56[ regex-test-run snippets/regex_replace_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
57[ regex-test-run snippets/regex_search_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
58[ regex-test-run snippets/regex_split_example_1.cpp : -auto ]
59[ regex-test-run snippets/regex_split_example_2.cpp : $(BOOST_ROOT)/libs/regex/doc/html/index.html ]
60[ regex-test-run snippets/regex_token_iterator_eg_1.cpp : -auto ]
61[ regex-test-run snippets/regex_token_iterator_eg_2.cpp : $(BOOST_ROOT)/libs/regex/doc/html/index.html ]
62[ regex-test-run snippets/regex_iterator_example.cpp : $(BOOST_ROOT)/boost/rational.hpp ]
63[ run snippets/captures_example.cpp
64  ../test/captures//boost_regex_extra
65  : : :  <threading>multi <define>BOOST_REGEX_MATCH_EXTRA=1 ]
66
67;
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82