[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling Resources on Win32 ?
From: |
Gary Oberbrunner |
Subject: |
Re: Compiling Resources on Win32 ? |
Date: |
Thu, 14 Dec 2000 12:09:48 -0500 (EST) |
>>>>> "JH" == Johan Holmberg <address@hidden> writes:
JH> Those of you who use cons on M$ platforms (NT, ...): how do you
JH> compile resource files ?
I use this:
# Runs the Windows resource compiler on $src, producing $dst (which
# should be a .obj file).
sub cons::ResourceFile {
my($env) = shift;
my($dst) = shift;
my($src) = shift;
$resname = "\\temp\\res-tmp.res";
Command $env $dst, $src,
qq(%RC %RCFLAGS /fo $resname %<
%CVTRES %CVTRESFLAGS $resname /out:%>
rm $resname
);
}
Which works OK for me. You could do it as two separate commands, .rc
-> .res then .res -> .obj, but I don't care about the .res files (does
anyone?) so I don't keep them.
--
. . . . . . . . . . . . . . . . . . . . . . . . .
Gary Oberbrunner address@hidden
GenArts, Inc. Tel: 617-492-2888
8 Clinton Street Fax: 617-492-2852
Cambridge, MA 02139 USA http://web.genarts.com