aarch64-none-linux-gnu-windres.1 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. .\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .if !\nF .nr F 0
  58. .if \nF>0 \{\
  59. . de IX
  60. . tm Index:\\$1\t\\n%\t"\\$2"
  61. ..
  62. . if !\nF==2 \{\
  63. . nr % 0
  64. . nr F 2
  65. . \}
  66. .\}
  67. .\"
  68. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  69. .\" Fear. Run. Save yourself. No user-serviceable parts.
  70. . \" fudge factors for nroff and troff
  71. .if n \{\
  72. . ds #H 0
  73. . ds #V .8m
  74. . ds #F .3m
  75. . ds #[ \f1
  76. . ds #] \fP
  77. .\}
  78. .if t \{\
  79. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  80. . ds #V .6m
  81. . ds #F 0
  82. . ds #[ \&
  83. . ds #] \&
  84. .\}
  85. . \" simple accents for nroff and troff
  86. .if n \{\
  87. . ds ' \&
  88. . ds ` \&
  89. . ds ^ \&
  90. . ds , \&
  91. . ds ~ ~
  92. . ds /
  93. .\}
  94. .if t \{\
  95. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  96. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  97. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  98. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  99. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  100. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  101. .\}
  102. . \" troff and (daisy-wheel) nroff accents
  103. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  104. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  105. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  106. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  107. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  108. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  109. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  110. .ds ae a\h'-(\w'a'u*4/10)'e
  111. .ds Ae A\h'-(\w'A'u*4/10)'E
  112. . \" corrections for vroff
  113. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  114. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  115. . \" for low resolution devices (crt and lpr)
  116. .if \n(.H>23 .if \n(.V>19 \
  117. \{\
  118. . ds : e
  119. . ds 8 ss
  120. . ds o a
  121. . ds d- d\h'-1'\(ga
  122. . ds D- D\h'-1'\(hy
  123. . ds th \o'bp'
  124. . ds Th \o'LP'
  125. . ds ae ae
  126. . ds Ae AE
  127. .\}
  128. .rm #[ #] #H #V #F C
  129. .\" ========================================================================
  130. .\"
  131. .IX Title "WINDRES 1"
  132. .TH WINDRES 1 "2021-07-02" "binutils-2.36.1" "GNU Development Tools"
  133. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  134. .\" way too many mistakes in technical documents.
  135. .if n .ad l
  136. .nh
  137. .SH "NAME"
  138. windres \- manipulate Windows resources
  139. .SH "SYNOPSIS"
  140. .IX Header "SYNOPSIS"
  141. windres [options] [input\-file] [output\-file]
  142. .SH "DESCRIPTION"
  143. .IX Header "DESCRIPTION"
  144. \&\fBwindres\fR reads resources from an input file and copies them into
  145. an output file. Either file may be in one of three formats:
  146. .ie n .IP """rc""" 4
  147. .el .IP "\f(CWrc\fR" 4
  148. .IX Item "rc"
  149. A text format read by the Resource Compiler.
  150. .ie n .IP """res""" 4
  151. .el .IP "\f(CWres\fR" 4
  152. .IX Item "res"
  153. A binary format generated by the Resource Compiler.
  154. .ie n .IP """coff""" 4
  155. .el .IP "\f(CWcoff\fR" 4
  156. .IX Item "coff"
  157. A \s-1COFF\s0 object or executable.
  158. .PP
  159. The exact description of these different formats is available in
  160. documentation from Microsoft.
  161. .PP
  162. When \fBwindres\fR converts from the \f(CW\*(C`rc\*(C'\fR format to the \f(CW\*(C`res\*(C'\fR
  163. format, it is acting like the Windows Resource Compiler. When
  164. \&\fBwindres\fR converts from the \f(CW\*(C`res\*(C'\fR format to the \f(CW\*(C`coff\*(C'\fR
  165. format, it is acting like the Windows \f(CW\*(C`CVTRES\*(C'\fR program.
  166. .PP
  167. When \fBwindres\fR generates an \f(CW\*(C`rc\*(C'\fR file, the output is similar
  168. but not identical to the format expected for the input. When an input
  169. \&\f(CW\*(C`rc\*(C'\fR file refers to an external filename, an output \f(CW\*(C`rc\*(C'\fR file
  170. will instead include the file contents.
  171. .PP
  172. If the input or output format is not specified, \fBwindres\fR will
  173. guess based on the file name, or, for the input file, the file contents.
  174. A file with an extension of \fI.rc\fR will be treated as an \f(CW\*(C`rc\*(C'\fR
  175. file, a file with an extension of \fI.res\fR will be treated as a
  176. \&\f(CW\*(C`res\*(C'\fR file, and a file with an extension of \fI.o\fR or
  177. \&\fI.exe\fR will be treated as a \f(CW\*(C`coff\*(C'\fR file.
  178. .PP
  179. If no output file is specified, \fBwindres\fR will print the resources
  180. in \f(CW\*(C`rc\*(C'\fR format to standard output.
  181. .PP
  182. The normal use is for you to write an \f(CW\*(C`rc\*(C'\fR file, use \fBwindres\fR
  183. to convert it to a \s-1COFF\s0 object file, and then link the \s-1COFF\s0 file into
  184. your application. This will make the resources described in the
  185. \&\f(CW\*(C`rc\*(C'\fR file available to Windows.
  186. .SH "OPTIONS"
  187. .IX Header "OPTIONS"
  188. .IP "\fB\-i\fR \fIfilename\fR" 4
  189. .IX Item "-i filename"
  190. .PD 0
  191. .IP "\fB\-\-input\fR \fIfilename\fR" 4
  192. .IX Item "--input filename"
  193. .PD
  194. The name of the input file. If this option is not used, then
  195. \&\fBwindres\fR will use the first non-option argument as the input file
  196. name. If there are no non-option arguments, then \fBwindres\fR will
  197. read from standard input. \fBwindres\fR can not read a \s-1COFF\s0 file from
  198. standard input.
  199. .IP "\fB\-o\fR \fIfilename\fR" 4
  200. .IX Item "-o filename"
  201. .PD 0
  202. .IP "\fB\-\-output\fR \fIfilename\fR" 4
  203. .IX Item "--output filename"
  204. .PD
  205. The name of the output file. If this option is not used, then
  206. \&\fBwindres\fR will use the first non-option argument, after any used
  207. for the input file name, as the output file name. If there is no
  208. non-option argument, then \fBwindres\fR will write to standard output.
  209. \&\fBwindres\fR can not write a \s-1COFF\s0 file to standard output. Note,
  210. for compatibility with \fBrc\fR the option \fB\-fo\fR is also
  211. accepted, but its use is not recommended.
  212. .IP "\fB\-J\fR \fIformat\fR" 4
  213. .IX Item "-J format"
  214. .PD 0
  215. .IP "\fB\-\-input\-format\fR \fIformat\fR" 4
  216. .IX Item "--input-format format"
  217. .PD
  218. The input format to read. \fIformat\fR may be \fBres\fR, \fBrc\fR, or
  219. \&\fBcoff\fR. If no input format is specified, \fBwindres\fR will
  220. guess, as described above.
  221. .IP "\fB\-O\fR \fIformat\fR" 4
  222. .IX Item "-O format"
  223. .PD 0
  224. .IP "\fB\-\-output\-format\fR \fIformat\fR" 4
  225. .IX Item "--output-format format"
  226. .PD
  227. The output format to generate. \fIformat\fR may be \fBres\fR,
  228. \&\fBrc\fR, or \fBcoff\fR. If no output format is specified,
  229. \&\fBwindres\fR will guess, as described above.
  230. .IP "\fB\-F\fR \fItarget\fR" 4
  231. .IX Item "-F target"
  232. .PD 0
  233. .IP "\fB\-\-target\fR \fItarget\fR" 4
  234. .IX Item "--target target"
  235. .PD
  236. Specify the \s-1BFD\s0 format to use for a \s-1COFF\s0 file as input or output. This
  237. is a \s-1BFD\s0 target name; you can use the \fB\-\-help\fR option to see a list
  238. of supported targets. Normally \fBwindres\fR will use the default
  239. format, which is the first one listed by the \fB\-\-help\fR option.
  240. .IP "\fB\-\-preprocessor\fR \fIprogram\fR" 4
  241. .IX Item "--preprocessor program"
  242. When \fBwindres\fR reads an \f(CW\*(C`rc\*(C'\fR file, it runs it through the C
  243. preprocessor first. This option may be used to specify the preprocessor
  244. to use, including any leading arguments. The default preprocessor
  245. argument is \f(CW\*(C`gcc \-E \-xc\-header \-DRC_INVOKED\*(C'\fR.
  246. .IP "\fB\-\-preprocessor\-arg\fR \fIoption\fR" 4
  247. .IX Item "--preprocessor-arg option"
  248. When \fBwindres\fR reads an \f(CW\*(C`rc\*(C'\fR file, it runs it through
  249. the C preprocessor first. This option may be used to specify additional
  250. text to be passed to preprocessor on its command line.
  251. This option can be used multiple times to add multiple options to the
  252. preprocessor command line.
  253. .IP "\fB\-I\fR \fIdirectory\fR" 4
  254. .IX Item "-I directory"
  255. .PD 0
  256. .IP "\fB\-\-include\-dir\fR \fIdirectory\fR" 4
  257. .IX Item "--include-dir directory"
  258. .PD
  259. Specify an include directory to use when reading an \f(CW\*(C`rc\*(C'\fR file.
  260. \&\fBwindres\fR will pass this to the preprocessor as an \fB\-I\fR
  261. option. \fBwindres\fR will also search this directory when looking for
  262. files named in the \f(CW\*(C`rc\*(C'\fR file. If the argument passed to this command
  263. matches any of the supported \fIformats\fR (as described in the \fB\-J\fR
  264. option), it will issue a deprecation warning, and behave just like the
  265. \&\fB\-J\fR option. New programs should not use this behaviour. If a
  266. directory happens to match a \fIformat\fR, simple prefix it with \fB./\fR
  267. to disable the backward compatibility.
  268. .IP "\fB\-D\fR \fItarget\fR" 4
  269. .IX Item "-D target"
  270. .PD 0
  271. .IP "\fB\-\-define\fR \fIsym\fR\fB[=\fR\fIval\fR\fB]\fR" 4
  272. .IX Item "--define sym[=val]"
  273. .PD
  274. Specify a \fB\-D\fR option to pass to the preprocessor when reading an
  275. \&\f(CW\*(C`rc\*(C'\fR file.
  276. .IP "\fB\-U\fR \fItarget\fR" 4
  277. .IX Item "-U target"
  278. .PD 0
  279. .IP "\fB\-\-undefine\fR \fIsym\fR" 4
  280. .IX Item "--undefine sym"
  281. .PD
  282. Specify a \fB\-U\fR option to pass to the preprocessor when reading an
  283. \&\f(CW\*(C`rc\*(C'\fR file.
  284. .IP "\fB\-r\fR" 4
  285. .IX Item "-r"
  286. Ignored for compatibility with rc.
  287. .IP "\fB\-v\fR" 4
  288. .IX Item "-v"
  289. Enable verbose mode. This tells you what the preprocessor is if you
  290. didn't specify one.
  291. .IP "\fB\-c\fR \fIval\fR" 4
  292. .IX Item "-c val"
  293. .PD 0
  294. .IP "\fB\-\-codepage\fR \fIval\fR" 4
  295. .IX Item "--codepage val"
  296. .PD
  297. Specify the default codepage to use when reading an \f(CW\*(C`rc\*(C'\fR file.
  298. \&\fIval\fR should be a hexadecimal prefixed by \fB0x\fR or decimal
  299. codepage code. The valid range is from zero up to 0xffff, but the
  300. validity of the codepage is host and configuration dependent.
  301. .IP "\fB\-l\fR \fIval\fR" 4
  302. .IX Item "-l val"
  303. .PD 0
  304. .IP "\fB\-\-language\fR \fIval\fR" 4
  305. .IX Item "--language val"
  306. .PD
  307. Specify the default language to use when reading an \f(CW\*(C`rc\*(C'\fR file.
  308. \&\fIval\fR should be a hexadecimal language code. The low eight bits are
  309. the language, and the high eight bits are the sublanguage.
  310. .IP "\fB\-\-use\-temp\-file\fR" 4
  311. .IX Item "--use-temp-file"
  312. Use a temporary file to instead of using popen to read the output of
  313. the preprocessor. Use this option if the popen implementation is buggy
  314. on the host (eg., certain non-English language versions of Windows 95 and
  315. Windows 98 are known to have buggy popen where the output will instead
  316. go the console).
  317. .IP "\fB\-\-no\-use\-temp\-file\fR" 4
  318. .IX Item "--no-use-temp-file"
  319. Use popen, not a temporary file, to read the output of the preprocessor.
  320. This is the default behaviour.
  321. .IP "\fB\-h\fR" 4
  322. .IX Item "-h"
  323. .PD 0
  324. .IP "\fB\-\-help\fR" 4
  325. .IX Item "--help"
  326. .PD
  327. Prints a usage summary.
  328. .IP "\fB\-V\fR" 4
  329. .IX Item "-V"
  330. .PD 0
  331. .IP "\fB\-\-version\fR" 4
  332. .IX Item "--version"
  333. .PD
  334. Prints the version number for \fBwindres\fR.
  335. .IP "\fB\-\-yydebug\fR" 4
  336. .IX Item "--yydebug"
  337. If \fBwindres\fR is compiled with \f(CW\*(C`YYDEBUG\*(C'\fR defined as \f(CW1\fR,
  338. this will turn on parser debugging.
  339. .IP "\fB@\fR\fIfile\fR" 4
  340. .IX Item "@file"
  341. Read command-line options from \fIfile\fR. The options read are
  342. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  343. does not exist, or cannot be read, then the option will be treated
  344. literally, and not removed.
  345. .Sp
  346. Options in \fIfile\fR are separated by whitespace. A whitespace
  347. character may be included in an option by surrounding the entire
  348. option in either single or double quotes. Any character (including a
  349. backslash) may be included by prefixing the character to be included
  350. with a backslash. The \fIfile\fR may itself contain additional
  351. @\fIfile\fR options; any such options will be processed recursively.
  352. .SH "SEE ALSO"
  353. .IX Header "SEE ALSO"
  354. the Info entries for \fIbinutils\fR.
  355. .SH "COPYRIGHT"
  356. .IX Header "COPYRIGHT"
  357. Copyright (c) 1991\-2021 Free Software Foundation, Inc.
  358. .PP
  359. Permission is granted to copy, distribute and/or modify this document
  360. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
  361. or any later version published by the Free Software Foundation;
  362. with no Invariant Sections, with no Front-Cover Texts, and with no
  363. Back-Cover Texts. A copy of the license is included in the
  364. section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".