1 # Copyright 2017 Rene Rivera
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or copy at
4 # http://www.boost.org/LICENSE_1_0.txt)
6 # Here we automatically define any "feature" modules in this directory.
10 import os path modules ;
12 .this-module's-file = [ modules.binding $(__name__) ] ;
13 .this-module's-dir = [ path.parent [ path.make $(.this-module's-file) ] ] ;
14 .to-load-jamfiles = [ path.glob $(.this-module's-dir) : *-$(key).jam ] ;
15 .to-load-modules = [ MATCH ^(.*)\.jam$ : $(.to-load-jamfiles) ] ;
17 # A loop over all matched modules in this directory
18 for local m in $(.to-load-modules)
20 m = [ path.basename $(m) ] ;