[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: building an obj file multiple places

From: Kolarik, Tony
Subject: RE: building an obj file multiple places
Date: Thu, 5 Oct 2000 11:33:10 -0400

Based on the lack of response I assume there's no easy way to do this.  (or
its a secret :-)

But, could someone explain why its undesirable to build the same source file
two ways as long as it builds separate objs?  Thanks,
 -- Tony K.

> -----Original Message-----
> From: Kolarik, Tony 
> Sent: Tuesday, October 03, 2000 9:06 AM
> To: address@hidden
> Subject: building an obj file multiple places
> I've probably asked this question enough times myself for it 
> to deserve a place in the FAQ, but I've wiped out my personal 
> cons "archive", so here I go again...
> I need to build a couple of files from other directories into 
> the current directory, as well as the directories they exist in.
> # blah conscript: compile these all into this directory.
> foo.c
> ..\foo\bar.c
> ..\baz\that.c
> # foo conscript
> bar.c
> # baz conscript
> that.c
> I'd rather not link whole source directories to fake ones so 
> I tried just linking the file instead:
> $file = SourcePath "$BUILD/foo/bar.c";
> Link $file  => 'bar.c';
> but I get: 
> cons: error in file "blah\blah\Conscript" (Can't locate 
> object method "base" via package "dir" at cons line 950.)
> Is there an easy, single conscript solution for this?
>  -- Tony K.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]