1 .\" Automatically generated by Pod::Man version 1.15
2 .\" Thu Jan 19 19:58:54 2006
5 .\" ======================================================================
6 .de Sh \" Subsection heading
14 .de Sp \" Vertical space (when we can't use .PP)
20 .ie \\n(.$>=3 .ne \\$3
24 .de Vb \" Begin verbatim text
29 .de Ve \" End verbatim text
34 .\" Set up some character translations and predefined strings. \*(-- will
35 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
36 .\" double quote, and \*(R" will give a right double quote. | will give a
37 .\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used
38 .\" to do unbreakable dashes and therefore won't be available. \*(C` and
39 .\" \*(C' expand to `' in nroff, nothing in troff, for use with C<>
41 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
45 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
46 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
59 .\" If the F register is turned on, we'll generate index entries on stderr
60 .\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and
61 .\" index entries marked with X<> in POD. Of course, you'll have to process
62 .\" the output yourself in some meaningful fashion.
65 . tm Index:\\$1\t\\n%\t"\\$2"
71 .\" For nroff, turn off justification. Always turn off hyphenation; it
72 .\" makes way too many mistakes in technical documents.
75 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
76 .\" Fear. Run. Save yourself. No user-serviceable parts.
78 . \" fudge factors for nroff and troff
87 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
93 . \" simple accents for nroff and troff
103 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
104 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
105 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
106 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
107 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
108 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
110 . \" troff and (daisy-wheel) nroff accents
111 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
112 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
113 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
114 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
115 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
116 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
117 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
118 .ds ae a\h'-(\w'a'u*4/10)'e
119 .ds Ae A\h'-(\w'A'u*4/10)'E
120 . \" corrections for vroff
121 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
122 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
123 . \" for low resolution devices (crt and lpr)
124 .if \n(.H>23 .if \n(.V>19 \
137 .\" ======================================================================
139 .IX Title "WINDRES 1"
140 .TH WINDRES 1 "binutils-2.16.91" "2006-01-19" "GNU Development Tools"
143 windres \- manipulate Windows resources.
145 .IX Header "SYNOPSIS"
146 windres [options] [input-file] [output-file]
148 .IX Header "DESCRIPTION"
149 \&\fBwindres\fR reads resources from an input file and copies them into
150 an output file. Either file may be in one of three formats:
151 .if n .Ip "\f(CW""""rc""""\fR" 4
152 .el .Ip "\f(CWrc\fR" 4
154 A text format read by the Resource Compiler.
155 .if n .Ip "\f(CW""""res""""\fR" 4
156 .el .Ip "\f(CWres\fR" 4
158 A binary format generated by the Resource Compiler.
159 .if n .Ip "\f(CW""""coff""""\fR" 4
160 .el .Ip "\f(CWcoff\fR" 4
162 A \s-1COFF\s0 object or executable.
164 The exact description of these different formats is available in
165 documentation from Microsoft.
167 When \fBwindres\fR converts from the \f(CW\*(C`rc\*(C'\fR format to the \f(CW\*(C`res\*(C'\fR
168 format, it is acting like the Windows Resource Compiler. When
169 \&\fBwindres\fR converts from the \f(CW\*(C`res\*(C'\fR format to the \f(CW\*(C`coff\*(C'\fR
170 format, it is acting like the Windows \f(CW\*(C`CVTRES\*(C'\fR program.
172 When \fBwindres\fR generates an \f(CW\*(C`rc\*(C'\fR file, the output is similar
173 but not identical to the format expected for the input. When an input
174 \&\f(CW\*(C`rc\*(C'\fR file refers to an external filename, an output \f(CW\*(C`rc\*(C'\fR file
175 will instead include the file contents.
177 If the input or output format is not specified, \fBwindres\fR will
178 guess based on the file name, or, for the input file, the file contents.
179 A file with an extension of \fI.rc\fR will be treated as an \f(CW\*(C`rc\*(C'\fR
180 file, a file with an extension of \fI.res\fR will be treated as a
181 \&\f(CW\*(C`res\*(C'\fR file, and a file with an extension of \fI.o\fR or
182 \&\fI.exe\fR will be treated as a \f(CW\*(C`coff\*(C'\fR file.
184 If no output file is specified, \fBwindres\fR will print the resources
185 in \f(CW\*(C`rc\*(C'\fR format to standard output.
187 The normal use is for you to write an \f(CW\*(C`rc\*(C'\fR file, use \fBwindres\fR
188 to convert it to a \s-1COFF\s0 object file, and then link the \s-1COFF\s0 file into
189 your application. This will make the resources described in the
190 \&\f(CW\*(C`rc\*(C'\fR file available to Windows.
193 .Ip "\fB\-i\fR \fIfilename\fR" 4
194 .IX Item "-i filename"
196 .Ip "\fB\*(--input\fR \fIfilename\fR" 4
197 .IX Item "input filename"
199 The name of the input file. If this option is not used, then
200 \&\fBwindres\fR will use the first non-option argument as the input file
201 name. If there are no non-option arguments, then \fBwindres\fR will
202 read from standard input. \fBwindres\fR can not read a \s-1COFF\s0 file from
204 .Ip "\fB\-o\fR \fIfilename\fR" 4
205 .IX Item "-o filename"
207 .Ip "\fB\*(--output\fR \fIfilename\fR" 4
208 .IX Item "output filename"
210 The name of the output file. If this option is not used, then
211 \&\fBwindres\fR will use the first non-option argument, after any used
212 for the input file name, as the output file name. If there is no
213 non-option argument, then \fBwindres\fR will write to standard output.
214 \&\fBwindres\fR can not write a \s-1COFF\s0 file to standard output. Note,
215 for compatability with \fBrc\fR the option \fB\-fo\fR is also
216 accepted, but its use is not recommended.
217 .Ip "\fB\-J\fR \fIformat\fR" 4
220 .Ip "\fB\*(--input-format\fR \fIformat\fR" 4
221 .IX Item "input-format format"
223 The input format to read. \fIformat\fR may be \fBres\fR, \fBrc\fR, or
224 \&\fBcoff\fR. If no input format is specified, \fBwindres\fR will
225 guess, as described above.
226 .Ip "\fB\-O\fR \fIformat\fR" 4
229 .Ip "\fB\*(--output-format\fR \fIformat\fR" 4
230 .IX Item "output-format format"
232 The output format to generate. \fIformat\fR may be \fBres\fR,
233 \&\fBrc\fR, or \fBcoff\fR. If no output format is specified,
234 \&\fBwindres\fR will guess, as described above.
235 .Ip "\fB\-F\fR \fItarget\fR" 4
238 .Ip "\fB\*(--target\fR \fItarget\fR" 4
239 .IX Item "target target"
241 Specify the \s-1BFD\s0 format to use for a \s-1COFF\s0 file as input or output. This
242 is a \s-1BFD\s0 target name; you can use the \fB\*(--help\fR option to see a list
243 of supported targets. Normally \fBwindres\fR will use the default
244 format, which is the first one listed by the \fB\*(--help\fR option.
245 .Ip "\fB\*(--preprocessor\fR \fIprogram\fR" 4
246 .IX Item "preprocessor program"
247 When \fBwindres\fR reads an \f(CW\*(C`rc\*(C'\fR file, it runs it through the C
248 preprocessor first. This option may be used to specify the preprocessor
249 to use, including any leading arguments. The default preprocessor
250 argument is \f(CW\*(C`gcc \-E \-xc\-header \-DRC_INVOKED\*(C'\fR.
251 .Ip "\fB\-I\fR \fIdirectory\fR" 4
252 .IX Item "-I directory"
254 .Ip "\fB\*(--include-dir\fR \fIdirectory\fR" 4
255 .IX Item "include-dir directory"
257 Specify an include directory to use when reading an \f(CW\*(C`rc\*(C'\fR file.
258 \&\fBwindres\fR will pass this to the preprocessor as an \fB\-I\fR
259 option. \fBwindres\fR will also search this directory when looking for
260 files named in the \f(CW\*(C`rc\*(C'\fR file. If the argument passed to this command
261 matches any of the supported \fIformats\fR (as descrived in the \fB\-J\fR
262 option), it will issue a deprecation warning, and behave just like the
263 \&\fB\-J\fR option. New programs should not use this behaviour. If a
264 directory happens to match a \fIformat\fR, simple prefix it with \fB./\fR
265 to disable the backward compatibility.
266 .Ip "\fB\-D\fR \fItarget\fR" 4
269 .Ip "\fB\*(--define\fR \fIsym\fR\fB[=\fR\fIval\fR\fB]\fR" 4
270 .IX Item "define sym[=val]"
272 Specify a \fB\-D\fR option to pass to the preprocessor when reading an
273 \&\f(CW\*(C`rc\*(C'\fR file.
274 .Ip "\fB\-U\fR \fItarget\fR" 4
277 .Ip "\fB\*(--undefine\fR \fIsym\fR" 4
278 .IX Item "undefine sym"
280 Specify a \fB\-U\fR option to pass to the preprocessor when reading an
281 \&\f(CW\*(C`rc\*(C'\fR file.
284 Ignored for compatibility with rc.
287 Enable verbose mode. This tells you what the preprocessor is if you
289 .Ip "\fB\-l\fR \fIval\fR" 4
292 .Ip "\fB\*(--language\fR \fIval\fR" 4
293 .IX Item "language val"
295 Specify the default language to use when reading an \f(CW\*(C`rc\*(C'\fR file.
296 \&\fIval\fR should be a hexadecimal language code. The low eight bits are
297 the language, and the high eight bits are the sublanguage.
298 .Ip "\fB\*(--use-temp-file\fR" 4
299 .IX Item "use-temp-file"
300 Use a temporary file to instead of using popen to read the output of
301 the preprocessor. Use this option if the popen implementation is buggy
302 on the host (eg., certain non-English language versions of Windows 95 and
303 Windows 98 are known to have buggy popen where the output will instead
305 .Ip "\fB\*(--no-use-temp-file\fR" 4
306 .IX Item "no-use-temp-file"
307 Use popen, not a temporary file, to read the output of the preprocessor.
308 This is the default behaviour.
312 .Ip "\fB\*(--help\fR" 4
315 Prints a usage summary.
319 .Ip "\fB\*(--version\fR" 4
322 Prints the version number for \fBwindres\fR.
323 .Ip "\fB\*(--yydebug\fR" 4
325 If \fBwindres\fR is compiled with \f(CW\*(C`YYDEBUG\*(C'\fR defined as \f(CW\*(C`1\*(C'\fR,
326 this will turn on parser debugging.
327 .Ip "\fB@\fR\fIfile\fR" 4
329 Read command-line options from \fIfile\fR. The options read are
330 inserted in place of the original @\fIfile\fR option. If \fIfile\fR
331 does not exist, or cannot be read, then the option will be treated
332 literally, and not removed.
334 Options in \fIfile\fR are separated by whitespace. A whitespace
335 character may be included in an option by surrounding the entire
336 option in either single or double quotes. Any character (including a
337 backslash) may be included by prefixing the character to be included
338 with a backslash. The \fIfile\fR may itself contain additional
339 @\fIfile\fR options; any such options will be processed recursively.
341 .IX Header "SEE ALSO"
342 the Info entries for \fIbinutils\fR.
344 .IX Header "COPYRIGHT"
345 Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
346 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
348 Permission is granted to copy, distribute and/or modify this document
349 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1
350 or any later version published by the Free Software Foundation;
351 with no Invariant Sections, with no Front-Cover Texts, and with no
352 Back-Cover Texts. A copy of the license is included in the
353 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".