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