gpu: remove Windows UWP app support (effectively deprecated by Microsoft)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
11bc32d21b
commit
17d7d84141
1 changed files with 0 additions and 18 deletions
|
|
@ -12,10 +12,6 @@ pub const Options = struct {
|
|||
/// Only respected on Linux.
|
||||
linux_window_manager: LinuxWindowManager = .X11,
|
||||
|
||||
/// Only respected on Windows. Whether or not to build a UWP application, linking WindowsApp.lib
|
||||
/// instead of user32.lib.
|
||||
windows_uwp_app: bool = false,
|
||||
|
||||
/// Defaults to true on Windows
|
||||
d3d12: ?bool = null,
|
||||
|
||||
|
|
@ -319,20 +315,6 @@ fn buildLibDawnNative(b: *Builder, step: *std.build.LibExeObjStep, options: Opti
|
|||
|
||||
switch (target.os.tag) {
|
||||
.windows => {
|
||||
if (options.windows_uwp_app) {
|
||||
if (lib.build_mode == .Debug) {
|
||||
// DXGIGetDebugInterface1 is defined in dxgi.lib
|
||||
// But this API is tagged as a development-only capability
|
||||
// which implies that linking to this function will cause
|
||||
// the application to fail Windows store certification
|
||||
// So we only link to it in debug build when compiling for UWP.
|
||||
// In win32 we load dxgi.dll using LoadLibrary
|
||||
// so no need for static linking.
|
||||
lib.linkSystemLibrary("dxgi.lib");
|
||||
}
|
||||
lib.linkSystemLibrary("user32.lib");
|
||||
}
|
||||
|
||||
// TODO(build-system): windows
|
||||
// if (dawn_enable_d3d12) {
|
||||
// libs += [ "dxguid.lib" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue