summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/gil/fabscript
blob: bb0328810c4c06053606466f15d7198feeebd36d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- python -*-
#
# Copyright (c) 2017 Stefan Seefeld
# All rights reserved.
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

from faber import platform
from faber.feature import set
from faber.tools.compiler import include, define, linkpath
from os.path import join

features += include('include')
features += define('BOOST_ALL_NO_LIB')  # disable auto-linking
boost_prefix = options.get_with('boost-prefix')
boost_include = options.get_with('boost-include')
boost_lib = options.get_with('boost-lib')
boost_suffix = options.get_with('boost-suffix')
if boost_prefix:
    features += set(include(join(boost_prefix, 'include')), linkpath(join(boost_prefix, 'lib')))
else:
    if boost_include:
        features += include(boost_include)
    if boost_lib:
        features += linkpath(boost_lib)

test = module('test', features=features)
io_test = module('io_test', 'io/test', features=features)
toolbox_test = module('toolbox_test', 'toolbox/test', features=features)