]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
92f5a8d4 TL |
7 | import os ; |
8 | ||
11fdf7f2 | 9 | import ../../predef/check/predef |
92f5a8d4 | 10 | : check |
11fdf7f2 TL |
11 | : predef-check ; |
12 | ||
7c673cae FG |
13 | project boost/test |
14 | : source-location ../src | |
15 | : requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1 | |
16 | <toolset>borland:<cxxflags>-w-8080 | |
92f5a8d4 | 17 | <target-os>cygwin:<define>_POSIX_C_SOURCE=200112L |
7c673cae FG |
18 | # Disable Warning about boost::noncopyable not being exported |
19 | <link>shared,<toolset>msvc:<cxxflags>-wd4275 | |
20 | <toolset>msvc:<cxxflags>-wd4671 | |
21 | <toolset>msvc:<cxxflags>-wd4673 | |
11fdf7f2 | 22 | [ predef-check "BOOST_COMP_GNUC >= 4.3.0" : : <cxxflags>-Wno-variadic-macros ] |
7c673cae FG |
23 | <toolset>clang:<cxxflags>-Wno-c99-extensions |
24 | <toolset>clang:<cxxflags>-Wno-variadic-macros | |
25 | <warnings>all | |
26 | # <warnings-as-errors>on | |
27 | ||
7c673cae FG |
28 | : usage-requirements |
29 | <define>BOOST_TEST_NO_AUTO_LINK=1 | |
30 | # Disable Warning about boost::noncopyable not being exported | |
31 | <link>shared,<toolset>msvc:<cxxflags>-wd4275 | |
7c673cae FG |
32 | ; |
33 | ||
34 | PRG_EXEC_MON_SOURCES = | |
35 | execution_monitor | |
36 | debug | |
37 | cpp_main | |
38 | ; | |
39 | ||
40 | TEST_EXEC_MON_SOURCES = | |
41 | compiler_log_formatter | |
42 | debug | |
43 | decorator | |
44 | execution_monitor | |
45 | framework | |
46 | plain_report_formatter | |
47 | progress_monitor | |
48 | results_collector | |
49 | results_reporter | |
b32b8144 | 50 | test_framework_init_observer |
7c673cae FG |
51 | test_main |
52 | test_tools | |
53 | test_tree | |
54 | unit_test_log | |
55 | unit_test_main | |
56 | unit_test_monitor | |
57 | unit_test_parameters | |
58 | junit_log_formatter | |
59 | xml_log_formatter | |
60 | xml_report_formatter | |
61 | ; | |
62 | ||
63 | UTF_SOURCES = | |
64 | compiler_log_formatter | |
65 | debug | |
66 | decorator | |
67 | execution_monitor | |
68 | framework | |
69 | plain_report_formatter | |
70 | progress_monitor | |
71 | results_collector | |
72 | results_reporter | |
b32b8144 | 73 | test_framework_init_observer |
7c673cae FG |
74 | test_tools |
75 | test_tree | |
76 | unit_test_log | |
77 | unit_test_main | |
78 | unit_test_monitor | |
79 | unit_test_parameters | |
80 | junit_log_formatter | |
81 | xml_log_formatter | |
82 | xml_report_formatter | |
83 | ; | |
84 | ||
85 | lib boost_prg_exec_monitor | |
86 | : # sources | |
87 | $(PRG_EXEC_MON_SOURCES).cpp | |
88 | : # requirements | |
89 | : # default build | |
90 | : # usage-requirements | |
91 | <link>shared:<define>BOOST_TEST_DYN_LINK=1 | |
92 | ; | |
93 | ||
94 | lib boost_test_exec_monitor | |
95 | : # sources | |
96 | $(TEST_EXEC_MON_SOURCES).cpp | |
97 | : # requirements | |
98 | <link>static | |
99 | : # default build | |
100 | : # usage-requirements | |
101 | <link>shared:<define>BOOST_TEST_DYN_LINK=1 | |
102 | ; | |
103 | ||
104 | lib boost_unit_test_framework | |
105 | : # sources | |
106 | $(UTF_SOURCES).cpp | |
107 | : # requirements | |
108 | : # default build | |
109 | : # usage-requirements | |
110 | <link>shared:<define>BOOST_TEST_DYN_LINK=1 | |
111 | ; | |
112 | ||
113 | alias minimal ; | |
114 | ||
115 | alias included ; | |
116 | ||
117 | boost-install boost_prg_exec_monitor | |
118 | boost_test_exec_monitor | |
119 | boost_unit_test_framework ; |