mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
fix the building, and change the name
This commit is contained in:
parent
cceffbf474
commit
6b76de1e77
4 changed files with 15 additions and 14 deletions
22
build.zig
22
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| {
|
||||
|
|
|
|||
|
|
@ -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 = .{
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@ const Server = @import("server.zig").Server;
|
|||
|
||||
pub fn main() !void {
|
||||
std.debug.print("Starting mezzaluna", .{});
|
||||
_ = try Server.init();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue