diff --git a/build.zig b/build.zig index 7e98863..db2bb83 100644 --- a/build.zig +++ b/build.zig @@ -39,8 +39,8 @@ pub fn build(b: *std.Build) void { wlroots.resolved_target = target; wlroots.linkSystemLibrary("wlroots-0.19", .{}); - const wwm = b.addExecutable(.{ - .name = "wwm", + const mez = b.addExecutable(.{ + .name = "mez", .root_module = b.createModule(.{ .root_source_file = b.path("src/main.zig"), .target = target, @@ -48,20 +48,20 @@ pub fn build(b: *std.Build) void { }), }); - wwm.linkLibC(); + mez.linkLibC(); - wwm.root_module.addImport("wayland", wayland); - wwm.root_module.addImport("xkbcommon", xkbcommon); - wwm.root_module.addImport("wlroots", wlroots); + mez.root_module.addImport("wayland", wayland); + mez.root_module.addImport("xkbcommon", xkbcommon); + mez.root_module.addImport("wlroots", wlroots); - wwm.linkSystemLibrary("wayland-server"); - wwm.linkSystemLibrary("xkbcommon"); - wwm.linkSystemLibrary("pixman-1"); + mez.linkSystemLibrary("wayland-server"); + mez.linkSystemLibrary("xkbcommon"); + mez.linkSystemLibrary("pixman-1"); - b.installArtifact(wwm); + b.installArtifact(mez); const run_step = b.step("run", "Run the app"); - const run_cmd = b.addRunArtifact(wwm); + const run_cmd = b.addRunArtifact(mez); run_step.dependOn(&run_cmd.step); run_cmd.step.dependOn(b.getInstallStep()); if (b.args) |args| { diff --git a/build.zig.zon b/build.zig.zon index c39a27a..9715c07 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,7 +1,7 @@ .{ - .name = .wwm, + .name = .mez, .version = "0.0.1", - .fingerprint = 0xfd825513ca495f0b, // Changing this has security and trust implications. + .fingerprint = 0x171486a117c5ee69, // Changing this has security and trust implications. .minimum_zig_version = "0.15.2", .dependencies = .{ .wayland = .{ diff --git a/src/main.zig b/src/main.zig index e2c2a71..05ea093 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4,4 +4,5 @@ const Server = @import("server.zig").Server; pub fn main() !void { std.debug.print("Starting mezzaluna", .{}); + _ = try Server.init(); } diff --git a/src/server.zig b/src/server.zig index 5414070..b6503a9 100644 --- a/src/server.zig +++ b/src/server.zig @@ -7,7 +7,7 @@ pub const Server = struct { server: *wl.Server, event_loop: *wl.EventLoop, - session: *wlr.Session, + session: ?*wlr.Session, backend: *wlr.Backend, renderer: *wlr.Renderer,