1# -*- python -*-
2#
3# Copyright (c) 2017 Stefan Seefeld
4# All rights reserved.
5#
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)
9
10from faber import platform
11from faber.feature import set
12from faber.tools.compiler import include, define, linkpath
13from os.path import join
14
15features += include('include')
16features += define('BOOST_ALL_NO_LIB')  # disable auto-linking
17boost_prefix = options.get_with('boost-prefix')
18boost_include = options.get_with('boost-include')
19boost_lib = options.get_with('boost-lib')
20boost_suffix = options.get_with('boost-suffix')
21if boost_prefix:
22    features += set(include(join(boost_prefix, 'include')), linkpath(join(boost_prefix, 'lib')))
23else:
24    if boost_include:
25        features += include(boost_include)
26    if boost_lib:
27        features += linkpath(boost_lib)
28
29test = module('test', features=features)
30io_test = module('io_test', 'io/test', features=features)
31toolbox_test = module('toolbox_test', 'toolbox/test', features=features)
32