core: update to latest Zig version
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
51b0e8695f
commit
729ffa2d17
4 changed files with 3 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ pub fn Sdk(comptime deps: anytype) type {
|
||||||
const lib = b.addSharedLibrary(.{ .name = "machcore", .root_source_file = .{ .path = "src/platform/libmachcore.zig" }, .target = target, .optimize = optimize });
|
const lib = b.addSharedLibrary(.{ .name = "machcore", .root_source_file = .{ .path = "src/platform/libmachcore.zig" }, .target = target, .optimize = optimize });
|
||||||
lib.main_pkg_path = "src/";
|
lib.main_pkg_path = "src/";
|
||||||
const app_module = b.createModule(.{
|
const app_module = b.createModule(.{
|
||||||
.source_file = .{ .path = "src/platform/libmachcore.zig" },
|
.source_file = .{ .path = "src/platform/libmachcore_app.zig" },
|
||||||
});
|
});
|
||||||
lib.addModule("app", app_module);
|
lib.addModule("app", app_module);
|
||||||
lib.addModule("glfw", deps.glfw.module(b));
|
lib.addModule("glfw", deps.glfw.module(b));
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,5 @@ pub const sysjs = @import("sysjs");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
_ = @import("platform/libmachcore.zig");
|
_ = @import("platform/libmachcore.zig");
|
||||||
|
_ = @import("platform/libmachcore_app.zig");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ const glfw = @import("glfw");
|
||||||
const Core = @import("../Core.zig");
|
const Core = @import("../Core.zig");
|
||||||
const native = @import("native.zig");
|
const native = @import("native.zig");
|
||||||
|
|
||||||
pub const App = @This();
|
|
||||||
|
|
||||||
pub const GPUInterface = gpu.dawn.Interface;
|
pub const GPUInterface = gpu.dawn.Interface;
|
||||||
|
|
||||||
const _ = gpu.Export(GPUInterface);
|
const _ = gpu.Export(GPUInterface);
|
||||||
|
|
|
||||||
1
libs/core/src/platform/libmachcore_app.zig
Normal file
1
libs/core/src/platform/libmachcore_app.zig
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pub const App = @This();
|
||||||
Loading…
Add table
Add a link
Reference in a new issue