[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question regarding compiling generated file
From: |
Dmitry Sagalovskiy |
Subject: |
Re: Question regarding compiling generated file |
Date: |
Wed, 26 Feb 2003 19:03:40 -0500 (EST) |
I think it works for me. Here: I used to have a plain .cc file that I
compiled and added to the library, and to simulate your setup I moved my
.cc file to .cc2, and added the following to my Conscript file:
Depends $CONS 'strutil.cc', 'strutil.cc2';
Command $CONS 'strutil.cc', 'strutil.cc2', qq( /bin/cp %< %> );
It seems to work fine:
cons: Entering directory `/home/dmitry/work'
Linked targets: build/util
/bin/cp build/util/strutil.cc2 build/util/strutil.cc
g++ -g -Wall -Iinclude -c build/util/strutil.cc -o build/util/strutil.o
I used Cons 2.2.0 on Unix (FreeBSD). Is my test very different from your
setup?
Dmitry
On Wed, 26 Feb 2003, Bill Deegan wrote:
> Greetings,
>
> I have the following logic:
>
> $env->Depends("$target.c",($source));
> $env->Command("$target.c",$source,qq(someprogram %< %>));
>
> This succesfully generates the $target.c file, and puts in in the
> build area, but when I specify that $target.c is a program source,
> cons looks in the source area and doesn't look in the objects area.
>
> How can I get cons to look in the generated file area?
>
> -Bill
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>
> _______________________________________________
> address@hidden
> http://mail.gnu.org/mailman/listinfo/cons-discuss
> Cons URL: http://www.dsmit.com/cons/
>