mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 13:22:11 +00:00
24 lines
743 B
Plaintext
24 lines
743 B
Plaintext
# Copyright 2017 Rene Rivera
|
|
# 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)
|
|
|
|
# Here we automatically define any "feature" modules in this directory.
|
|
|
|
local key = feature ;
|
|
|
|
import os path modules ;
|
|
|
|
.this-module's-file = [ modules.binding $(__name__) ] ;
|
|
.this-module's-dir = [ path.parent [ path.make $(.this-module's-file) ] ] ;
|
|
.to-load-jamfiles = [ path.glob $(.this-module's-dir) : *-$(key).jam ] ;
|
|
.to-load-modules = [ MATCH ^(.*)\.jam$ : $(.to-load-jamfiles) ] ;
|
|
|
|
# A loop over all matched modules in this directory
|
|
for local m in $(.to-load-modules)
|
|
{
|
|
m = [ path.basename $(m) ] ;
|
|
m = $(key)s/$(m) ;
|
|
import $(m) ;
|
|
}
|