Boost logo

Boost-Build :

From: 김영현 (yhyun.kim_at_[hidden])
Date: 2007-10-15 20:23:56


I made two different files, Jamroot and rules.jam in the same directory. "
rules.jam" has lots of information about building a project. So, "Jamroot"
file has to access many variables exist in "rules.jam". Anyway, I used some
code below. I palced this code to "rules.jam".

# in "rules.jam"
local CFLAGS = -Wall -O2 ... ;

rule peek ( module-name ? : variables + )
   module-name $(module-name)
     return $($(>)) ;

And I used it by this code in "Jamroot".

# in "Jamfile"
import rules ;
local cflags = [ rules.peek : CFLAGS ] ;
echo $(cflags) ;

But, it didn't make any outputs. Why..?

Does anybody know how to solve it?

Thanks in advance.

Young Hyun.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at