refactor(Buffer): remove Plane dependency in Buffer

This commit is contained in:
CJ van den Berg 2024-07-05 00:33:31 +02:00
parent a3a298f721
commit 128182a448
7 changed files with 242 additions and 216 deletions

View file

@ -128,6 +128,13 @@ pub fn build(b: *std.Build) void {
.root_source_file = b.path("src/color.zig"),
});
const Buffer_mod = b.createModule(.{
.root_source_file = b.path("src/buffer/Buffer.zig"),
.imports = &.{
.{ .name = "cbor", .module = cbor_mod },
},
});
const renderer_mod = b.createModule(.{
.root_source_file = b.path("src/renderer/vaxis/renderer.zig"),
.imports = &.{
@ -136,14 +143,7 @@ pub fn build(b: *std.Build) void {
.{ .name = "cbor", .module = cbor_mod },
.{ .name = "log", .module = log_mod },
.{ .name = "thespian", .module = thespian_mod },
},
});
const Buffer_mod = b.createModule(.{
.root_source_file = b.path("src/buffer/Buffer.zig"),
.imports = &.{
.{ .name = "renderer", .module = renderer_mod },
.{ .name = "cbor", .module = cbor_mod },
.{ .name = "Buffer", .module = Buffer_mod },
},
});