|
Boost-Build : |
From: Jordan Rosenthal (jr_at_[hidden])
Date: 2005-11-04 10:12:06
Hi,
I'm trying to create a toolset. I would like the toolset to be able to
create an object file in the current project's root out of a file that
exists somewhere else on the system.
So I put the following in mytoolset.jam file (along with a bunch of
other stuff which I'm omitting for brevity):
obj myobj : /somepath/to/target.c ;
rule myrule ( target : sources + )
{
myexe $(<) : $(>) /myproj//myobj : $(other_stuff) ;
}
I have a directory structure like:
/pth/to/toplevel/
project-root.jam
mytoolset.jam
Jamfile.jam
/pth/to/toplevel/subproj
Jamfile
file1.c
file2.c
The project-root.jam "includes" the toolset with the command:
using mytoolset ;
The subproject then tries to use the rule myrule. What I want to happen
is for myobj.o to be placed in /pth/to/toplevel/gcc/debug/<etc>/.
What I get is:
MkDir1 "/gcc
mkdir: cannot create directory '/gcc'
It seems as if it is trying to put the object at the root of my
filesystem instead of the root of my project.
How can I fix this? Any help is appreciated.
Thanks,
Jordan
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