|
Boost-Build : |
From: Phillip Seaver (phil_at_[hidden])
Date: 2006-12-11 09:07:49
Kostas Kostiadis wrote:
> I'm having similar trouble trying to install an executable together with the
> data that it needs...
> Say we have myApp.exe and data.xml and we want them both to be installed in
> ./bin
>
> If I do:
>
> install ./bin : myApp data.xml
> : <install-dependencies>on <install-type>EXE
> ;
>
> It only installs myApp.exe (and ignores data.xml).
> If I do
>
> install ./bin : data.xml ;
>
> It quite happily does "common.copy bin\data.xml"
>
> If I have 2 "install ./bin" lines (i.e.
>
> install ./bin : myApp
> : <install-dependencies>on <install-type>EXE
> ;
>
> install ./bin : data.xml ;
>
> As you'd exepct it gives the following error:
> error: No best alternative for ././bin
> next alternative: required properties: (empty)
> matched
> next alternative: required properties: (empty)
> matched
>
> Any idea how I can install my EXE together with the data it needs?
>
> Cheers,
> Kos
>
As far as I know, the first argument to the "install" rule is the target
name, not the output location. So, if you just changed it to:
install app : myApp : <install-dependencies>on <install-type>EXE ;
install data : data.xml ;
...it should work. If you want to change where it gets installed, use
"<location>".
Phillip
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