2005-10-06 18:10:01 +02:00
|
|
|
.\" -*- nroff -*-
|
2007-10-21 00:59:08 +02:00
|
|
|
.TH WIDL 1 "October 2007" "@PACKAGE_STRING@" "Wine Developers Manual"
|
2004-03-09 04:49:39 +01:00
|
|
|
.SH NAME
|
2007-10-21 00:59:08 +02:00
|
|
|
widl \- Wine Interface Definition Language (IDL) compiler
|
2004-03-09 04:49:39 +01:00
|
|
|
.SH SYNOPSIS
|
2007-10-21 00:59:08 +02:00
|
|
|
.B widl
|
|
|
|
[\fIoptions\fR] \fIinfile\fR.idl
|
|
|
|
.br
|
|
|
|
.B widl
|
|
|
|
[\fIoptions\fR] \fB--dlldata-only\fR \fIname1\fR [\fIname2\fR ...]
|
2004-03-09 04:49:39 +01:00
|
|
|
.SH DESCRIPTION
|
2007-10-21 00:59:08 +02:00
|
|
|
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,
|
2007-10-31 03:07:36 +01:00
|
|
|
\fB-h\fR, \fB-p\fR, \fB-s\fR, \fB-t\fR, \fB-u\fR, or \fB--local-stubs\fR are given,
|
2007-10-21 00:59:08 +02:00
|
|
|
.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.
|
2004-03-09 04:49:39 +01:00
|
|
|
.PP
|
|
|
|
.SH OPTIONS
|
|
|
|
.PP
|
|
|
|
.B General options:
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-V\fR"
|
2007-10-21 00:59:08 +02:00
|
|
|
Print version number and exit.
|
2004-03-09 04:49:39 +01:00
|
|
|
.PP
|
|
|
|
.B Header options:
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-h\fR"
|
2005-01-26 20:40:47 +01:00
|
|
|
Generate header files.
|
2004-03-09 04:49:39 +01:00
|
|
|
.IP "\fB-H \fIfile\fR"
|
2004-10-05 06:44:20 +02:00
|
|
|
Name of header file to generate. The default header
|
2007-10-21 00:59:08 +02:00
|
|
|
filename is \fIinfile\fR.h.
|
2006-04-22 21:52:51 +02:00
|
|
|
.IP "\fB--oldnames\fR"
|
|
|
|
Use old naming conventions.
|
2004-10-05 06:44:20 +02:00
|
|
|
.PP
|
2005-01-26 20:40:47 +01:00
|
|
|
.B Type library options:
|
|
|
|
.IP \fB-t\fR
|
|
|
|
Generate a type library.
|
|
|
|
.IP "\fB-T \fIfile\fR"
|
|
|
|
Define the name of the type library to be generated.
|
2007-10-21 00:59:08 +02:00
|
|
|
The default filename is \fIinfile\fR.tlb.
|
2005-01-26 20:40:47 +01:00
|
|
|
.PP
|
2006-09-13 23:43:36 +02:00
|
|
|
.B UUID file options:
|
|
|
|
.IP "\fB-u\fR"
|
|
|
|
Generate a UUID file.
|
|
|
|
.IP "\fB-U \fIfile\fR"
|
|
|
|
Define the name of the UUID file to be generated.
|
2007-10-21 00:59:08 +02:00
|
|
|
The default filename is \fIinfile\fR_i.c.
|
2006-09-13 23:43:36 +02:00
|
|
|
.PP
|
2005-04-15 16:09:27 +02:00
|
|
|
.B Proxy/stub generation options:
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-c\fR"
|
2005-04-15 16:09:27 +02:00
|
|
|
Generate client stub.
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-C \fIfile\fR"
|
2007-10-21 00:59:08 +02:00
|
|
|
Name of client stub file (default is \fIinfile\fR_c.c)
|
2006-06-01 16:40:31 +02:00
|
|
|
.IP "\fB-p\fR"
|
2005-04-15 16:09:27 +02:00
|
|
|
Generate proxy.
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-P \fIfile\fR"
|
2007-10-21 00:59:08 +02:00
|
|
|
Name of proxy file (default is \fIinfile\fR_p.c)
|
|
|
|
.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.
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-s\fR"
|
2005-04-15 16:09:27 +02:00
|
|
|
Generate server stub.
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-S \fIfile\fR"
|
2007-10-21 00:59:08 +02:00
|
|
|
Name of server stub file (default is \fIinfile\fR_s.c)
|
|
|
|
.PP
|
|
|
|
.B Dlldata file options:
|
|
|
|
.IP "\fB--dlldata=\fIfile\fR"
|
|
|
|
Name of the dlldata file (default is dlldata.c)
|
2005-04-15 16:09:27 +02:00
|
|
|
.PP
|
2004-10-05 06:44:20 +02:00
|
|
|
.B Preprocessor options:
|
2004-03-09 04:49:39 +01:00
|
|
|
.IP "\fB-I \fIpath\fR"
|
2007-10-21 00:59:08 +02:00
|
|
|
Add a header search directory to path. Multiple search
|
|
|
|
directories are allowed.
|
|
|
|
.IP "\fB-D \fIid\fR[=\fIval\fR]"
|
|
|
|
Define preprocessor macro \fIid\fR with value \fIval\fR.
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-E\fR"
|
2004-03-09 04:49:39 +01:00
|
|
|
Preprocess only.
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-N\fR"
|
2004-03-09 04:49:39 +01:00
|
|
|
Do not preprocess input.
|
|
|
|
.PP
|
|
|
|
.B Debug options:
|
2005-10-06 13:40:43 +02:00
|
|
|
.IP "\fB-W\fR"
|
2004-03-09 04:49:39 +01:00
|
|
|
Enable pedantic warnings.
|
|
|
|
.IP "\fB-d \fIn\fR"
|
2007-10-21 00:59:08 +02:00
|
|
|
Set debug level to the nonnegative integer \fIn\fR. If
|
|
|
|
prefixed with \fB0x\fR, it will be interpretted as a hexidecimal
|
|
|
|
number. For the meaning of values, see the \fBDebug\fR section.
|
2004-03-09 04:49:39 +01:00
|
|
|
.PP
|
2007-10-31 03:07:36 +01:00
|
|
|
.B Miscellaneous options:
|
|
|
|
.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
|
2004-03-09 04:49:39 +01:00
|
|
|
.SH Debug
|
2007-10-21 00:59:08 +02:00
|
|
|
Debug level \fIn\fR is a bitmask with the following meaning:
|
2004-03-09 04:49:39 +01:00
|
|
|
* 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
|
2007-10-21 00:59:08 +02:00
|
|
|
.B widl
|
|
|
|
is incomplete. Please file bug reports for this application at
|
|
|
|
.I http://bugs.winehq.org.
|
2004-03-09 04:49:39 +01:00
|
|
|
.SH AUTHORS
|
|
|
|
.B widl
|
2007-10-21 00:59:08 +02:00
|
|
|
was originally written by Ove Kaaven. It has been improved by Rob Shearman,
|
|
|
|
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.
|
2004-03-09 04:49:39 +01:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
The Winelib User Guide
|
|
|
|
.nf
|
|
|
|
The Wine Developers Guide
|