|
Boost-Build : |
Subject: Re: [Boost-build] [EXTERNAL] Re: Getting product dependencies from bjam
From: Mark E. Hamilton (mhamilt_at_[hidden])
Date: 2013-12-17 12:18:13
On 12/16/13 09:57, Steven Watanabe wrote:
> On 12/16/2013 08:41 AM, Mark E. Hamilton wrote:
>> <snip>
>> Is there way to get bjam to output a list of all dependencies of a
>> specified target in a format that we could then parse to extract the
>> top-level product and TPLs required to build that target? My first
>> thought was this:
>>
>> bjam -d1 -k -a -n .. /some//target | sed parse_my_products
>>
>> but like my manual attempt it only produces a list of things that
>> actually generate objects. Any guidance would be appreciated. Thanks.
>>
>
> You can try -d+12 which dumps the full dependency
> graph.
Thanks. That sure dumps a boatload of data. I get about 604K lines, so
I'm not quite sure what I'll need to pick out of it. For example, in the
(partial) output below the substring within the <p...> tag seems in some
cases to be the directory containing the Jamfile, but in others is a
directory in the object tree.
Does the MPIH-object sub-string indicate that path is the project
directory? In this simple case I only get one unique substring with
MPIH-object in it, but in the full output some directories have it
multiple times (each with different @XXXXX values.)
: Depends on
<p/scratch/mhamilt/sierra_votd/Nbtools/MPIH-object(c-scanner)@34779>/scratch/mhamilt/sierra_votd/MPIH/src/MPIH_Bcast.c
(internal node) (update) (max time)
: Depends on
<p/scratch/mhamilt/sierra_votd/Nbtools/MPIH-object(c-scanner)@34779>/scratch/mhamilt/sierra_votd/MPIH/src/MPIH_Bcast.c
(update) (max time)
: Depends on
<p/scratch/mhamilt/sierra_votd/Nbtools/MPIH-object(c-scanner)@34779>/scratch/mhamilt/sierra_votd/MPIH/src/MPIH_Env.c
(internal node) (update) (max time)
: Depends on
<p/scratch/mhamilt/sierra_votd/Nbtools/MPIH-object(c-scanner)@34779>/scratch/mhamilt/sierra_votd/MPIH/src/MPIH_Env.c
(update) (max time)
...
: Depends on
<p/scratch/mhamilt/sierra_votd/Nbtools/MPIH>/scratch/mhamilt/sierra_votd/MPIH/src/MPIH_Bcast.c
(touched) (max time)
: Depends on
<p/scratch/mhamilt/sierra_votd/Nbtools/MPIH>/scratch/mhamilt/sierra_votd/MPIH/src/MPIH_Env.c
(touched) (max time)
...
: Depends on
<p/scratch/mhamilt/sierra_votd/objs/apps/MPIH/votd/gcc-4.7.2/release/address-model-64/mpi-openmpi/runtime-link-shared/threading-multi>MPIH_Bcast.o
(update) (max time)
: Depends on
<p/scratch/mhamilt/sierra_votd/objs/apps/MPIH/votd/gcc-4.7.2/release/address-model-64/mpi-openmpi/runtime-link-shared/threading-multi>MPIH_Env.o
(update) (max time)
-- ---------------- Mark E. Hamilton Senior Member of Technical Staff Sandia National Laboratories 505-844-7666
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