WIDL(1)
π WIDL(1) β Wine Developers Manual π
okay bestie, sit DOWN, because we're about to talk about widl, the Wine Interface Definition Language (IDL) compiler. yes she's a compiler, yes she's iconic, no you don't have to be scared of her. π
β¨ SYNOPSIS β¨
i686-w64-mingw32-widl [options] IDL_file
i686-w64-mingw32-widl [options] --dlldata-only name1 [name2...]
πΈ DESCRIPTION πΈ
So here's the vibe. When you run her with no options at all, widl will generate a header file, and possibly client and server stubs, proxy and dlldata files, a typelib, and a UUID file β it all depends on what's actually inside your IDL file. she reads the room, basically. π
But if you pass any of -c, -h, -p, -s, -t, -u or --local-stubs, then no cap β widl will generate only the files you asked for, and no others. she's not gonna overdeliver when you gave her a specific assignment. π«Ά
Then there's --dlldata-only, where she'll only generate a dlldata file, and it will contain a list of the names you passed as arguments. Usually the way this file gets updated is that every time widl runs, she reads any existing dlldata file, and if necessary regenerates it with the same list of names, but with the present proxy file included. it's giving very "keep the group chat updated" energy fr fr. π
And if you run her with no arguments at all? she just prints a help message. that's it. she's helpful like that. β¨
π OPTIONS π
General options:
-Vβ Print version number and exit. short, sweet, done. π-o,--output=nameβ Set the name of the output file. When generating multiple output files, this sets only the base name of the file; the respective output files are then namedname.h,name_p.c, etc. one name to rule them all basically.-b cpu-manufacturer[-kernel]-osβ Set the target architecture when cross-compiling. The target specification is in the standard autoconf format as returned byconfig.sub. yes bestie, that exact format, don't freestyle it. π¦
Header options:
-hβ Generate header files. The default output filename isinfile.h.--oldnamesβ Use old naming conventions. retro moment. π
Type library options:
-tβ Generate a type library. The default output filename isinfile.tlb. But heads up: if the output file name ends in.res, a binary resource file containing the type library is generated instead. plot twist! π³-m32,-m64β Generate a Win32 or Win64 type library respectively. pick your fighter. β
UUID file options:
-uβ Generate a UUID file. The default output filename isinfile_i.c.
Proxy/stub generation options:
-cβ Generate a client stub file. The default output filename isinfile_c.c.-Osβ Generate inline stubs.-Oiβ Generate old-style interpreted stubs.-Oif,-Oic,-Oicfβ Generate new-style fully interpreted stubs. yes all three of them, they're a lil trio, don't separate them. π-pβ Generate a proxy. The default output filename isinfile_p.c.--prefix-all=prefixβ Prefix to put on the name of both client and server stubs. equal opportunity prefixing. π--prefix-client=prefixβ Prefix to put on the name of client stubs.--prefix-server=prefixβ Prefix to put on the name of server stubs.-sβ Generate a server stub file. The default output filename isinfile_s.c.--win32,--win64β Only generate 32-bit or 64-bit code respectively. and lowkey the default is to generate both 32-bit and 64-bit versions into the same destination file, so yeah, specify if you want just one. π--rtβ Enable additional language extensions for IDL to support WinRT.
Registration script options:
-rβ Generate a registration script. The default output filename isinfile_r.rgs. And again with the plot twist: if the output file name ends in.res, a binary resource file containing the script is generated instead. π
Dlldata file options:
--dlldata-only name1 [name2...]β Regenerate the dlldata file from scratch using the specified proxy names. The default output filename isdlldata.c. from SCRATCH bestie, no leftovers. π₯
Preprocessor options:
-I pathβ Add a header search directory topath. Multiple search directories are allowed. stack 'em up. π§-D id[=val]β Define preprocessor macroidwith valueval.-Eβ Preprocess only. that's the whole job.-Nβ Do not preprocess input. hands off. β
Debug options:
-Wβ Enable pedantic warnings. she WILL be in your business about it, lovingly.-d nβ Set debug level to the non negative integern. If prefixed with0x, it will be interpreted as an hexadecimal number. For the meaning of values, see the DEBUG section. π
Miscellaneous options:
-app_configβ Ignored, present for midl compatibility. she's just standing there. menacingly. for compat reasons. π--local-stubs=fileβ Generate empty stubs forcall_as/localmethods in an object interface and write them tofile.
π DEBUG π
Debug level n is a bitmask with the following meaning, bestie β and yes you gotta add them up yourself, it's giving math homework but make it compiler:
0x01Tell which resource is parsed (verbose mode)0x02Dump internal structures0x04Create a parser trace (yydebug=1)0x08Preprocessor messages0x10Preprocessor lex messages0x20Preprocessor yacc trace
π BUGS π
Bugs can be reported on the Wine bug tracker. (not that she has any, but if she did, you know where to go π«Ά)
π AUTHORS π
widl was originally written by Ove KΓ₯ven. 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. legends, all of them. β¨
π AVAILABILITY π
widl is part of the Wine distribution, which is available through WineHQ, the Wine development headquarters. go get her. π
π¦ SEE ALSO π¦
Wine documentation and support.
and that's the whole manpage bestie, you ate that π
this has been a MinGW-w64 production, dated October 2007 β yes she's been serving since 2007 and she still slays. periodt. ππβ¨
π¦ where this page comes from
- debian trixie: mingw-w64-tools 12.0.0-5 Β· ZPL-2.1
- ubuntu resolute: mingw-w64-tools 13.0.0-2ubuntu1 Β· ZPL-2.1
- ubuntu stonking: mingw-w64-tools 13.0.0-2ubuntu1 Β· ZPL-2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms