Added webgpu binary for each target (window, macos, linux) in all archi (x86, aarch)
This commit is contained in:
parent
5f8da0940d
commit
43a9f54f49
14
build.zig
14
build.zig
@ -9,12 +9,20 @@ pub fn build(b: *std.Build) !void {
|
|||||||
.target = target,
|
.target = target,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const t = target.result;
|
||||||
|
const arch_name = @tagName(t.cpu.arch);
|
||||||
|
const os_name = @tagName(t.os.tag);
|
||||||
|
|
||||||
|
// Windows uses .lib, Unix-like systems use .a
|
||||||
|
const lib_filename = if (t.os.tag == .windows) "wgpu_native.lib" else "libwgpu_native.a";
|
||||||
|
|
||||||
|
// Example: "libs/wgpu-native/x86_64-windows/wgpu_native.lib"
|
||||||
|
const wgpu_lib_path = b.fmt("libs/wgpu-native/{s}-{s}/{s}", .{ arch_name, os_name, lib_filename });
|
||||||
|
|
||||||
mod.addIncludePath(b.path("libs/wgpu-native/include"));
|
mod.addIncludePath(b.path("libs/wgpu-native/include"));
|
||||||
mod.addLibraryPath(b.path("libs/wgpu-native/lib"));
|
mod.addObjectFile(b.path(wgpu_lib_path));
|
||||||
mod.addObjectFile(b.path("libs/wgpu-native/lib/libwgpu_native.a"));
|
|
||||||
|
|
||||||
// Platform-specific system frameworks needed by wgpu-native
|
// Platform-specific system frameworks needed by wgpu-native
|
||||||
const t = target.result;
|
|
||||||
if (t.os.tag == .macos) {
|
if (t.os.tag == .macos) {
|
||||||
mod.linkFramework("Metal", .{});
|
mod.linkFramework("Metal", .{});
|
||||||
mod.linkFramework("QuartzCore", .{});
|
mod.linkFramework("QuartzCore", .{});
|
||||||
|
|||||||
BIN
libs/wgpu-native/aarch64-linux/libwgpu_native.a
vendored
Normal file
BIN
libs/wgpu-native/aarch64-linux/libwgpu_native.a
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/aarch64-linux/libwgpu_native.so
vendored
Executable file
BIN
libs/wgpu-native/aarch64-linux/libwgpu_native.so
vendored
Executable file
Binary file not shown.
BIN
libs/wgpu-native/aarch64-macos/libwgpu_native.a
vendored
Normal file
BIN
libs/wgpu-native/aarch64-macos/libwgpu_native.a
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/aarch64-macos/libwgpu_native.dylib
vendored
Executable file
BIN
libs/wgpu-native/aarch64-macos/libwgpu_native.dylib
vendored
Executable file
Binary file not shown.
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.dll
vendored
Normal file
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.dll
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.dll.lib
vendored
Normal file
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.dll.lib
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.lib
vendored
Normal file
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.lib
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.pdb
vendored
Normal file
BIN
libs/wgpu-native/aarch64-windows/wgpu_native.pdb
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-linux/libwgpu_native.a
vendored
Normal file
BIN
libs/wgpu-native/x86_64-linux/libwgpu_native.a
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-linux/libwgpu_native.so
vendored
Executable file
BIN
libs/wgpu-native/x86_64-linux/libwgpu_native.so
vendored
Executable file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-macos/libwgpu_native.a
vendored
Normal file
BIN
libs/wgpu-native/x86_64-macos/libwgpu_native.a
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-macos/libwgpu_native.dylib
vendored
Executable file
BIN
libs/wgpu-native/x86_64-macos/libwgpu_native.dylib
vendored
Executable file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.dll
vendored
Normal file
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.dll
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.dll.lib
vendored
Normal file
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.dll.lib
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.lib
vendored
Normal file
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.lib
vendored
Normal file
Binary file not shown.
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.pdb
vendored
Normal file
BIN
libs/wgpu-native/x86_64-windows/wgpu_native.pdb
vendored
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user