widl.man.in 5.33 KB
Newer Older
1
.TH WIDL 1 "October 2007" "@PACKAGE_STRING@" "Wine Developers Manual"
2
.SH NAME
3
widl \- Wine Interface Definition Language (IDL) compiler
4
.SH SYNOPSIS
5
.B widl
6
[\fIoptions\fR] \fIIDL_file\fR
7 8
.br
.B widl
9
[\fIoptions\fR] \fB--dlldata-only\fR \fIname1\fR [\fIname2\fR...]
10
.SH DESCRIPTION
11 12 13
When no options are used the program will generate a header file, and possibly
client and server stubs, proxy and dlldata files, a typelib, and a UUID file,
depending on the contents of the IDL file.  If any of the options \fB-c\fR,
14
\fB-h\fR, \fB-p\fR, \fB-s\fR, \fB-t\fR, \fB-u\fR or \fB--local-stubs\fR is given,
15 16 17 18 19 20 21 22 23 24 25 26
.B widl
will only generate the requested files, and no others.  When run with
\fB--dlldata-only\fR, widl will only generate a dlldata file, and it will
contain a list of the names passed as arguments.  Usually the way this file
is updated is that each time
.B widl
is run, it reads any existing dlldata file, and if necessary regenerates it
with the same list of names, but with the present proxy file included.
.PP
When run without any arguments,
.B widl
will print a help message.
27 28 29 30
.PP
.SH OPTIONS
.PP
.B General options:
31
.IP "\fB-V\fR"
32
Print version number and exit.
33 34 35
.IP "\fB-o, --output=\fIname"
Set the name of the output file. When generating multiple output
files, this sets only the base name of the file; the respective output
36 37
files are then named \fIname\fR.h, \fIname\fR_p.c, etc.  If a full
file name with extension is specified, only that file is generated.
38
.IP "\fB-b \fIcpu-manufacturer\fR[\fB-\fIkernel\fR]\fB-\fIos\fR"
39 40
Set the target architecture when cross-compiling. The target
specification is in the standard autoconf format as returned by
41
\fBconfig.sub\fR.
42 43
.PP
.B Header options:
44
.IP "\fB-h\fR"
45
Generate header files. The default output filename is \fIinfile\fB.h\fR.
46 47
.IP "\fB--oldnames\fR"
Use old naming conventions.
48
.PP
Huw Davies's avatar
Huw Davies committed
49 50
.B Type library options:
.IP \fB-t\fR
51 52 53
Generate a type library. The default output filename is
\fIinfile\fB.tlb\fR.  If the output file name ends in \fB.res\fR, a
binary resource file containing the type library is generated instead.
54
.IP "\fB-m32, -m64\fR"
55
Generate a Win32 or Win64 type library respectively.
Huw Davies's avatar
Huw Davies committed
56
.PP
57 58
.B UUID file options:
.IP "\fB-u\fR"
59
Generate a UUID file. The default output filename is \fIinfile\fB_i.c\fR.
60
.PP
61
.B Proxy/stub generation options:
62
.IP "\fB-c\fR"
63
Generate a client stub file. The default output filename is \fIinfile\fB_c.c\fR.
64 65 66 67 68 69
.IP "\fB-Os\fR"
Generate inline stubs.
.IP "\fB-Oi\fR"
Generate old-style interpreted stubs.
.IP "\fB-Oif, -Oic, -Oicf\fR"
Generate new-style fully interpreted stubs.
70
.IP "\fB-p\fR"
71
Generate a proxy. The default output filename is \fIinfile\fB_p.c\fR.
72 73 74 75 76 77
.IP "\fB--prefix-all=\fIprefix\fR"
Prefix to put on the name of both client and server stubs.
.IP "\fB--prefix-client=\fIprefix\fR"
Prefix to put on the name of client stubs.
.IP "\fB--prefix-server=\fIprefix\fR"
Prefix to put on the name of server stubs.
78
.IP "\fB-s\fR"
79 80
Generate a server stub file. The default output filename is
\fIinfile\fB_s.c\fR.
81 82
.IP "\fB--win32\fR, \fB--win64\fR"
Only generate 32-bit or 64-bit code respectively (the default is to
83 84
generate both 32-bit and 64-bit versions into the same destination
file).
85
.PP
86 87
.IP "\fB--winrt\fR"
Enable Windows Runtime mode.
88 89
.IP "\fB--ns_prefix\fR"
Prefix namespaces with ABI namespace.
90
.PP
91 92 93 94 95 96
.B Registration script options:
.IP "\fB-r\fR"
Generate a registration script. The default output filename is
\fIinfile\fB_r.rgs\fR. If the output file name ends in \fB.res\fR, a
binary resource file containing the script is generated instead.
.PP
97
.B Dlldata file options:
98
.IP "\fB--dlldata-only\fI name1 \fR[\fIname2\fR...]"
99 100
Regenerate the dlldata file from scratch using the specified proxy
names. The default output filename is \fBdlldata.c\fR.
101
.PP
102
.B Preprocessor options:
103
.IP "\fB-I \fIpath\fR"
104 105
Add a header search directory to path. Multiple search
directories are allowed.
106
.IP "\fB-D \fIid\fR[\fB=\fIval\fR]"
107
Define preprocessor macro \fIid\fR with value \fIval\fR.
108
.IP "\fB-E\fR"
109
Preprocess only.
110
.IP "\fB-N\fR"
111 112 113
Do not preprocess input.
.PP
.B Debug options:
114
.IP "\fB-W\fR"
115 116
Enable pedantic warnings.
.IP "\fB-d \fIn\fR"
117 118
Set debug level to the non negative integer \fIn\fR.  If
prefixed with \fB0x\fR, it will be interpreted as an hexadecimal
119
number.  For the meaning of values, see the \fBDEBUG\fR section.
120
.PP
121
.B Miscellaneous options:
122
.IP "\fB-app_config\fR"
123
Ignored, present for midl compatibility.
124 125 126 127
.IP "\fB--local-stubs=\fIfile\fR"
Generate empty stubs for call_as/local methods in an object interface and
write them to \fIfile\fR.
.PP
128
.SH DEBUG
129
Debug level \fIn\fR is a bitmask with the following meaning:
130 131 132 133 134 135 136
    * 0x01 Tell which resource is parsed (verbose mode)
    * 0x02 Dump internal structures
    * 0x04 Create a parser trace (yydebug=1)
    * 0x08 Preprocessor messages
    * 0x10 Preprocessor lex messages
    * 0x20 Preprocessor yacc trace
.SH BUGS
137 138 139 140
Bugs can be reported on the
.UR http://bugs.winehq.org
.B Wine bug tracker
.UE .
141 142
.SH AUTHORS
.B widl
143
was originally written by Ove Kåven.  It has been improved by Rob Shearman,
144 145 146
Dan Hipschman, and others.  For a complete list, see the git commit logs.
This man page was originally written by Hannu Valtonen and then updated by
Dan Hipschman.
147 148 149 150 151 152 153
.SH AVAILABILITY
.B widl
is part of the Wine distribution, which is available through WineHQ,
the
.UR http://www.winehq.org/
.B Wine development headquarters
.UE .
154
.SH "SEE ALSO"
155 156 157
.UR http://www.winehq.org/help
.B Wine documentation and support
.UE .