Subject: Re: [Boost-build] Dependent install targets
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-02 17:53:29
Johan Nilsson wrote:
> - Project A installs a.exe to e.g. /projA/bin/a.exe
> - Project B installs b.exe to e.g. /projB/bin/b.exe
> - The latter should also include project A's a.exe target installation
> to /projB/bin/a.exe
> Is there a way of doing this by simply referring to a single target
> defined within project A?
> I guess it would be possible to explicitly refer to specific targets
> from project B, e.g. "/projA/src/a/Jamfile//a", but I'd like project A
> to define what dependent projects gets to install.
You'll want to override the <location> property.
Project A, Jamfile.jam:
install relocatable-install : a : : <location>/projA/bin ;
Project B, Jamfile.jam:
alias install : /projA//relocatable-install/<location>/projB/bin ;
Note that <location> needs to be in the default-build for
projA//install so that it can be overridden.
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