1#============================================================================== 2# Copyright (c) 2001-2011 Joel de Guzman 3# Copyright (c) 2001-2012 Hartmut Kaiser 4# Copyright (c) 2011 Bryce Lelbach 5# 6# Use, modification and distribution is subject to the Boost Software 7# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 8# http://www.boost.org/LICENSE_1_0.txt) 9#============================================================================== 10 11import testing ; 12 13############################################################################### 14 15project spirit-support 16 : requirements 17 <include>. 18 <c++-template-depth>512 19 ; 20 21############################################################################### 22 23local subproject-name = support ; 24 25rule run ( sources + : args * : input-files * 26 : requirements * : target-name ? : default-build * ) 27{ 28 target-name ?= $(subproject-name)_$(sources[1]:D=:S=) ; 29 return [ testing.run $(sources) : $(args) : $(input-files) 30 : $(requirements) : $(target-name) : $(default-build) ] ; 31} 32 33rule compile ( sources + : requirements * : target-name ? ) 34{ 35 target-name ?= $(subproject-name)_$(sources[1]:D=:S=) ; 36 return [ testing.compile $(sources) 37 : $(requirements) : $(target-name) ] ; 38} 39 40rule compile-fail ( sources + : requirements * : target-name ? ) 41{ 42 target-name ?= $(subproject-name)_$(sources[1]:D=:S=) ; 43 return [ testing.compile-fail $(sources) 44 : $(requirements) : $(target-name) ] ; 45} 46 47############################################################################### 48 49run char_encoding.cpp ; 50run istream_iterator_basic.cpp ; 51run unused_type.cpp ; 52run utree.cpp ; 53run utree_debug.cpp ; 54 55compile regression_multi_pass_functor.cpp ; 56compile regression_multi_pass_position_iterator.cpp ; 57run regression_multi_pass_error_handler.cpp ; 58run regression_multi_pass_parse.cpp ; 59run regression_line_pos_iterator.cpp ; 60