Boost logo

Boost-Build :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2006-07-24 12:47:11


Vladimir Prus wrote:
> If explanations there makes no sense, please post the complete Jamfile.v2, as
> attachment, and I'll take a look.

As it turned out I was studying an old version of the bbv2
documentation. Thank you for having me pointed to the current one.

Altough departing from your initial suggestion I would kindly ask you to
have a look onto and comment the following attempt to solve the problem:

import feature ;
feature.feature platform : native pthread : ;

project boost/thread
     : source-location ../src
     : default-build <threading>multi
     ;

lib boost_thread_pthread
        : ## sources ##
            pthread/thread.cpp
            pthread/mutex.cpp
            pthread/condition.cpp
            pthread/exceptions.cpp
            pthread/xtime.cpp
        : ## requirements ##
            <platform>pthread
        ;

lib boost_thread
        : ## sources ##
            linux/thread.cpp
            linux/mutex.cpp
            linux/condition.cpp
            linux/exceptions.cpp
            linux/xtime.cpp
        : ## requirements ##
          <platform>native # native is default and may be omitted
        ;

This apparently does what I intended (altough I did not yet have tested
the resulting library). I am wondering whether this might have any
adverse side effects I am not aware of. E.g. will this work correctly
when I am referencing the lib from an external project?

Thank you for your patience,
Roland


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