fix the building, and change the name

This commit is contained in:
Squibid 2025-10-16 15:17:46 -04:00
parent cceffbf474
commit 6b76de1e77
Signed by: squibid
GPG key ID: BECE5684D3C4005D
4 changed files with 15 additions and 14 deletions

View file

@ -39,8 +39,8 @@ pub fn build(b: *std.Build) void {
wlroots.resolved_target = target; wlroots.resolved_target = target;
wlroots.linkSystemLibrary("wlroots-0.19", .{}); wlroots.linkSystemLibrary("wlroots-0.19", .{});
const wwm = b.addExecutable(.{ const mez = b.addExecutable(.{
.name = "wwm", .name = "mez",
.root_module = b.createModule(.{ .root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"), .root_source_file = b.path("src/main.zig"),
.target = target, .target = target,
@ -48,20 +48,20 @@ pub fn build(b: *std.Build) void {
}), }),
}); });
wwm.linkLibC(); mez.linkLibC();
wwm.root_module.addImport("wayland", wayland); mez.root_module.addImport("wayland", wayland);
wwm.root_module.addImport("xkbcommon", xkbcommon); mez.root_module.addImport("xkbcommon", xkbcommon);
wwm.root_module.addImport("wlroots", wlroots); mez.root_module.addImport("wlroots", wlroots);
wwm.linkSystemLibrary("wayland-server"); mez.linkSystemLibrary("wayland-server");
wwm.linkSystemLibrary("xkbcommon"); mez.linkSystemLibrary("xkbcommon");
wwm.linkSystemLibrary("pixman-1"); mez.linkSystemLibrary("pixman-1");
b.installArtifact(wwm); b.installArtifact(mez);
const run_step = b.step("run", "Run the app"); 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_step.dependOn(&run_cmd.step);
run_cmd.step.dependOn(b.getInstallStep()); run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| { if (b.args) |args| {

View file

@ -1,7 +1,7 @@
.{ .{
.name = .wwm, .name = .mez,
.version = "0.0.1", .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", .minimum_zig_version = "0.15.2",
.dependencies = .{ .dependencies = .{
.wayland = .{ .wayland = .{

View file

@ -4,4 +4,5 @@ const Server = @import("server.zig").Server;
pub fn main() !void { pub fn main() !void {
std.debug.print("Starting mezzaluna", .{}); std.debug.print("Starting mezzaluna", .{});
_ = try Server.init();
} }

View file

@ -7,7 +7,7 @@ pub const Server = struct {
server: *wl.Server, server: *wl.Server,
event_loop: *wl.EventLoop, event_loop: *wl.EventLoop,
session: *wlr.Session, session: ?*wlr.Session,
backend: *wlr.Backend, backend: *wlr.Backend,
renderer: *wlr.Renderer, renderer: *wlr.Renderer,