2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00
Files
build/src/tools/features/__init_features__.jam

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) ;
}