[jamming] Jam commands to build a specific file
Craig Kadziolka
craigk at wp.pl
Fri May 26 15:21:17 PDT 2006
Hi everyone,
I was wondering if it is possible to specify a jam rule/action to tell jam
how to build a specific file as part of a larger build.
I just want to be able to tell Jam to build resources.o from resources.rc,
but to do that as part of the overall build of "mytest"
For example, I want to build a windows RC file, so my Jamfile looks like
this:
C++ = g++ ;
LINK = g++ ;
rule Resource { Resource $(<) : $(>) ; }
actions Resource { windres $(>) $(<) -Iassets\\graphics }
SRC =
src\\platform\\Windows\\entry.cpp
src\\platform\\Windows\\resources.rc
;
DEPENDS all : mytest
;
Main mytest : $(SRC)
;
Resource src\\platform\\Windows\\resources.rc ;
------------- end jamfile
However it complains about an unknown suffix for resources.rc. Is there any
way to make Jam work in this situation without going and extending Jambase
and rebuilding jam itself?
Im sorry if this message gets sent twice to the mailing list, i tried to
send it last night but accidentally from a different email account and it
didnt seem to get through.
Thanks in advance,
Craig.
More information about the jamming
mailing list