-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ship .idl files rather than .h files for windows SDK #18477
Comments
Upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80 Martin Storsjö suggested synchronizing with git snapshots rather than waiting for tagged releases. Let's try this for a few releases of Zig and see how we like it. These headers were configured with `--with-default-msvcrt=ucrt`. See related issue #18477.
Upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80 Martin Storsjö suggested synchronizing with git snapshots rather than waiting for tagged releases. Let's try this for a few releases of Zig and see how we like it. These headers were configured with `--with-default-msvcrt=ucrt`. See related issue #18477.
Upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80 Martin Storsjö suggested synchronizing with git snapshots rather than waiting for tagged releases. Let's try this for a few releases of Zig and see how we like it. These headers were configured with `--with-default-msvcrt=ucrt`. See related issue #18477.
Exposing such a parser to the user would enable generating bindings to the COM and WinRT APIs. |
is this the same IDL that's https://webidl.spec.whatwg.org ? edit: hmm there are similarities but I think its different |
Microsoft Windows IDL: https://learn.microsoft.com/en-us/uwp/midl-3/ |
Wine has an implementation you can look at. There's also one in mingw-w64 which may or may not just be the code ported from Wine. |
This comment has been minimized.
This comment has been minimized.
Upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80 Martin Storsjö suggested synchronizing with git snapshots rather than waiting for tagged releases. Let's try this for a few releases of Zig and see how we like it. These headers were configured with `--with-default-msvcrt=ucrt`. See related issue ziglang#18477.
Do you suggest using the wine implementation, e.g. zig with cpp bindings, or pure zig solution? I'm interested in the latter. |
Pure zig solution, obviously :-) |
Is the status of this issue changed by #16269 (comment)? |
I would be interested in having a look at this, could you clarify the intended outcome, what options are you considering for this widl integration ?
|
This is a toolchain installation size optimization.
Many of the C header files Zig ships that come from mingw-w64 have this header:
/*** Autogenerated by WIDL 8.5 from include/xpsrassvc.idl - Do not edit ***/
If we compare total file sizes, it comes out to roughly 40 MiB reduced to 10 MiB:
In terms of tarball size it's roughly 2.4 MiB to 724 KB:
A prerequisite for this issue would be a WIDL implementation in Zig. That could be a fun project for a contributor.
The text was updated successfully, but these errors were encountered: