WIDL(1)

πŸ“¦
version 13.0.0 Β· 2 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 named name.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 by config.sub. yes bestie, that exact format, don't freestyle it. πŸ¦‹

Header options:

  • -h β€” Generate header files. The default output filename is infile.h.
  • --oldnames β€” Use old naming conventions. retro moment. 🌈

Type library options:

  • -t β€” Generate a type library. The default output filename is infile.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 is infile_i.c.

Proxy/stub generation options:

  • -c β€” Generate a client stub file. The default output filename is infile_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 is infile_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 is infile_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 is infile_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 is dlldata.c. from SCRATCH bestie, no leftovers. πŸ”₯

Preprocessor options:

  • -I path β€” Add a header search directory to path. Multiple search directories are allowed. stack 'em up. 🧚
  • -D id[=val] β€” Define preprocessor macro id with value val.
  • -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 integer n. If prefixed with 0x, 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 for call_as/local methods in an object interface and write them to file.

πŸ” 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:

  • 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

😭 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