Subject: Re: [Boost-build] Copy file to output directory
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-04-04 16:27:00
> Hello boost build users,
> maybe someone could please help me, I need to copy the file from source
>directory (where Jamfile is located) to output directory (where binary is
>finally built to).
> Seems quite simple but I am unable to find out the way to specify the output
>directory as it depends on build variant, address mode and so on.
> Thanks in advance,
# WARNING: untested, typed directly in e-mail client
install install-file : file.txt :
<variant>release,<address-model>32:<location>bin_release32 ; #etc.
, which won't quite work yet unless address-model is set explicitly, or:
install install-file : file.txt : <conditional>@file-install-location ;
import property-set ;
rule file-install-location ( properties * )
local ps = [ property-set.create $(properties) ] ;
local variant = [ $(ps).get <variant> ] ;
local addr-model = [ $(ps).get <address-model> ] ;
addr-model ?= 32 ; # if <address-model>32 is assumed by default
return <location>bin_$(variant)$(addr-model) ;
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