2 messages in com.perforce.jamming[jamming] ResourceCompiler rule
FromSent OnAttachments
Ivet...@schema.com18 Oct 2000 02:12 
Amau...@atsm.fr18 Oct 2000 05:45 
Subject:[jamming] ResourceCompiler rule
From:Ivet...@schema.com (Ivet@schema.com)
Date:10/18/2000 02:12:41 AM
List:com.perforce.jamming

Hi, all I need a help I want to write rule that compiles *.rc files in *.res files

My Jamfile is:

Main ST : STMain.cpp ; LibraryFromObjects ST : STMain.res ; Object STMain.res : STMain.rc ;

My Jamrules looks like this: rule UserObject { switch $(>:S) { case .rc : ResourceCompiler $(>:S=.res) : $(>) ; case * : ECHO "unknown suffix on" $(>) ; } }

rule ResourceCompiler { ECHO $(<) $(>) ; DEPENDS $(<) : $(>) ; Clean clean : $(<) ; }

actions ResourceCompiler { ECHO "I am in action" ; rc /D _AFXDLL /fo $(<) $(RCFLAGS) $(>) }

But it doesn't work. I receive next message: "Don't know how to make STMain.res"

Where is my mistake? If somebody tried to compile rc files into res?

Thx

Ivetta Estrin-Sandler Schema Ltd. ive@schema.com