webgpu: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e9bad16cda
commit
8a4cbc0e5d
3 changed files with 53 additions and 61 deletions
|
|
@ -11,12 +11,11 @@ pub fn build(b: *Builder) void {
|
|||
main_tests.setTarget(target);
|
||||
link(b, main_tests, .{});
|
||||
|
||||
|
||||
const example = b.addExecutable("hello_triangle", "examples/hello_triangle.zig");
|
||||
example.setBuildMode(mode);
|
||||
example.setTarget(target);
|
||||
link(b, example, .{});
|
||||
glfw.link(b, example, .{.system_sdk = .{.set_sysroot = false}});
|
||||
glfw.link(b, example, .{ .system_sdk = .{ .set_sysroot = false } });
|
||||
example.addPackagePath("glfw", "libs/mach-glfw/src/main.zig");
|
||||
example.addIncludeDir("out/Debug/gen/src/include");
|
||||
example.addIncludeDir("out/Debug/gen/src");
|
||||
|
|
@ -68,7 +67,7 @@ fn buildLibrary(b: *Builder, step: *std.build.LibExeObjStep, options: Options) *
|
|||
});
|
||||
|
||||
lib.linkLibCpp(); // TODO: is it actually needed if we build with Zig?
|
||||
glfw.link(b, lib, .{.system_sdk = .{.set_sysroot = false}});
|
||||
glfw.link(b, lib, .{ .system_sdk = .{ .set_sysroot = false } });
|
||||
addCommonSources(b, lib, options, target);
|
||||
addDawnPlatformSources(b, lib, options);
|
||||
addDawnNativeSources(b, lib, options, target);
|
||||
|
|
@ -102,7 +101,6 @@ fn addCommonSources(b: *Builder, step: *std.build.LibExeObjStep, options: Option
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Adds dawn platform sources; derived from src/dawn_platform/BUILD.gn
|
||||
fn addDawnPlatformSources(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
|
||||
_ = options;
|
||||
|
|
@ -1271,8 +1269,7 @@ fn addDawnUtilsSources(b: *Builder, step: *std.build.LibExeObjStep, options: Opt
|
|||
}
|
||||
},
|
||||
else => {
|
||||
if (options.linux_window_manager == .X11) {
|
||||
}
|
||||
if (options.linux_window_manager == .X11) {}
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue