• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
7import os ;
8
9import ../../predef/check/predef
10    : check
11    : predef-check ;
12
13project boost/test
14    : source-location ../src
15    : requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1
16                   <toolset>borland:<cxxflags>-w-8080
17                   <target-os>cygwin:<define>_POSIX_C_SOURCE=200112L
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
22                   [ predef-check "BOOST_COMP_GNUC >= 4.3.0" : : <cxxflags>-Wno-variadic-macros ]
23                   <toolset>clang:<cxxflags>-Wno-c99-extensions
24                   <toolset>clang:<cxxflags>-Wno-variadic-macros
25                   <warnings>all
26                   # <warnings-as-errors>on
27
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
32    ;
33
34PRG_EXEC_MON_SOURCES =
35  execution_monitor
36  debug
37  cpp_main
38  ;
39
40TEST_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
50  test_framework_init_observer
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
63UTF_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
73  test_framework_init_observer
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
85lib 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
94lib 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
104lib 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
113alias minimal ;
114
115alias included ;
116
117boost-install boost_prg_exec_monitor
118              boost_test_exec_monitor
119              boost_unit_test_framework ;
120