Boost logo

Boost-Build :

From:  (chen_cnd_at_[hidden])
Date: 2006-05-02 20:30:04


Hi, all,
 
I want to use bjam in my own project, so I write the following Jamfiles:
 
\Jamfile:
project-root ;
subinclude wctp/src ;
subinclude wctp/stunturn ;
 
\Jamrules:
project wc ;
path-global WC_ROOT : . ;
3RDPARTY_DIR = $(WC_ROOT)/3rdparty ;
 
\boost-build.jam:
WC_ROOT = $(.boost-build-file:D) ;
boost-build build ;#copied boost_1_33_1\tools\build\v1 to directory \build.
 
\wcbase.jam:
template wc_base : ## sources ## : ## requirements ## <sysinclude>$(3RDPARTY_DIR)
          <define>WC_DEBUG
        : ## default build ## <suppress>false
 
\wctp\src\Jamfile:
subproject wctp/src ;
import $(WC_ROOT)/wcbase ;
    lib wctp : ## sources ## <template>wc_base $(CPP_SOURCES) : ## requirements ## <include>../inl <define>TP_OS_BUILD_DLL : ## default build ## ;
 
\wctp\stunturn\Jamfile:
subproject wctp/stunturn ;
import $(WC_ROOT)/wcbase ;
    exe stun_turn_server : ## sources ## <template>wc_base <lib>../src/wctp $(CPP_SOURCES) : ## requirements ## <library-file>$(ACE_LIB) <include>../inl <include>../src <threading>multi : ## default build ## ;
When I excuted bjam in \ directory, I found template wc_base was used when building lib wctp, but template wc_base was NOT used when building exe stun_turn_server.
 
And I also found it was OK when excuting bjam in directory \wctp\stunturn.
 
Could someone tell me how to resolve it?
 
And is there successful story that using bjam in other projects rather than boost?
 
Thanks
budingc
 
 
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:
http://messenger.msn.com/cn



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk