3 # Copyright (c) 2017 Stefan Seefeld
6 # Distributed under the Boost Software License, Version 1.0.
7 # (See accompanying file LICENSE_1_0.txt or copy at
8 # http://www.boost.org/LICENSE_1_0.txt)
10 from faber import platform
11 from faber.feature import set
12 from faber.tools.compiler import include, define, linkpath
13 from os.path import join
15 features += include('include')
16 features += define('BOOST_ALL_NO_LIB') # disable auto-linking
17 boost_prefix = options.get_with('boost-prefix')
18 boost_include = options.get_with('boost-include')
19 boost_lib = options.get_with('boost-lib')
20 boost_suffix = options.get_with('boost-suffix')
22 features += set(include(join(boost_prefix, 'include')), linkpath(join(boost_prefix, 'lib')))
25 features += include(boost_include)
27 features += linkpath(boost_lib)
29 test = module('test', features=features)
30 io_test = module('io_test', 'io/test', features=features)
31 toolbox_test = module('toolbox_test', 'toolbox/test', features=features)