Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dawn/native: add DAWN_NO_WINDOWS_UI option for Zig & MinGW compilers
In Mach engine, we're compiling Dawn using Zig as a C/C++ compiler. Zig provides it's own libc implementation, build system, and system headers. Dawn today makes use of newer `windows.ui.*.h` headers introduced in more recent Windows versions. However, Zig relies on MinGW for it's system headers and it is not straightforward/desirable to use the official Windows SDK headers: Zig does not have these headers today. Since Dawn does not truly require these headers, we are using a preprocessor directive `DAWN_NO_WINDOWS_UI` to disable this functionality and enable compilation of Dawn with Zig/MinGW compilers. We do not consume Dawn's build system (cmake or otherwise), and so I have not added integration with that. I ammhappy to do whatever is required in order for such a patch to be accepted, however. I'm also happy to ensure this works going forward well into the future should it break over time. Signed-off-by: Stephen Gutekanst <[email protected]> Change-Id: If41cafb95666946115b58567fef753df3fbe940a
- Loading branch information