diff options
Diffstat (limited to 'src/boost/libs/gil/fabscript')
-rw-r--r-- | src/boost/libs/gil/fabscript | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/boost/libs/gil/fabscript b/src/boost/libs/gil/fabscript new file mode 100644 index 00000000..bb032881 --- /dev/null +++ b/src/boost/libs/gil/fabscript @@ -0,0 +1,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) |