2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Boost Build cleanup - made the project.use rule local + minor stylistic changes.

[SVN r79910]
This commit is contained in:
Jurko Gospodnetić
2012-08-07 14:15:31 +00:00
parent d097df0ec6
commit 0372eb469e

View File

@@ -83,12 +83,11 @@ rule load-used-projects ( module-name )
{
local used = [ modules.peek $(module-name) : .used-projects ] ;
local location = [ attribute $(module-name) location ] ;
import project ;
while $(used)
{
local id = $(used[1]) ;
local where = $(used[2]) ;
project.use $(id) : [ path.root [ path.make $(where) ] $(location) ] ;
use $(id) : [ path.root [ path.make $(where) ] $(location) ] ;
used = $(used[3-]) ;
}
}
@@ -787,7 +786,7 @@ rule target ( project-module )
# Use/load a project.
#
rule use ( id : location )
local rule use ( id : location )
{
local project-module = [ project.load $(location) ] ;
local declared-id = [ project.attribute $(project-module) id ] ;